无法在Respian上安装Apache2

时间:2019-12-25 22:11:03

标签: apache2 raspbian

我尝试在树莓派4上安装apache2,但如果尝试“ sudo apt-get install apache2”,则会出现此错误:

Job for apache2.service failed because the control process exited with error code.
See "systemctl status apache2.service" and "journalctl -xe" for details.
invoke-rc.d: initscript apache2, action "restart" failed.
● apache2.service - The Apache HTTP Server
   Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Wed 2019-12-25 23:07:12 CET; 22ms ago
     Docs: https://httpd.apache.org/docs/2.4/
  Process: 21792 ExecStart=/usr/sbin/apachectl start (code=exited, status=1/FAILURE)

Dez 25 23:07:12 raspberrypi systemd[1]: Starting The Apache HTTP Server...
Dez 25 23:07:12 raspberrypi apachectl[21792]: apache2: Could not open configuration file /etc/apache2/apache2.conf: No such file or directory
Dez 25 23:07:12 raspberrypi apachectl[21792]: Action 'start' failed.
Dez 25 23:07:12 raspberrypi apachectl[21792]: The Apache error log may have more information.
Dez 25 23:07:12 raspberrypi systemd[1]: apache2.service: Control process exited, code=exited, status=1/FAILURE
Dez 25 23:07:12 raspberrypi systemd[1]: apache2.service: Failed with result 'exit-code'.
Dez 25 23:07:12 raspberrypi systemd[1]: Failed to start The Apache HTTP Server.

我已经尝试升级和更新

0 个答案:

没有答案