nginx closes and and restarts the and startup action method

  • 2020-05-24 06:50:13
  • OfStack

Shut down

[

service nginx stop

systemctl stop nginx

]

Start the

[

service nginx start

systemctl start nginx

]

restart

[

service nginx reload

systemctl restart nginx

]

Automatic operation with system startup

[

systemctl enable nginx

]

Do not run automatically with the system started

[

systemctl disable nginx

]

Knowledge expansion:

Start nginx with a configuration file.

Command: nginx - c/usr/local nginx/conf/nginx conf

Restart service: service nginx restart

2. Quickly stop or close Nginx: nginx-s stop

3. Normally stop or close Nginx: nginx-s quit

4. Configuration file modification reload command: nginx-s reload


Related articles: