一、安装依赖
yum -y install make zlib zlib-devel gcc-c++ libtool openssl openssl-devel
二、依赖包下载
pcre-8.40.tar.gz
zlib-1.2.8.tar.gz
openssl-1.0.2h.tar.gz
nginx-1.13.0.tar.gz
百度云下载 链接:https://pan.baidu.com/s/15lnhrNgukn2ROZV48VUChQ 密码:gnui
三、安装
cd /soft
tar -xvzf pcre-8.40.tar.gz -C /tmp/
cd /tmp/pcre-8.40/
./configure
make && make install
cd /soft
tar -xvzf zlib-1.2.8.tar.gz -C /tmp/
cd /tmp/zlib-1.2.8
./configure
make && make install
cd /soft
tar -xvzf openssl-1.0.2h.tar.gz -C /tmp/
cd /tmp/openssl-1.0.2h
./config
make && make install
cd /soft
tar -xvzf nginx-1.13.0.tar.gz -C /tmp/
cd /tmp/nginx-1.13.0
./configure --prefix=/tools/nginx --pid-path=/tools/nginx/nginx.pid --error-log-path=/data/dataLogs/nginx/error.log --http-log-path=/data/dataLogs/nginx/access.log --with-http_ssl_module --with-pcre=/tmp/pcre-8.40 --with-zlib=/tmp/zlib-1.2.8 --with-openssl=/tmp/openssl-1.0.2h --with-stream --with-http_stub_status_module
make && make install
四、配置
。。。