Introduction to the start and stop commands of nginx under windows

王林
Release: 2020-08-13 17:10:44
forward
5345 people have browsed it

Introduction to the start and stop commands of nginx under windows

1. Start command

(Recommended tutorial: nginx tutorial)

C:\server\nginx-1.0.2>start nginx
或
C:\server\nginx-1.0.2>nginx.exe
Copy after login

2. Stop command

C:\server\nginx-1.0.2>nginx.exe -s stop
或
C:\server\nginx-1.0.2>nginx.exe -s quit
Copy after login

Note: stop is to stop nginx quickly and may not save relevant information; quit is to stop nginx completely and orderly, and save relevant information.

3. Reload Nginx:

C:\server\nginx-1.0.2>nginx.exe -s reload
Copy after login

Use this command when the configuration information is modified and these configurations need to be reloaded.

4. Reopen the log file:

C:\server\nginx-1.0.2>nginx.exe -s reopen
Copy after login

5. Check the Nginx version:

C:\server\nginx-1.0.2>nginx -v
Copy after login

The above is the detailed content of Introduction to the start and stop commands of nginx under windows. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:csdn.net
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