Nginx Error when installing the startup service failed to start a high performance web server and a reverse proxy serve
ubuntu16.04
apt update
apt install -y nginx
service nginx start
Error:
root@zabbix:/home/appliance# systemctl status nginx.service
nginx.service - A high performance web server and a reverse proxy server
Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Wed 2018-07-25 18:33:26 UTC; 1min 27s ago
Process: 30040 ExecStart=/usr/sbin/nginx -g daemon on; master_process on; (code=exited, status=1/FAILURE)
Process: 30037 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=0/SUCCESS)
Jul 25 18:33:25 zabbix nginx[30040]: nginx: [emerg] listen() to [::]:80, backlog 511 failed (98: Address already in use)
Jul 25 18:33:25 zabbix nginx[30040]: nginx: [emerg] listen() to 0.0.0.0:80, backlog 511 failed (98: Address already in use)
Jul 25 18:33:25 zabbix nginx[30040]: nginx: [emerg] listen() to [::]:80, backlog 511 failed (98: Address already in use)
Jul 25 18:33:26 zabbix nginx[30040]: nginx: [emerg] listen() to 0.0.0.0:80, backlog 511 failed (98: Address already in use)
Jul 25 18:33:26 zabbix nginx[30040]: nginx: [emerg] listen() to [::]:80, backlog 511 failed (98: Address already in use)
Jul 25 18:33:26 zabbix nginx[30040]: nginx: [emerg] still could not bind()
Jul 25 18:33:26 zabbix systemd[1]: nginx.service: Control process exited, code=exited status=1
Jul 25 18:33:26 zabbix systemd[1]: *******Failed to start A high performance web server*** and a reverse proxy server.****
Jul 25 18:33:26 zabbix systemd[1]: nginx.service: Unit entered failed state.
Jul 25 18:33:26 zabbix systemd[1]: nginx.service: Failed with result 'exit-code'.
Error reason: you already have a process bound to HTTP port 80. You can run the command sudo lsof - I: 80
to get the list of processes using this port, and then stop/disable the web server
solution: you can run the command to stop the process using port 80 sudo fuser - K 80/TCP
Similar Posts:
- nginx.service – A high performance web server and a reverse proxy server
- [Solved] Nginx.service: Failed to read PID from file /run/nginx.pid: Invalid argument
- The state of nginx is the failed solution
- Nginx Error: Job for nginx.service failed because the control process exited with error code
- [Solved] Linux starts MySQL service Error: Error code = exited, status = 127
- An error is reported in the dockerfie image, and the status is acitvating (start)
- [Solved] main process exited, code=exited, status=203/EXEC
- [Solved] Libvirt startup error: failed to start virtualization daemon
- Solving the problem of nginx reverse proxy web service soap:address location problem
- Shell script error: Exec format error [How to Solve]