Description: Failed to restart nginx after installing nginx. After reinstalling nginx, nginx 404 was reported.
Cause: Port 80 is occupied, and the previous nginx process is not finished.
Screen:
Netstat ntulp | grep case # 80 # to check the port 80 if there is no restart, then restart the service nginx restart # if you have been occupied, Kill -9 Process id # Run the kill command to kill the process and restart the nginx.Copy the code