十年網(wǎng)站開(kāi)發(fā)經(jīng)驗(yàn) + 多家企業(yè)客戶 + 靠譜的建站團(tuán)隊(duì)
量身定制 + 運(yùn)營(yíng)維護(hù)+專(zhuān)業(yè)推廣+無(wú)憂售后,網(wǎng)站問(wèn)題一站解決
如果我們的電腦既安裝了VMware虛擬機(jī)軟件,又安裝了XAMPP,啟動(dòng)XAMPP的時(shí)候,經(jīng)常會(huì)報(bào)如下錯(cuò)誤:

Problemdetected!
[Apache] Port 443 in use by""D:\Program Files (x86)\vmware8\vmware-hostd.exe" -u"C:\ProgramData\VMware\hostd\config.xml"" with PID 3036!
[Apache] Apache WILL NOT start without theconfigured ports free!
[Apache] Youneed to uninstall/disable/reconfigure the blocking application or reconfigureApache and the Control Panel to listen on a different port
提示信息說(shuō)明: 443號(hào)端口被vmware-hostd.exe進(jìn)程占用了,導(dǎo)致Apache無(wú)法啟動(dòng)。這是因?yàn)関mware-hostd.exe默認(rèn)是使用443號(hào)端口的,而它又是默認(rèn)自動(dòng)啟動(dòng)的。
Apache 的 httpd 服務(wù)默認(rèn)是使用80端口的,而 httpd-ssl 默認(rèn)是使用443端口的。這就導(dǎo)致了443號(hào)端口的沖突。
解決方案有兩種:
方案一:修改 httpd-ssl.conf 配置文件,將443端口改為其他空閑的端口(如4430)。

方案二:將 vmware-hostd.exe 的自動(dòng)啟動(dòng)改為手動(dòng)啟動(dòng)并將其停止。在桌面的計(jì)算機(jī)圖標(biāo)點(diǎn)擊鼠標(biāo)右鍵,選擇“管理→服務(wù)和應(yīng)用程序→服務(wù)”,將顯示名稱為“VMware Workstation Server”的服務(wù)的啟動(dòng)類(lèi)型改為手動(dòng),并停止該服務(wù)即可,如下圖所示:

最后重啟xampp即可!
說(shuō)明:上面兩種方法中的任何一種都可以。第二種方法一般也不會(huì)影響VMware的正常使用。VMware Workstation Server 服務(wù)的描述信息為“Remote access service for registration andmanagement of virtual machines.”,也就是說(shuō)它與遠(yuǎn)程管理VMware有關(guān)。而我們一般也不會(huì)使用到VMvare的遠(yuǎn)程訪問(wèn)功能,所以第二種方法基本沒(méi)有影響。
洋哥學(xué)習(xí)的主頁(yè):http://edu.51cto.com/lecturer/index/user_id-5811414.html