Error starting userland proxy: Bind for 0.0.0.0:80: unexpected error (Failure EADDRINUSE) mac下错误记录

Error starting userland proxy: Bind for 0.0.0.0:80: unexpected error (Failure EADDRINUSE)  mac下错误记录

架好的环境运行不了,nginx报错,根据提示是80端口被占用。

ERROR: for eagledock_nginx_1  Cannot restart container affabde5053648c62dbadb0c0e2f44b371e3f0f0c5058e29692dcbccd83ab49f: driver failed programming external connectivity on endpoint eagledock_nginx_1 (2a77054b2205f0cfef5c5aabec48f130965cad77f3f31022cd33d982a053098e): Error starting userland proxy: Bind for 0.0.0.0:80: unexpected error (Failure EADDRINUSE)

 

查了很多方法,lsof -i:80 等等,都查不出来谁占用的。查资料可能是 Apache被占用

 

netstat -an | grep 80  最后使用这个命令看到被占用的端口,LISTEN,被监听中

 

Error starting userland proxy: Bind for 0.0.0.0:80: unexpected error (Failure EADDRINUSE)  mac下错误记录

使用命令  ps -ef | grep httpd  查看被占用的端口,

Error starting userland proxy: Bind for 0.0.0.0:80: unexpected error (Failure EADDRINUSE)  mac下错误记录

使用 

sudo /usr/sbin/apachectl stop  结束Apache   重启docker-compose 即可正常

资料  https://github.com/Islandora-Collaboration-Group/ISLE/issues/31