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
/nginx -s reload #重启
Method two, find the current nginx process number, and then enter the command: kill -HUP process number to restart nginx Service
# ps -ef|grep nginx #查找当前nginx进程号 ]# kill -TERM 132 #杀死nginx进程,132为nginx进程号
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!