我正在尝试重新启动我的 Amazon EC2 Apache 服务器,但收到一条错误消息,提示
(13)权限被拒绝:AH00058:检索 pid 文件 /var/run/httpd/httpd.pid 时出错 AH00059:如果文件已损坏,请先将其删除,然后再继续。
我正在尝试使用 重新启动它apachectl graceful
。
由于代表原因无法发布图像,但这正是终端所显示的内容:
Last login: Thu Feb 25 21:53:05 on ttys001
Jeffs-MacBook-Pro:~ jeffArries$ ssh -i /Users/jeffArries/Desktop/jeffarries.pem [email protected]
Last login: Fri Feb 26 05:53:07 2016 from 71.83.110.240
__| __|_ )
_| ( / Amazon Linux AMI
___|\___|___|
https://aws.amazon.com/amazon-linux-ami/2015.09-release-notes/
[ec2-user@ip-172-31-31-54 ~]$ apachectl graceful
(13)Permission denied: AH00058: Error retrieving pid file /var/run/httpd/httpd.pid
AH00059: Remove it before continuing if it is corrupted.
[ec2-user@ip-172-31-31-54 ~]$
谢谢你的努力!
答案1
尝试这个
sudo service apache2 restart