Resolve nginx startup failure

Nginx startup error: startup failed

nginx: [error] CreateFile() "C:\web\nginx-1.17.9/logs/nginx.pid" failed (2: The system cannot find the file specified)

Execute the command nginx – t to query the configuration of nginx

C:\web\nginx-1.17.9>nginx.exe -t
nginx: the configuration file C:\web\nginx-1.17.9/conf/nginx.conf syntax is ok
nginx: [emerg] bind() to 0.0.0.0:8090 failed (10013: An attempt was made to access a socket in a way forbidden by its access permissions)
nginx: configuration file C:\web\nginx-1.17.9/conf/nginx.conf test failed

The question is about the same

 
The problems are as follows   Port 80 is occupied

10013: An attempt was made to access a socket in a way forbidden by its access permissions

terms of settlement:

cmd   input    netstat -aon | findstr :80

input   tasklist|findstr “15616”

Find Task Manager – details

Manual closing

Read More: