当前位置:  开发笔记 > 编程语言 > 正文

我怎么知道macPorts如何偷走我的端口:80?

如何解决《我怎么知道macPorts如何偷走我的端口:80?》经验,为你挑选了1个好方法。

我安装了MAMP(并且工作正常)然后我尝试通过macPorts安装mongoDB.然后macports开始安装一堆依赖项.之后,http:// localhost开始提供"It Works!" 屏幕.重新启动以查看它是否可以修复它,我发现我无法启动我的MAMP服务器.控制台说:

9/13/10 1:20:54 PM  [0x0-0x12012].de.appsolute.MAMP[133]    (48)Address already in use: make_sock: could not bind to address [::]:80

我知道macPorts做了些蠢事让我感到困惑.我如何才能找到它所装的那个窃取端口:80?

这是我试过的一些命令:(:80没用,所以我只用了80)

$ sudo netstat -an | grep 80 
Password:
tcp46      0      0  *.80                   *.*                    LISTEN
udp6       0      0  fe80::21e:52ff:f.123   *.*                    
udp6       0      0  fe80::1%lo0.123        *.*   

和:

$ lsof -i :80
COMMAND   PID        USER   FD   TYPE     DEVICE SIZE/OFF NODE NAME
firefox-b 451 biting_duck   39u  IPv4 0x0ab806b0      0t0  TCP 192.168.0.198:49515->stackoverflow.com:http (ESTABLISHED)
firefox-b 451 biting_duck   40u  IPv4 0x0ab87ec8      0t0  TCP 192.168.0.198:49517->sstatic.net:http (ESTABLISHED)
firefox-b 451 biting_duck   41u  IPv4 0x0ab88aec      0t0  TCP 192.168.0.198:49516->pz-in-f95.1e100.net:http (ESTABLISHED)
firefox-b 451 biting_duck   42u  IPv4 0x0ab97334      0t0  TCP 192.168.0.198:49518->sstatic.net:http (ESTABLISHED)
firefox-b 451 biting_duck   47u  IPv4 0x0ab87abc      0t0  TCP 192.168.0.198:49519->sstatic.net:http (ESTABLISHED)
firefox-b 451 biting_duck   48u  IPv4 0x0ab886e0      0t0  TCP 192.168.0.198:49520->sstatic.net:http (ESTABLISHED)
firefox-b 451 biting_duck   50u  IPv4 0x0ab89b1c      0t0  TCP 192.168.0.198:49521->sstatic.net:http (ESTABLISHED)
firefox-b 451 biting_duck   51u  IPv4 0x0ab86680      0t0  TCP 192.168.0.198:49522->peak-colo-196-216.peak.org:http (ESTABLISHED)
firefox-b 451 biting_duck   54u  IPv4 0x0ab81ef8      0t0  TCP 192.168.0.198:49523->gravatar.com:http (ESTABLISHED)
firefox-b 451 biting_duck   55u  IPv4 0x0ab82710      0t0  TCP 192.168.0.198:49524->gravatar.com:http (ESTABLISHED)
firefox-b 451 biting_duck   56u  IPv4 0x0ab8a334      0t0  TCP 192.168.0.198:49526->64.34.80.176:http (ESTABLISHED)
firefox-b 451 biting_duck   57u  IPv4 0x0ab812d4      0t0  TCP 192.168.0.198:49525->pv-in-f101.1e100.net:http (ESTABLISHED)

Gordon Davis.. 16

根据您对launchd errors和/private/etc/apache2/httpd.conf的描述,听起来像安装了基本操作系统的Ap​​ache副本已经打开.检查系统首选项 - >服务 - > Web服务,并在需要时将其关闭.如果它没有打开,请尝试:

sudo launchctl unload -w /System/Library/LaunchDaemons/org.apache.httpd.plist

...如果不起作用,请查看/ Library/LaunchDaemons以查看是否已经安装了启动Apache系统副本(/ usr/sbin/httpd)的其他内容.



1> Gordon Davis..:

根据您对launchd errors和/private/etc/apache2/httpd.conf的描述,听起来像安装了基本操作系统的Ap​​ache副本已经打开.检查系统首选项 - >服务 - > Web服务,并在需要时将其关闭.如果它没有打开,请尝试:

sudo launchctl unload -w /System/Library/LaunchDaemons/org.apache.httpd.plist

...如果不起作用,请查看/ Library/LaunchDaemons以查看是否已经安装了启动Apache系统副本(/ usr/sbin/httpd)的其他内容.

推荐阅读
保佑欣疼你的芯疼
这个屌丝很懒,什么也没留下!
DevBox开发工具箱 | 专业的在线开发工具网站    京公网安备 11010802040832号  |  京ICP备19059560号-6
Copyright © 1998 - 2020 DevBox.CN. All Rights Reserved devBox.cn 开发工具箱 版权所有