Nginx基本操作
1.启动
nginx -c /etc/nginx/nginx.conf
2.停止
(1) 从容停止Nginx
ps -ef | grep nginx
kill - QUIT <nginx_master_process_pid>
(2) 快速停止Nginx
ps -ef | grep nginx
kill - TERM <nginx_master_process_pid>
(3) 强制停止Nginx
pkill -9 nginx
3.重启
nginx -t
nginx -s reload 或 kill -HUP <nginx_master_process_pid>