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'

原文地址:https://www.cnblogs.com/a393060727/p/12052089.html