CentOS-7 vmware 安装过程

我当前的虚拟机是 vmware 15,用的镜像是centOs 7

CentOS-7-x86_64-DVD-1810.iso

 

 

 

 

 

 

 

 

确保你的虚拟机是通网的。

1、如果是新环境,没安装过gcc,那么先安装这个。

$ yum install -y gcc gcc-c++

安装完成。

 

 

 

 

2、我们需要下载东西,默认情况下,虚拟机环境是没有安装下载工具wget的。

$ yum -y install wget

 

安装完成

 

 

 

 

测试一下。ok了

 3、安装PCRE库

到官网查看下载列表,找了个最新的

https://sourceforge.net/projects/pcre/files/pcre/

 wget https://sourceforge.net/projects/pcre/files/pcre/8.43/pcre-8.43.tar.gz

$  wget https://sourceforge.net/projects/pcre/files/pcre/8.43/pcre-8.43.tar.gz

下载压缩包后解压,安装。

$ tar -zxvf pcre-8.33.tar.gz
$ cd pcre-8.33
$ ./configure
$ make && make install

 

4、安装perl

网址 https://www.cpan.org/src/

$ wget https://www.cpan.org/src/5.0/perl-5.30.1.tar.gz
$ tar -zxvf perl-5.30.1.tar.gz
$ cd perl-5.30.1
$ ./Configure -des -Dprefix=$HOME/localperl
$ make && make install

 

5.安装SSL库
下载地址:https://www.openssl.org/source/

$ cd /usr/local/
$ wget http://www.openssl.org/source/openssl-1.0.1j.tar.gz
$ tar -zxvf openssl-1.0.1j.tar.gz
$ cd openssl-1.0.1j
$ ./config
$ make && make install

 

 (安装ssl报错) [root@localhost openssl-1.1.1d]# ./config
Operating system: x86_64-whatever-linux2
You need Perl 5.

再安装ssl

6.安装zlib库存

$ cd /usr/local/
$ wget http://zlib.net/zlib-1.2.11.tar.gz
$ tar -zxvf zlib-1.2.11.tar.gz
$ cd zlib-1.2.11
$ ./configure
$ make && make install

7.安装nginx
$ cd /usr/local/
$ wget http://nginx.org/download/nginx-1.8.0.tar.gz
$ tar -zxvf nginx-1.8.0.tar.gz
$ cd nginx-1.8.0
$ ./configure
$ make && make install

8.启动nginx
/usr/local/nginx/sbin/nginx
ps -aux | grep 'nginx'

 

posted on   陈惟鲜的博客  阅读(309)  评论(0编辑  收藏  举报

编辑推荐:
· Linux系列:如何用 C#调用 C方法造成内存泄露
· AI与.NET技术实操系列(二):开始使用ML.NET
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
· 理解Rust引用及其生命周期标识(上)
阅读排行:
· DeepSeek 开源周回顾「GitHub 热点速览」
· 物流快递公司核心技术能力-地址解析分单基础技术分享
· .NET 10首个预览版发布:重大改进与新特性概览!
· AI与.NET技术实操系列(二):开始使用ML.NET
· 单线程的Redis速度为什么快?

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
点击右上角即可分享
微信分享提示