2016-04-30 104 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的端口,并将日志文件的路径设置为你有写权限的地方。