1、ngingx下载
//创建目录
mkdir -p /opt/software
cd /opt/software
wget http://nginx.org/download/nginx-1.13.3.tar.gz
2、解压文件
tar -zxvf nginx-1.13.3.tar.gz
cd nginx-1.13.3
3、安装依赖包
#yum -y install gcc pcre pcre-devel zlib zlib-devel openssl openssl-devel
yum -y install pcre pcre-devel
yum -y install openssl openssl-devel
4、编译安装
mkdir -p /opt/nginx1.13.3
./configure --prefix=/opt/nginx1.13.3 --with-http_ssl_module
make
make install