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

How to restart nginx service in ubuntu

WBOY
Release: 2023-05-23 12:22:13
forward
3361 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

<p>/nginx -s reload #重启</p><p><br></p>
Copy after login

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>
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