# Sympton
在运行apache_start.bat时出现以下错误:
make_sock: could not bind to address 0.0.0.0:XXXX
Investigation:
从错误信息看来,应该是80端口已经被占用,可以使用netstat查看端口情况:
- netstat -a -o
直接上图
- netstat -ab
如果想直接打印出运行程序的名字,也可以使用。
Service具体情况:
- TeamViewer7
C:\Program Files (x86)\TeamViewer\Version7\TeamViewer_Service.exe
- VMware Workstation Server
"C:\Program Files (x86)\VMware\VMware Workstation\vmware-hostd.exe" -u "C:\ProgramData\VMware\hostd\config.xml"
# Solution
从上面分析看来,Teamviewer和VMware服务分别霸占了80(http)和443(https)端口,把他们Kill或者disable了就行。
对于Teamviewer还可以在Options中禁用80/443端口: