PHP_啓動服務端口報錯

could not bind to address 0.0.0.0:443
no listening sockets available, shutting down

在Apache安裝完成後,啓動時會出現以下狀況:

(OS 10048)一般每一個套接字地址(協議/網絡地址/端口)只容許使用一次。

: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs

解決辦法是:


      經過 netstat -a -o 查看端口占用狀況,關閉調用相關端口的進程。
c:\>netstat -a -o
Active Connections
Proto Local Address          Foreign Address        State           PID
TCP    zhengrf:1728           localhost:30000        ESTABLISHED     5384
TCP    zhengrf:1755           localhost:ftp          ESTABLISHED     1848
TCP    zhengrf:2464           125.39.102.136:http    TIME_WAIT       0
TCP    zhengrf:2465           60.190.203.150:http    ESTABLISHED     4676
TCP    zhengrf:2466           60.190.203.150:http    ESTABLISHED     4676
TCP    zhengrf:2467           60.190.203.150:http    ESTABLISHED     4676
TCP    zhengrf:2468           60.190.203.150:http    ESTABLISHED     4676

      http默認用的是80端口,經過該http協議去查看對應的PID。
      經過打開「進程管理器」,發現PID=4676的進程號所對應的是迅雷的一個端口號。
      查看迅雷的端口設置,「配置」→「BT/端口設置」,能夠看到TCP端口使用的是 80號端口。點擊一下「隨機生成」,或者 關閉迅雷。再啓動 Apache,一切就OK了。


網絡

相關文章
相關標籤/搜索