2016-04-30 22 views
0

,當我試圖啓動Apache服務器,這樣出來:阿帕奇 '-k開始' 未能在Debian

/usr/sbin/apachectl -k start 
/usr/sbin/apachectl: 87: ulimit: error setting limit (Operation not permitted) 
(13)Permission denied: make_sock: could not bind to address [::]:80 
(13)Permission denied: make_sock: could not bind to address 0.0.0.0:80 
no listening sockets available, shutting down 
Unable to open logs 
Action '-k start' failed. 
The Apache error log may have more information. 

有什麼不對?我不能做sudo,因爲這是由學校服務器提供的練習服務器,我沒有su特權。

我是一個總新手btw。,試圖學習這一點。

預先感謝您。

回答

1

Apache無法偵聽受保護的端口(80在1024以下),沒有root權限。你應該讓apache監聽一個大於1024的端口,並將日誌文件的路徑設置爲你有寫權限的地方。