在linux系統中啟動apache失敗怎么辦呢?今天小編就將針對這一問題為大家詳細介紹Linux apache啟動
失敗的解決方法,有遇到同樣問題的小伙伴們一起參考參考吧。
[root@jsjzhang www]# /etc/rc.d/init.d/httpd restart
Stopping httpd: [FAILED]
Starting httpd: Syntax error on line 265 of /etc/httpd/conf/httpd.conf:
DocumentRoot must be a directory
其實這個目錄沒有什么問題,只是解壓的一個tar包,最后確定是selinux
解決方法:
vi /etc/selinux/config
使SELINUX=disable
或/etc/selinux/targeted/booleans
httpd_enable_homedirs=1
Stopping httpd: [FAILED]
Starting httpd: Syntax error on line 265 of /etc/httpd/conf/httpd.conf:
DocumentRoot must be a directory
其實這個目錄沒有什么問題,只是解壓的一個tar包,最后確定是selinux
解決方法:
vi /etc/selinux/config
使SELINUX=disable
或/etc/selinux/targeted/booleans
httpd_enable_homedirs=1
以上內容就是Linux apache啟動失敗的解決方法,在這個拼顏值的時代,拼不過顏值的時候我們只有通過
豐富的知識才能提升個人的內在氣質和修養。