gpt4 book ai didi

linux - AH00526 : Syntax error on line 74 of/etc/apache2/apache2. conf:参数文件中的无效互斥目录:${APACHE_LOCK_DIR}

转载 作者:太空狗 更新时间:2023-10-29 11:18:26 26 4
gpt4 key购买 nike

我是 Apache2 的新手,我正在尝试让 Apache2 在我的本地 Linux (linux mint 17) 上运行。当我尝试:sudo apache2 时,出现以下错误:

[Mon Jul 20 16:15:30.785526 2015] [core:warn] [pid 14221] AH00111: Config variable ${APACHE_LOCK_DIR} is not defined [Mon Jul 20 16:15:30.785602 2015] [core:warn] [pid 14221] AH00111: Config variable ${APACHE_PID_FILE} is not defined [Mon Jul 20 16:15:30.785618 2015] [core:warn] [pid 14221] AH00111: Config variable ${APACHE_RUN_USER} is not defined [Mon Jul 20 16:15:30.785627 2015] [core:warn] [pid 14221] AH00111: Config variable ${APACHE_RUN_GROUP} is not defined [Mon Jul 20 16:15:30.785644 2015] [core:warn] [pid 14221] AH00111: Config variable ${APACHE_LOG_DIR} is not defined [Mon Jul 20 16:15:30.787550 2015] [core:warn] [pid 14221:tid 140466817042304] AH00111: Config variable ${APACHE_LOG_DIR} is not defined [Mon Jul 20 16:15:30.787686 2015] [core:warn] [pid 14221:tid 140466817042304] AH00111: Config variable ${APACHE_LOG_DIR} is not defined [Mon Jul 20 16:15:30.787703 2015] [core:warn] [pid 14221:tid 140466817042304] 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}

然后我在网上搜索了一些类似的问题并尝试:sudo/etc/init.d/apache2 restart,它给了我:

  • 重新启动网络服务器 apache2AH00558:apache2:无法可靠地确定服务器的完全限定域名,使用 127.0.1.1。全局设置 'ServerName' 指令以抑制此消息

再次,我尝试在网上找到解决方案,即在 /etc/apache2/apache2.conf

的末尾添加: ServerName localhost

现在 sudo/etc/init.d/apache2 restart 命令有效,但 sudo apache2 仍然给出相同的错误。

有人能帮帮我吗?

最佳答案

通过以下 thread ,请尝试这些需要使用“服务”的命令:

sudo service apache2 status
sudo service apache2 start
sudo service apache2 stop
sudo service apache2 reload

关于linux - AH00526 : Syntax error on line 74 of/etc/apache2/apache2. conf:参数文件中的无效互斥目录:${APACHE_LOCK_DIR},我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31527954/

26 4 0