How to start and shut down nginx command in Linux

WBOY
Release: 2023-05-27 12:29:31
forward
13056 people have browsed it

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!

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