我的 apache 服务器是 运行 但是当我访问网页时它说网络连接超时
My apache server is running but when I go to webpage it says network connection timed out
我在 raspberry pi 上使用 LAMP 服务器,我的 apache 服务器已停止显示网站(页面)。
我已经尝试重启服务器和我的整个 Pi
它是树莓派 3,apache 版本是 2.0 lamp 服务器的其他组件正在工作
我在终端中输入了这个命令
sudo apache2
它给了我这个:
[Sun Dec 23 10:38:11.948939 2018] [core:warn] [pid 2061] AH00111: Config variable ${APACHE_RUN_DIR} is not defined
apache2: Syntax error on line 80 of /etc/apache2/apache2.conf: DefaultRuntimeDir must be a valid directory, absolute or relative to ServerRoot
您必须使用它的服务启动它,而不是直接使用它的可执行文件。
sudo systemctl start apache2
我在 raspberry pi 上使用 LAMP 服务器,我的 apache 服务器已停止显示网站(页面)。
我已经尝试重启服务器和我的整个 Pi 它是树莓派 3,apache 版本是 2.0 lamp 服务器的其他组件正在工作
我在终端中输入了这个命令
sudo apache2
它给了我这个:
[Sun Dec 23 10:38:11.948939 2018] [core:warn] [pid 2061] AH00111: Config variable ${APACHE_RUN_DIR} is not defined
apache2: Syntax error on line 80 of /etc/apache2/apache2.conf: DefaultRuntimeDir must be a valid directory, absolute or relative to ServerRoot
您必须使用它的服务启动它,而不是直接使用它的可执行文件。
sudo systemctl start apache2