AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / ubuntu / 问题 / 1072840
Accepted
Steve
Steve
Asked: 2018-09-07 09:24:45 +0800 CST2018-09-07 09:24:45 +0800 CST 2018-09-07 09:24:45 +0800 CST

启动时无法启动 Lighttpd 守护进程

  • 772

每次打开笔记本电脑时,我都会在启动过程中多次看到有关Lighttpdsystemctl --failed的错误消息(也打开):

Failed to start Lighttpd Daemon.
See 'systemctl status lighttpd.service' for details.

登录后,我输入systemctl status lighttpd.service并得到以下输出:

● lighttpd.service - Lighttpd Daemon
   Loaded: loaded (/lib/systemd/system/lighttpd.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Thu 2018-09-06 20:54:16 +05; 22min ago
  Process: 1170 ExecStartPre=/usr/sbin/lighttpd -tt -f /etc/lighttpd/lighttpd.conf (code=exited, status=127)

Sen 06 20:54:16 ibrokhim-i systemd[1]: lighttpd.service: Service hold-off time over, scheduling restart.
Sen 06 20:54:16 ibrokhim-i systemd[1]: lighttpd.service: Scheduled restart job, restart counter is at 5.
Sen 06 20:54:16 ibrokhim-i systemd[1]: Stopped Lighttpd Daemon.
Sen 06 20:54:16 ibrokhim-i systemd[1]: lighttpd.service: Start request repeated too quickly.
Sen 06 20:54:16 ibrokhim-i systemd[1]: lighttpd.service: Failed with result 'exit-code'.
Sen 06 20:54:16 ibrokhim-i systemd[1]: Failed to start Lighttpd Daemon.

此外,这是来自的输出cat /etc/lighttpd/lighttpd.conf:

server.modules = (
    "mod_access",
    "mod_alias",
    "mod_compress",
    "mod_redirect",
)

server.document-root        = "/var/www/html"
server.upload-dirs          = ( "/var/cache/lighttpd/uploads" )
server.errorlog             = "/var/log/lighttpd/error.log"
server.pid-file             = "/var/run/lighttpd.pid"
server.username             = "www-data"
server.groupname            = "www-data"
server.port                 = 80


index-file.names            = ( "index.php", "index.html", "index.lighttpd.html" )
url.access-deny             = ( "~", ".inc" )
static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" )

compress.cache-dir          = "/var/cache/lighttpd/compress/"
compress.filetype           = ( "application/javascript", "text/css", "text/html", "text/plain" )

# default listening port for IPv6 falls back to the IPv4 port
## Use ipv6 if available
#include_shell "/usr/share/lighttpd/use-ipv6.pl " + server.port
include_shell "/usr/share/lighttpd/create-mime.assign.pl"
include_shell "/usr/share/lighttpd/include-conf-enabled.pl"

我该如何解决这个问题?

boot lighttpd 18.04
  • 3 3 个回答
  • 17224 Views

3 个回答

  • Voted
  1. Best Answer
    hiigaran
    2019-01-28T18:02:40+08:002019-01-28T18:02:40+08:00

    事实证明这是一个已经存在多年的错误,如果这个问题有任何问题的话。该错误评论中的一些用户声称安装该软件包可以解决此问题。gamin

    我没有进行任何广泛的测试,但这似乎是一个解决方案。运行sudo apt install --reinstall lighttpd正常显示启动失败lighttpd。但是,在安装之后gamin,输出看起来就像任何成功的软件包安装通常一样。systemctl status现在也显示lighttpd为活动和正在运行。

    请注意,libfam0安装时会删除该软件包gamin。我不知道它的用途,或者哪些软件包可能依赖于它,所以请记住这一点,除非其他人可以评论它的有用性和必要性。

    • 7
  2. Victor Andres
    2019-09-27T07:01:32+08:002019-09-27T07:01:32+08:00

    我解决了这个问题:

    chown -R www-data:www-data /var/log/lighttpd/
    
    • 3
  3. Ryan Jarvis
    2021-02-15T17:57:04+08:002021-02-15T17:57:04+08:00

    所以我不得不进行清除以清除系统中的额外文件:

    sudo apt-get purge lighttpd
    

    然后重新安装软件

    sudo apt-get install lighttpd
    

    这会重置所有 .conf 文件和其他文件

    • 0

相关问题

  • grub 菜单中的“恢复”选项是什么?

  • 用户如何避免在启动时输入密码?[关闭]

  • 更改 Wubi 的启动顺序

  • 如何在 Ubuntu 启动时显示或隐藏启动消息?

  • 如何避免启动时出现“S to Skip”消息?

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve