apache - (13)权限被拒绝 : Error retrieving pid file run/httpd. pid

标签 apache redhat

我已安装 httpd-2.2.29使用命令:

./configure --prefix=/home/user/httpd
make
make install

我配置了 httpd.conf并尝试从 apache: apachectl start 开始.但得到以下错误:

(13)Permission denied: Error retrieving pid file run/httpd.pid Remove it before continuing if it is corrupted.



我试图找到文件 httpd.pid ,但哪里没有这样的文件。

有人可以帮我解决这样的问题吗?

最佳答案

您是否尝试以非特权用户身份启动 apache?权限被拒绝表明你做到了。试试这个:

$ sudo apachectl start

关于apache - (13)权限被拒绝 : Error retrieving pid file run/httpd. pid,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27862664/

相关文章:

php - .htaccess mod_rewrite 中的加号和百分号

Apache SSL 错误 - 无法为装订配置服务器证书

r - 如何在 CentOS 上升级 R

linux - 如何在 aws ec2 rhel7 ami 上调整根分区的大小?

linux - 为什么即使以 root 用户身份运行成功,ant build 也会因 sudo 而失败?

java - 使用什么来重播 ActiveMQ 中的消息以及为什么?

MacOS Sierra : apachectl is using configuration from/usr/local/etc/apache2/2. 4 而不是/etc/apache2/

php - XAMPP PHP OPENSSL openssl_pkey_get_details() 崩溃网页

linux - 使用 "sed"在 Redhat Linux 上查找和替换

centos - 使用 rpmbuild 时如何更改 RPM 的目标