linux apache启动错误error retrieving pid file run/httpd.pid

问题:在root用户下启动正常,在普通用户下却提示:

[svn@localhost ~]$ apachectl -k start
(13)Permission denied: Error retrieving pid file run/httpd.pid
Remove it before continuing if it is corrupted.
 
[svn@localhost ~]$ /usr/local/apache2/bin/apachectl start
(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
 

 解决方案:

[svn@localhost ~]$ su\
> 
密码:
[root@localhost svn]# cd
[root@localhost ~]# apachectl -k start
[root@localhost ~]# /usr/local/apache2/bin/apachectl start
[root@localhost ~]# 
 

 

你可能感兴趣的:(apache,SVN)