Failed to start A high performance web server and a reverse proxy server.
This error occurred during nginx start bcz port is already used by other process.
root@srv445092321:/etc/nginx# journalctl -xeu nginx.service Mar 23 12:45:08 srv445092321 systemd[1]: Stopped A high performance web server and a reverse proxy server. Subject: A stop job for unit nginx.service has finished Defined-By: systemd Support: http://www.ubuntu.com/support A stop job for unit nginx.service has finished. The job identifier is 933299 and the job result is done. Mar 23 12:45:08 srv445092321 systemd[1]: Starting A high performance web server and a reverse proxy server... Subject: A start job for unit nginx.service has begun execution Defined-By: systemd Support: http://www.ubuntu.com/support A start job for unit nginx.service has begun execution. The job identifier is 933299. Mar 23 12:45:08 srv445092321 nginx[37943]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use) Mar 23 12:45:08 srv445092321 nginx[37943]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use) Mar 23 12:45:09 srv445092321 nginx[37943]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use) Mar 23 12:45:09 srv445092321 nginx[37943]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use) Mar 23 12:45:10 srv445092321 nginx[37943]: nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use) Mar 23 12:45:10 srv445092321 nginx[37943]: nginx: [emerg] still could not bind() Mar 23 12:45:10 srv445092321 systemd[1]: nginx.service: Control process exited, code=exited, status=1/FAILURE Subject: Unit process exited Defined-By: systemd Support: http://www.ubuntu.com/support An ExecStart= process belonging to unit nginx.service has exited. The process' exit code is 'exited' and its exit status is 1. Mar 23 12:45:10 srv445092321 systemd[1]: nginx.service: Failed with result 'exit-code'. Subject: Unit failed Defined-By: systemd Support: http://www.ubuntu.com/support The unit nginx.service has entered the 'failed' state with result 'exit-code'. Mar 23 12:45:10 srv445092321 systemd[1]: Failed to start A high performance web server and a reverse proxy server. Subject: A start job for unit nginx.service has failed Defined-By: systemd Support: http://www.ubuntu.com/support A start job for unit nginx.service has finished with a failure. The job identifier is 933299 and the job result is failed.
To Start please use below steps:
sudo fuser -k 80/tcp sudo fuser -k 443/tcp sudo service nginx restart
Check Nginx running status
systemctl status nginx.service
Fix 404 Page Not Found on page refresh