nginx整理
# cd /usr/local/src/nginx# make clean
rm -rf Makefile objs
#./configure --prefix=/usr/local/nginx --user=www --group=www \
--with-http_ssl_module --with-http_stub_status_module \
--add-module=/usr/local/src/headers-more-nginx-module-master
# make
# make install
# kill -s USR2 `cat /usr/local/nginx/logs/nginx.pid`
# ps -ef|grep nginx
root 2017 10 Apr21 ? 00:00:00 nginx: master process /usr/local/nginx/sbin/nginx
www 201820170 Apr21 ? 00:00:30 nginx: worker process
root 2171720170 19:41 ? 00:00:00 nginx: master process /usr/local/nginx/sbin/nginx
www 21718 217170 19:41 ? 00:00:00 nginx: worker process
root 21856 183120 19:45 pts/2 00:00:00 grep nginx
# kill -s WINCH `cat /usr/local/nginx/logs/nginx.pid.oldbin`
# ps -ef|grep nginx
root 2017 10 Apr21 ? 00:00:00 nginx: master process /usr/local/nginx/sbin/nginx
root 2171720170 19:41 ? 00:00:00 nginx: master process /usr/local/nginx/sbin/nginx
www 21718 217170 19:41 ? 00:00:00 nginx: worker process
root 21943 183120 19:49 pts/2 00:00:00 grep nginx
# kill -s QUIT `cat /usr/local/nginx/logs/nginx.pid.oldbin`
# ps -ef|grep nginx
root 21717 10 19:41 ? 00:00:00 nginx: master process /usr/local/nginx/sbin/nginx
www 21718 217170 19:41 ? 00:00:00 nginx: worker process
root 22050 183120 19:54 pts/2 00:00:00 grep nginx
#
页:
[1]