Linux Nginx 启动 停止和重启

js yekong

启动

nginx

启动方法二

systemctl start nginx.service

查看是否启动

ps aux | grep nginx

从容停止

nginx -s quit

立即停止

nginx -s stop

停止

killall nginx

停止

systemctl stop nginx.service

重启

systemctl restart nginx.service

重载配置文件

nginx -s reload
喜欢