nginx管理命令

2020-07-15  本文已影响0人  Steppe

1.暂停nginx服务

sudo systemctl stop nginx

2.启动nginx服务

sudo systemctl start nginx

3.重启nginx服务

sudo systemctl restart nginx

4.加载配置,就是说大家修改了nginx的配置信息之后一定要重新加载,不然nginx修改之后是不起效的

sudo systemctl reload nginx

5.开机不启动nginx

sudo systemctl disable nginx

6.开机启动nginx

sudo systemctl enable nginx

上一篇 下一篇

猜你喜欢

热点阅读