我在ubuntu 13.10上安装了apache2。如果我尝试使用重新启动它
sudo /etc/init.d/apache2 restart
我收到此消息:
AH00558:apache2:无法使用127.0.1.1可靠地确定服务器的标准域名。全局设置“ ServerName”指令以禁止显示此消息
所以我读到我应该编辑我的httpd.conf
文件。但是,由于无法在/etc/apache2/
文件夹中找到它,因此我尝试使用以下命令找到它:
/usr/sbin/apache2 -V
但是我得到的输出是这样的:
[Fri Nov 29 17:35:43.942472 2013] [core:warn] [pid 14655] AH00111: Config variable ${APACHE_LOCK_DIR} is not defined
[Fri Nov 29 17:35:43.942560 2013] [core:warn] [pid 14655] AH00111: Config variable ${APACHE_PID_FILE} is not defined
[Fri Nov 29 17:35:43.942602 2013] [core:warn] [pid 14655] AH00111: Config variable ${APACHE_RUN_USER} is not defined
[Fri Nov 29 17:35:43.942613 2013] [core:warn] [pid 14655] AH00111: Config variable ${APACHE_RUN_GROUP} is not defined
[Fri Nov 29 17:35:43.942627 2013] [core:warn] [pid 14655] AH00111: Config variable ${APACHE_LOG_DIR} is not defined
[Fri Nov 29 17:35:43.947913 2013] [core:warn] [pid 14655] AH00111: Config variable ${APACHE_LOG_DIR} is not defined
[Fri Nov 29 17:35:43.948051 2013] [core:warn] [pid 14655] AH00111: Config variable ${APACHE_LOG_DIR} is not defined
[Fri Nov 29 17:35:43.948075 2013] [core:warn] [pid 14655] AH00111: Config variable ${APACHE_LOG_DIR} is not defined
AH00526: Syntax error on line 74 of /etc/apache2/apache2.conf:
Invalid Mutex directory in argument file:${APACHE_LOCK_DIR}
第74行/etc/apache2/apache2.conf
是这样的:
Mutex file:${APACHE_LOCK_DIR} default
我看了一下我的/etc/apache2/envvar
文件,但不知道该怎么做。
我该怎么办?