zoukankan      html  css  js  c++  java
  • 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,被监听中

     

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

    使用 

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

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

  • 相关阅读:
    windows 安装mysql 步骤
    x-editable 的使用方法
    asp.net连接数据库
    fedora下根据字符查找软件包
    ubuntu 常用命令
    第8课-库函数方式文件编程
    第7课-系统调用方式文件编程
    第6课-函数库设计
    第5课-Linux编程规范
    第4课-Linux应用程序地址布局
  • 原文地址:https://www.cnblogs.com/muwu/p/9337663.html
Copyright © 2011-2022 走看看