重啟apache error.log提示AH00094: Command line: ‘/usr/sbin/httpd -DforEGROUND’是設(shè)置錯(cuò)誤造成的,解決方法為:
1、首先需要使用yum安裝apache服務(wù),yum install httpd -y。
2、接下來(lái)啟動(dòng)apache服務(wù)systemctl start httpd并本地測(cè)試訪問(wèn)。
3、然后通過(guò)命令ps -ef|grep httpd 找到apache的進(jìn)程/usr/sbin/httpd。
4、接下來(lái)輸入/usr/sbin/httpd -V這樣就能查找配置文件的路徑了,問(wèn)題就解決。