Solution 1:
(1) Check the error.log in the nginx-1.19.2\logs directory, and learn that the error message is: bind() to 0.0.0.0:80 failed (10013: An attempt was made to access a socket in a way forbidden by its access permissions)
(2) Press win+r, type cmd, and open the administrator interface
(3) type netstat -aon|findstr :80, find the port number 0.0.0.0:80 is occupied, check the pid value of 4
(4) Enter tasklist | findstr “4” to find the name corresponding to port 4, which is System
(5) after viewing the System system occupancy can not be manually terminated, the reason is SQLServer Reporting Services, stop this service and set to start manually can, after starting nginx, need to restart SQLServer Reporting Services
Disadvantage: This approach requires you to stop SQLServer Reporting Services again after each boot, and then start nginx
Solution 2:
Modify the default port number under nginx.conf
(1) Open the nginx.conf file in the nginx directory with Notepad
(2) Press win+r, type cmd, open the administrator interface, type netstat -aon|findstr :expected port number to see if your expected port number is occupied
(3) Modify nginx.conf, and then save it
(4) At the command prompt, type nginx -s reload (an important step)
(5) Then type start nginx at the command prompt
(6) in the browser localhost:81, if the following page appears in the modified successful
Read More:
- [Solved] RuntimeError: An attempt has been made to start a new process before the current process…
- [Solved] Redis startup error Creating Server TCP listening socket 127.0.0.1:6379: bind: No error
- [Solved] Zabbix-server startup error: cannot start alert manager service: Cannot bind socket to “/var/run/zabbix/zabbix_server_alerter.sock”: [13] Permission denied.
- socket java.net.BindException: bind failed: EACCES (Permission denied)
- Nginx Container Error: nginx: [emerg] mkdir() “/var/cache/nginx/client_temp“ failed (13: Permission denied)
- [Solved] Error:couldn‘t connect to server 127.0.0.1:27017, connection attempt failed: SocketException: …
- [Solved] Redis Error: Creating Server TCP listening socket *:6379: bind: No error
- Windows 7: How to Solve startup error: ERROR 0199
- [Solved] Nginx Request 500 Error: CreateFile() “/temp/client_body_temp/0000000013” failed (5: Access is denied)
- [Solved] Playbook Start Nginx Error: Unable to start service nginx: Job for nginx.service fd with error code
- TensorRT model quantization error: Error Code 1: Cuda Runtime (an illegal memory access was encountered)
- [Solved] Windows startup error: unable to find launcherrsxruntime.exe
- [Solved] Redis Error: creating server tcp listening socket 127.0.0.1:6379: bind No error
- [Solved] Docker Start nginx error: driver failed programming external connectivity on endpoint nginx
- Windows: Nginx configuration error GetFileAttributesEx
- Flask Startup Error: s.bind(server_address)PermissionError: [Errno 13] Permission denied
- An error occurred: Sorry,Faithfully yours, nginx Error
- Gitlab nginx wont start to work. [down: nginx: 1s, normally up, want up; run: log: (pid 20128)xxx]
- [Solved] ERROR_POLICY: attempt to perform an operation not allowed by the security policy `PDF‘ @ error/const
- How to Solve Nginx 413 Error (request entity too large)