What are the common operation commands of Nginx?

王林
Release: 2023-05-14 17:40:07
forward
2070 people have browsed it

What are the common operation commands of Nginx?

Close

service nginx stop
systemctl stop nginx
Copy after login

Start

service nginx start
systemctl start nginx
Copy after login

Restart

service nginx reload
systemctl restart nginx
Copy after login

Automatically run when the system starts

systemctl enable nginx
Copy after login

Prohibit automatic running when the system starts

systemctl disable nginx
Copy after login

Knowledge point expansion:

首先利用配置文件启动nginx

命令: nginx -c /usr/local/nginx/conf/nginx.conf

重启服务: service nginx restart

快速停止或关闭Nginx:nginx -s stop

正常停止或关闭Nginx:nginx -s quit

配置文件修改重装载命令:nginx -s reload
Copy after login

The above is the detailed content of What are the common operation commands of Nginx?. 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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!