#安装
cd /home/software
tar xzvf openssl-1.0.2h.tar.gz
cd openssl-1.0.2h
./config
make && make install
cd /home/software
tar xzvf pcre-8.39.tar.gz
cd pcre-8.39
./configure
make && make install
cd /home/software
tar xzvf zlib-1.2.8.tar.gz
cd zlib-1.2.8
./configure
make && make install
cd /home/software
tar xzvf nginx-1.13.11.tar.gz
cd nginx-1.13.11
./configure --prefix=/usr/local/nginx --with-http_auth_request_module --with-http_ssl_module --with-pcre=/home/software/pcre-8.39 --with-openssl=/home/software/openssl-1.0.2h --with-zlib=/home/software/zlib-1.2.8
make
make install
cp /usr/local/nginx/conf/nginx.conf /usr/local/nginx/conf/nginx.conf_bak
#开放端口
firewall-cmd --permanent --zone=public --add-port=80/tcp
#测试
/usr/local/nginx/sbin/nginx
上一篇

安装postgresql
2019-02-25
下一篇

安装fastdfs
2019-02-25