Home >Operation and Maintenance >Nginx >How to restart nginx service in ubuntu
1. Use the shortcut key [Ctrl Alt T] to open the terminal command mode.
2. You can restart the nginx service in the following ways.
Method one, in the nginx executable directory sbin, enter the following command to restart
<p>/nginx -s reload #重启</p><p><br></p>
Method two, find the current nginx process number, and then enter the command: kill -HUP process number to restart nginx Service
<p># ps -ef|grep nginx #查找当前nginx进程号</p><p>]# kill -TERM 132 #杀死nginx进程,132为nginx进程号</p><p><br></p>
The above is the detailed content of How to restart nginx service in ubuntu. For more information, please follow other related articles on the PHP Chinese website!