【问题标题】:Restart lighttpd failed raspberry重新启动 lig​​httpd 失败的树莓派
【发布时间】:2017-06-18 08:20:36
【问题描述】:

您好,我在 raspberry 上安装 lighttpd 时遇到问题。

我已经以正确的方式安装了 lighttpd,它可以工作,但是自从我重新启动后,我收到了这条消息:

sudo /etc/init.d/lighttpd restart [....] 重新启动 lig​​httpd(通过 systemctl): lighttpd.service 的 lighttpd.serviceJob 失败。看 'systemctl status lighttpd.service' 和 'journalctl -xn' 了解详情。 失败!

systemctl status lighttpd.service ● lighttpd.service - Lighttpd 守护进程 已加载:已加载(/lib/systemd/system/lighttpd.service;已启用)
活动:自 2017 年 6 月 18 日星期日 07:55:58 UTC 以来失败(结果:退出代码); 22 分钟前 进程:12152 ExecStartPre=/usr/sbin/lighttpd -t -f /etc/lighttpd/lighttpd.conf (code=exited, status=255)

journalctl -xn 没有找到日志文件。

感谢帮助

【问题讨论】:

    标签: raspberry-pi2 lighttpd


    【解决方案1】:

    运行:sudo /usr/sbin/lighttpd -tt -f /etc/lighttpd/lighttpd.conf(lighttpd 1.4.40 及更高版本)并查看启动时是否显示错误。接下来,运行sudo /usr/sbin/lighttpd -p -f /etc/lighttpd/lighttpd.conf 打印配置并查找错误日志的位置。查看错误日志,了解 lighttpd 未启动的原因。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2022-12-05
      • 1970-01-01
      • 2022-11-27
      • 1970-01-01
      • 2017-07-21
      • 2020-02-20
      • 2023-03-10
      • 1970-01-01
      相关资源
      最近更新 更多