Home  >  Article  >  Operation and Maintenance  >  What are the common operation commands of Nginx?

What are the common operation commands of Nginx?

王林
王林forward
2023-05-14 17:40:072071browse

What are the common operation commands of Nginx?

Close

service nginx stop
systemctl stop nginx

Start

service nginx start
systemctl start nginx

Restart

service nginx reload
systemctl restart nginx

Automatically run when the system starts

systemctl enable nginx

Prohibit automatic running when the system starts

systemctl disable nginx

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

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!

Statement:
This article is reproduced at:yisu.com. If there is any infringement, please contact admin@php.cn delete