Check the port occupancy under Linux, and then kill the port

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
    insert image description here

  • To view port occupation, command:netstat -tunlp|grep 端口号
    insert image description here

  • kill process, commandkill -9 9175
    insert image description here

  • Check the port situation again, and then start Nginx
    insert image description here

Guess you like

Origin blog.csdn.net/qq_31424825/article/details/129921792