今天啟動apache時,報了“(OS 10013)以一種訪問權限不允許的方式做了一個訪問套接字的嘗試。 : make_sock: could not bind to address 0.0.0.0:80”的錯誤。從網上查是是端口沖突,仔細檢查發現80端口被IIS占用了。
解決方法:改端口號,打開.\apache\conf\httpd.conf,將其中的監聽端口,由80改為81,
# Change this to Listen on specific IP addresses as shown below to # prevent Apache from glomming onto all bound IP addresses. # #Listen 12.34.56.78:81 Listen 81
保存后重新啟動apache的,OK。
【注意】:以后訪問時得加上端口號,例如:
http://localhost:81/index.php