gpt4 book ai didi

apache2.service : Failed to run 'start' task: No such file or directory

转载 作者:行者123 更新时间:2023-12-05 01:42:13 26 4
gpt4 key购买 nike

我无法在 debian 9 上启动我的 apache 服务器。

我试过重新安装:

sudo apt-get autoremove --purge apache2 && sudo apt-get install apache2

但没有变化...

Job for apache2.service failed because of unavailable resources or another system error.
See "systemctl status apache2.service" and "journalctl -xe" for details.
invoke-rc.d: initscript apache2, action "restart" failed.

systemctl status apache2.service

● apache2.service - The Apache HTTP Server
Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
Active: failed (Result: resources)

journalctl -xeu apache2.service(我将日志级别设置为 Debug模式)

Sep 05 11:45:44 systemd[1]: apache2.service: Failed with result 'resources'.
Sep 05 11:50:26 systemd[1]: apache2.service: Changed dead -> failed
Sep 05 11:50:27 systemd[1]: apache2.service: Trying to enqueue job apache2.service/stop/replace
Sep 05 11:50:27 systemd[1]: apache2.service: Installed new job apache2.service/stop as 1415
Sep 05 11:50:27 systemd[1]: apache2.service: Enqueued job apache2.service/stop as 1415
Sep 05 11:50:27 systemd[1]: apache2.service: Job apache2.service/stop finished, result=done
Sep 05 11:50:27 systemd[1]: apache2.service: Changed dead -> failed
Sep 05 11:50:30 systemd[1]: apache2.service: Failed to run 'start' task: No such file or directory
Sep 05 11:50:30 systemd[1]: Failed to start The Apache HTTP Server.
-- Subject: Unit apache2.service has failed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- Unit apache2.service has failed.
--
-- The result is failed.
Sep 05 11:50:30 systemd[1]: apache2.service: Failed with result 'resources'.

怎么了?

最佳答案

这可能是服务“tmp”目录的问题。我与 systemd-resolved.service 有类似的错误,原因是系统迁移后缺少 '/var/tmp' 目录。检查服务正在使用的临时目录,并在必要时创建它。

关于apache2.service : Failed to run 'start' task: No such file or directory,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52170218/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com