linux httpd apache程序启动出错
2011-07-07 18:49:06| 分类:
默认分类
| 标签:
|举报
|字号大中小 订阅
[root@ip-133-101-168-192 conf]# service httpd restart
Stopping httpd: [FAILED]
Starting httpd: httpd: Could not open configuration file /etc/httpd/conf/httpd.conf: Permission denied
[FAILED]
[root@ip-133-101-168-192 conf]# httpd -f /etc/httpd/conf/httpd.conf -t
Syntax OK
[root@ip-133-101-168-192 conf]# chcon -t httpd_config_t httpd.conf
[root@ip-133-101-168-192 conf]# ls -Z
-rwxrwxrwx apache apache root:object_r:httpd_config_t httpd.conf
-rwxrwxrwx apache apache system_u:object_r:httpd_config_t httpd.conf.bak
-rwxrwxrwx apache apache system_u:object_r:httpd_config_t magic
[root@ip-133-101-168-192 conf]# service httpd restart
Stopping httpd: [FAILED]
Starting httpd: [ OK ]
[root@ip-133-101-168-192 conf]#
评论这张
转发至微博
转发至微博
评论