1.暫停nginx服務(wù)
sudo systemctl stop nginx
2.啟動(dòng)nginx服務(wù)
sudo systemctl start nginx
3.重啟nginx服務(wù)
sudo systemctl restart nginx
4.加載配置纺念,就是說大家修改了nginx的配置信息之后一定要重新加載将谊,不然nginx修改之后是不起效的
sudo systemctl reload nginx
5.開機(jī)不啟動(dòng)nginx
sudo systemctl disable nginx
6.開機(jī)啟動(dòng)nginx
sudo systemctl enable nginx