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

maojun1998 发布于 2017/01/20 22:34
阅读 2K+
收藏 0

在服务器启动nginx服务

# /usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/nginx.conf

得到的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()

然后我不知道该怎么办!


加载中
0
游客
游客
80端口被占了,你看你有没有安装IIS,或apache,检查是什么程序占了80,停掉先
m
maojun1998
好像是kangle占用了80!
0
Feng_Yu
Feng_Yu
这报错看不懂?
m
maojun1998
看不懂
0
m
maojun1998

引用来自“游客”的评论

80端口被占了,你看你有没有安装IIS,或apache,检查是什么程序占了80,停掉先
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address               Foreign Address             State       PID/Program name   
tcp        0      0 127.0.0.1:59051             0.0.0.0:*                   LISTEN      796/php-cgi         
tcp        0      0 0.0.0.0:11211               0.0.0.0:*                   LISTEN      529/memcached       
tcp        0      0 0.0.0.0:27277               0.0.0.0:*                   LISTEN      551/sshd            
tcp        0      0 0.0.0.0:3311                0.0.0.0:*                   LISTEN      719/kangle          
tcp        0      0 0.0.0.0:80                  0.0.0.0:*                   LISTEN      719/kangle          
tcp        0      0 0.0.0.0:3312                0.0.0.0:*                   LISTEN      719/kangle          
tcp        0      0 0.0.0.0:3313                0.0.0.0:*                   LISTEN      719/kangle          
tcp        0      0 0.0.0.0:21                  0.0.0.0:*                   LISTEN      731/pure-ftpd (SERV
tcp        0      0 0.0.0.0:3306                0.0.0.0:*                   LISTEN      690/mysqld          
tcp        0      0 :::11211                    :::*                        LISTEN      529/memcached       
tcp        0      0 :::27277                    :::*                        LISTEN      551/sshd            
tcp        0      0 :::3311                     :::*                        LISTEN      719/kangle          
tcp        0      0 :::80                       :::*                        LISTEN      719/kangle          
tcp        0      0 :::3312                     :::*                        LISTEN      719/kangle          
tcp        0      0 :::3313                     :::*                        LISTEN      719/kangle          
tcp        0      0 :::21                       :::*                        LISTEN      731/pure-ftpd (SERV
tcp        0      0 :::443                      :::*                        LISTEN      763/python   
0
DC梦幻岛
DC梦幻岛
719/kangle          

tcp        0      0 0.0.0.0:80                  0.0.0.0:*                   LISTEN    


应该是kangle占用了80端口,换个端口号就解决了

0
祝涛
祝涛
80端口被占用了
返回顶部
顶部