Home >Operation and Maintenance >Nginx >How to start and shut down nginx command in Linux

How to start and shut down nginx command in Linux

WBOY
WBOYforward
2023-05-27 12:29:3113088browse

How to start and shut down nginx command in Linux

1 Enter the installation directory whereis nginx

How to start and shut down nginx command in Linux

##\2. Enter the path: cd /usr/local/nginx /sbin

3 Start nginx command: ./nginx The following appears and the startup is successful

How to start and shut down nginx command in Linux

4 Check the status of nginx ps -ef | grep nginx starts if master appears Success

How to start and shut down nginx command in Linux

5 Close nginx command kill -9 8725 (the one above the process number) to close nginx

\6. Stop nginx command: ./nginx - s stop

7. Restart nginx command: ./nginx -s reload

The above is the detailed content of How to start and shut down nginx command in Linux. 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