nginx: [emerg] bind() to 0.0.0.0:66 failed (98: Address already in use)

查看进程
nginx: [emerg] bind() to 0.0.0.0:66 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:66 failed (98: Address already in use)
查看日志
[email protected]:/usr/local/nginx/sbin# find / -name error.log
/var/log/apache2/error.log
/usr/local/nginx/logs/error.log
[email protected]:/usr/local/nginx/sbin# vi /usr/local/nginx/logs/error.log

2019/10/07 23:54:49 [error] 75687#0: *2 open() “/usr/local/nginx/html/zabbix/charts.php” failed (2: No such file or directory), client: 192.168.121.1, server: localhost, request: "GET /zabb
2019/10/07 23:54:49 [error] 75687#0: *2 open() “/usr/local/nginx/html/zabbix/charts.php” failed (2: No such file or directory), client: 192.168.121.1, server: localhost, request: "GET /zabb
2019/10/07 23:54:49 [error] 75687#0: *2 open() “/usr/local/nginx/html/zabbix/charts.php” failed (2: No such file or directory), client: 192.168.121.1, server: localhost, request: “GET /zabbix/charts.php?page=1&groupid=9&hostid=10263&graphid=814&action=showgraph HTTP/1.1”, host: “192.168.121.128”
2019/10/07 23:54:49 [error] 75687#0: *2 open() “/usr/local/nginx/html/zabbix/charts.php” failed (2: No such file or directory), client: 192.168.121.1, server: localhost, request: “GET /zabbix/charts.php?page=1&groupid=9&hostid=10263&graphid=814&action=showgraph HTTP/1.1”, host: “192.168.121.128”
2019/10/07 23:54:50 [error] 75687#0: *2 open() “/usr/local/nginx/html/zabbix/charts.php” failed (2: No such file or directory), client: 192.168.121.1, server: localhost, request: “GET /zabbix/charts.php?page=1&groupid=9&hostid=10263&graphid=814&action=showgraph HTTP/1.1”, host: “192.168.121.128”
2019/10/07 23:55:09 [error] 75687#0: *3 open() “/usr/local/nginx/html/favicon.ico” failed (2: No such file or directory), client: 192.168.121.1, server: localhost, request: “GET /favicon.ico HTTP/1.1”, host: “192.168.121.128”
2019/10/07 23:55:10 [error] 75687#0: *3 open() “/usr/local/nginx/html/favicon.ico” failed (2: No such file or directory), client: 192.168.121.1, server: localhost, request: “GET /favicon.ico HTTP/1.1”, host: “192.168.121.128”
2019/10/07 23:55:10 [error] 75687#0: *3 open() “/usr/local/nginx/html/favicon.ico” failed (2: No such file or directory), client: 192.168.121.1, server: localhost, request: “GET /favicon.ico HTTP/1.1”, host: “192.168.121.128”
2019/10/08 00:00:49 [error] 75687#0: *5 open() “/usr/local/nginx/html/favicon.ico” failed (2: No such file or directory), client: 192.168.121.1, server: localhost, request: “GET /favicon.ico HTTP/1.1”, host: “192.168.121.128”
2019/10/08 00:00:51 [error] 75687#0: *5 open() “/usr/local/nginx/html/favicon.ico” failed (2: No such file or directory), client: 192.168.121.1, server: localhost, request: “GET /favicon.ico HTTP/1.1”, host: “192.168.121.128”
2019/10/08 00:00:51 [error] 75687#0: *5 open() “/usr/local/nginx/html/favicon.ico” failed (2: No such file or directory), client: 192.168.121.1, server: localhost, request: “GET /favicon.ico HTTP/1.1”, host: “192.168.121.128”
2019/10/08 00:00:52 [error] 75687#0: *5 open() “/usr/local/nginx/html/favicon.ico” failed (2: No such file or directory), client: 192.168.121.1, server: localhost, request: “GET /favicon.ico HTTP/1.1”, host: “192.168.121.128”
2019/10/08 00:00:52 [error] 75687#0: *5 open() “/usr/local/nginx/html/favicon.ico” failed (2: No such file or directory), client: 192.168.121.1, server: localhost, request: “GET /favicon.ico HTTP/1.1”, host: “192.168.121.128”
2019/10/08 00:00:52 [error] 75687#0: *5 open() “/usr/local/nginx/html/favicon.ico” failed (2: No such file or directory), client: 192.168.121.1, server: localhost, request: “GET /favicon.ico HTTP/1.1”, host: “192.168.121.128”
2019/10/08 00:00:54 [error] 75687#0: *7 open() “/usr/local/nginx/html/zabbix/hosts.php” failed (2: No such file or directory), client: 192.168.121.1, server: localhost, request: “GET /zabbix/hosts.php HTTP/1.1”, host: “192.168.121.128”
2019/10/08 00:00:55 [error] 75687#0: *7 open() “/usr/local/nginx/html/zabbix/hosts.php” failed (2: No such file or directory), client: 192.168.121.1, server: localhost, request: “GET /zabbix/hosts.php HTTP/1.1”, host: “192.168.121.128”
2019/10/08 00:04:48 [error] 75687#0: *9 open() “/usr/local/nginx/html/favicon.ico” failed (2: No such file or directory), client: 192.168.121.1, server: localhost, request: “GET /favicon.ico HTTP/1.1”, host: “192.168.121.128”
2019/10/08 00:04:49 [error] 75687#0: *9 open() “/usr/local/nginx/html/favicon.ico” failed (2: No such file or directory), client: 192.168.121.1, server: localhost, request: “GET /favicon.ico HTTP/1.1”, host: “192.168.121.128”
2019/10/08 00:04:52 [error] 75687#0: *9 open() “/usr/local/nginx/html/favicon.ico” failed (2: No such file or directory), client: 192.168.121.1, server: localhost, request: “GET /favicon.ico HTTP/1.1”, host: “192.168.121.128”
2019/10/08 00:04:54 [error] 75687#0: *9 open() “/usr/local/nginx/html/favicon.ico” failed (2: No such file or directory), client: 192.168.121.1, server: localhost, request: “GET /favicon.ico HTTP/1.1”, host: “192.168.121.128”
2019/10/08 00:09:15 [emerg] 75919#0: bind() to 0.0.0.0:80 failed (98: Address already in use)
2019/10/08 00:09:15 [emerg] 75919#0: bind() to 0.0.0.0:80 failed (98: Address already in use)
2019/10/08 00:09:15 [emerg] 75919#0: bind() to 0.0.0.0:80 failed (98: Address already in use)

查看端口
nginx: [emerg] bind() to 0.0.0.0:66 failed (98: Address already in use)
查看80端口
[email protected]:# lsof -i:80
杀死80端口的进程
#sudo fuser -k 80/tcp
nginx: [emerg] bind() to 0.0.0.0:66 failed (98: Address already in use)
查看端口
nginx: [emerg] bind() to 0.0.0.0:66 failed (98: Address already in use)