After the server was powered off, Nginx did not start, and when Nginx was started, the port was reported to be occupied. Then find the port occupancy and kill the port process. Restart Nginx successfully
-
Startup failed
-
To view port occupation, command:
netstat -tunlp|grep 端口号
-
kill process, command
kill -9 9175
-
Check the port situation again, and then start Nginx