在Ubuntu中启动apache2服务器时出错

Shreya Sood:

systemctl启动apache2.service

收到此错误:

apache2.service的作业失败,因为控制进程退出并显示错误代码。有关详细信息,请参见“ systemctl status apache2.service”和“ journalctl -xe”。

systemctl状态apache2.service的日志

● apache2.service - The Apache HTTP Server
   Loaded: loaded (/lib/systemd/system/apache2.service; disabled; vendor preset: enabled)
  Drop-In: /lib/systemd/system/apache2.service.d
           └─apache2-systemd.conf
   Active: failed (Result: exit-code) since Tue 2020-06-02 08:24:55 IST; 49s ago
  Process: 9759 ExecStart=/usr/sbin/apachectl start (code=exited, status=127)

Jun 02 08:24:55 GS-4996 systemd[1]: Starting The Apache HTTP Server...
Jun 02 08:24:55 GS-4996 apachectl[9759]: /usr/sbin/apachectl: 174: /usr/sbin/apachectl: /usr/sbin/apache2: not found
Jun 02 08:24:55 GS-4996 apachectl[9759]: Action 'start' failed.
Jun 02 08:24:55 GS-4996 apachectl[9759]: The Apache error log may have more information.
Jun 02 08:24:55 GS-4996 systemd[1]: apache2.service: Control process exited, code=exited status=127
Jun 02 08:24:55 GS-4996 systemd[1]: apache2.service: Failed with result 'exit-code'.
Jun 02 08:24:55 GS-4996 systemd[1]: Failed to start The Apache HTTP Server.
指南:

看起来apache2文件在服务器上不可用。/ usr / sbin / apache2由apache2-bin提供。apache2-bin是apache2软件包的依赖项,因此如果没有apache2软件包,apache2将无法正常工作。打开终端并输入:

sudo apt install --reinstall apache2-bin   
sudo service apache2 start  

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章

启动jboss服务器时出错

创建网站及其使用apache2服务器的文件时,在/ var / www / html中的权限被拒绝

启动Stardog服务器时出错

PHP API无法在apache2 Ubuntu服务器上与Django配合使用| 谷歌云

“ sbt服务器已经启动。” 从wsl2 ubuntu启动sbt时出错

Apache,问题无法启动LSB:Apache2 Web服务器

查找指向VirtualBox Ubuntu Apache2服务器的URL

更新Ubuntu服务器时出错

访问apache2中的php页面时发生内部服务器错误

在Windows上用PHP模块启动Apache时出错:“无法将php5apache2_4.dll加载到服务器中:访问被拒绝”

启动Rails服务器时出错

Linux Ubuntu中的Apache2 Web服务器

在Rails上的ruby中启动服务器时出错

在Ubuntu 14.04中为Apache2服务器上的HMAC设置限制

在计算机上运行apache2 httpd Web服务器时出错

在Ubuntu 16.04中启动服务时出错:

Apache2“无法启动Apache HTTP服务器”

从终端启动apache2服务器

无法启动apache2服务器

慢速apache2服务在启动时启动

在 docker centos 中启动 tomcat 服务器时出错

启动 Apache2 ... 失败,因为 -> 另一个 Web 服务器已经在运行,Ubuntu 18.04

apache2 服务器未启动

ubuntu 20.04 apache2 服务器失败

启动 npm 服务器时出错

ubuntu 16 上的 500 内部服务器错误 django + mod_wsgi + apache2

Ubuntu 服务器 apache2

无法在 ubuntu 中运行 Apache2 服务器

在 ubuntu 服务器上启动 spring boot jar 的问题。启动 ApplicationContext 时出错