Nginx windows next entry

Verify the configuration is correct: nginx -t

View Nginx version number: nginx -V

Start Nginx: start nginx

Quick stop or turn off Nginx: nginx -s stop

Normal stop or shut down Nginx: nginx -s quit

Modify Profile reload command: nginx -s reload

D:\server\nginx-1.16.0>nginx -t
nginx: the configuration file D:\server\nginx-1.16.0/conf/nginx.conf syntax is ok
nginx: configuration file D:\server\nginx-1.16.0/conf/nginx.conf test is successful

 

 

If you do not come Kai Nginx, port 80 is occupied, you can try to change it to a port number.

Here is the error:

nginx: [alert] could not open error log file: CreateFile() "logs/error.log" failed (3: The system cannot find the path specified)
2019/07/23 01:26:43 [emerg] 6412#2012: CreateFile() "C:\Users\Administrator/conf/nginx.conf" failed (3: The system cannot find the path specified)
nginx: configuration file C:\Users\Administrator/conf/nginx.conf test failed

 

Solution see above.

 

Guess you like

Origin www.cnblogs.com/laopo/p/11229416.html