nginx安装配置
cd /export/app
tar –zxvf pcre-8.12.tar.gz
cd pcre-8.12
./configure –prefix=/usr/local/pcre
make && make install
cd /export/a
tar –zxvf zlib-1.2.8.tar.gz
cd zlib-1.2.8
./configure –prefix=/usr/local/zlib
make && make install
cd /export/app
tar –zxvf openssl-1.0.1j.tar.gz
cd openssl-1.0.1j
./configure –prefix=/usr/local/openssl
make && make install
cd /export/servers
tar –zxvf nginx-1.6.0.tar.gz
cd /export/servers/nginx-1.6.0
./configure --prefix=/usr/local/nginx
make && make install
维护:
pkill -9 nginx
/usr/nginx/sbin/nginx -s reload
# 启动
/usr/nginx/sbin/nginx
##检查配置是否正确
/usr/nginx/sbin/nginx -t
nginx -t -c /usr/nginx/conf/nginx.conf
相关推荐
nginxs 2020-11-14
Guanjs0 2020-11-13
小木兮子 2020-11-11
yserver 2020-11-11
ssihc0 2020-11-11
windle 2020-11-10
HanksWang 2020-11-10
liuchen0 2020-11-10
Freshairx 2020-11-10
ccschan 2020-11-10
liwf 2020-11-10
Guanjs0 2020-11-09
AderStep 2020-11-09
zrtlin 2020-11-09
mqfcu 2020-11-10
windle 2020-10-29