0
我想,如下所示nginx的啓動後:nginx的:EMERG] bind()的,以0.0.0.0:80失敗(98:地址已在使用),甚至使用殺死進程端口80
[email protected]:~$ which nginx
/usr/sbin/nginx
[email protected]:~$ sudo /usr/sbin/nginx
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] still could not bind()
在此之後EasyEngine tutorial,我試着用fuser -k
殺死使用端口80的過程:
[email protected]:~$ sudo fuser -k 80/tcp
80/tcp: 31924 31925 31926
然而,之後重新運行sudo /usr/sbin/nginx
我得到完全相同的錯誤消息。
我試過幾個其他的「診斷」描述here,使用fuser
,lsof -i
和netstat
:
[email protected]:~$ fuser 80/tcp
[email protected]:~$ lsof -i :80 | grep LISTEN
[email protected]:~$ netstat -tulpn | grep --color :80
(Not all processes could be identified, non-owned process info
will not be shown, you would have to be root to see it all.)
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN -
tcp 0 0 127.0.0.1:8080 0.0.0.0:* LISTEN -
tcp 0 0 0.0.0.0:8060 0.0.0.0:* LISTEN -
只有netstat
命令給出的結果,但是我無法推斷來自它的進程ID。
關於如何讓nginx工作的任何想法?