赞
踩
/usr/local/nginx/sbin/nginx -V
发现是nginx没开ssl模块
cd /opt/soft/nginx-1.22.1
make clean
./configure --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_ssl_module
make
注:不要make install,否则会直接覆盖安装
mv /usr/local/nginx/sbin/nginx /usr/local/nginx/sbin/nginx20230227
cp /opt/soft/nginx-1.22.1/objs/nginx /usr/local/nginx/sbin/
/usr/local/nginx/sbin/nginx -V
此时的可看到nginx已添加ssl模块
vim /usr/local/nginx/conf/nginx.conf
/usr/local/nginx/sbin/nginx -t
kill -usr2 `cat /usr/local/nginx/logs/nginx.pid`
ps -ef | grep nginx
注:此时会发现新开了一个master和worker
kill -quit `cat /usr/local/nginx/logs/nginx.pid.oldbin`
ps -ef | grep nginx
cd /opt/soft/nginx-1.22.1
make upgrade
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。