nginx提示Address already in use


Restarting nginx: 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()

重启下nginx,发现Address already in use,真是各种无语。
想起在国外么文章中有提到apache必须关闭,nginx才可以运行。果断


# /etc/init.d/apache2 stop
#apt-get remove apache2
#apt-get purge apache2


nginx重启看看


service nginx restart