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