Nginx日常操作

Jun 24, 2020

检查Nginx服务是否启动

ps -ef|grep nginx

启动Nginx

nginx
或
nginx -c /etc/nginx/nginx.conf
或
service nginx start

检查配置文件

nginx -t -c /etc/nginx/nginx.conf

重启

nginx -s reload

关闭

nginx -s stop
或
service nginx stop
或
从容停止kill -QUIT 主进程号
或
强制停止pkill -9 nginx