Home > Operation and Maintenance > Nginx > How to restart nginx service in ubuntu

How to restart nginx service in ubuntu

王林
Release: 2023-05-13 11:40:11
forward
3216 people have browsed it

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 #重启
Copy after login

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进程号
Copy after login

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!

Related labels:
source:yisu.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template