yinl_li 发表于 2018-11-26 06:11:20

Vmware 8导致apache2无法启动的情况

  为了调Web前端的方便,在Windows下保留了一个xampp,今天突然出现apache启动后自动关闭的情况,比较郁闷。。记得之前有过Skype占用80端口的情况,这次又是哪家抢占端口?

http://zyj.me/wp-content/uploads/2011/09/XAMPP.png  XAMPP无法启动
  首先用命令行检查下XAMPP目录下apache_start.bat,出现如下情况:
  

  
D:Program Filesxampp>apache_start.bat
  
Diese Eingabeforderung nicht waehrend des Running beenden
  
Bitte erst bei einem gewollten Shutdown schliessen
  
Please close this command only for Shutdown
  
Apache 2 is starting ...
  
(OS 10048)通常每个套接字地址(协议/网络地址/端口)只允许使用一次。 : make_sock: could not bind to address 0.0.0.0:443
  
no listening sockets available, shutting down
  
Unable to open logs
  
Apache konnte nicht gestartet werden
  
Apache could not be started
  
请按任意键继续. . .
  

  额,这次是443端口了,80端口还空闲着,因此这次表现为apache启动2秒后自动停止。
  
用 netstat -ano 查看下端口,发现
  

  
协议本地地址          外部地址      状态         PID
  
TCP    0.0.0.0:135            0.0.0.0:0            LISTENING       356
  
TCP    0.0.0.0:443            0.0.0.0:0            LISTENING       1184
  
TCP    0.0.0.0:445            0.0.0.0:0            LISTENING       4
  

http://zyj.me/wp-content/uploads/2011/09/pid.png
  查看进程号
  嗯,有了PID之后,去任务管理器看下,1184进程号,额,竟然是vmware-hostd.exe。。。VMware啥时候也开始开server了。。。

http://zyj.me/wp-content/uploads/2011/09/vmware.png  Vmware的设置
  恩,这次找到VMware了,去看下设置。。。为了体验Windows 8,刚刚装了下Vmware8,瞥了一眼注意到有个Shared VMs,看来是通过SSL来share吧。这个功能灰常不错,但现在暂时用不着,so,在设置中把共享的server关掉,或者把端口改为其他端口就OK了。


页: [1]
查看完整版本: Vmware 8导致apache2无法启动的情况