启动Lighttpd Daemon失败



尝试在编辑后启动Lighttpd:

@raspberrypi:/etc/lighttpd/ssl $ 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 Tue 2023-01-10 14:36:35 CET; 11s ago
Process: 17057 ExecStartPre=/usr/sbin/lighttpd -tt -f /etc/lighttpd/lighttpd.conf (code=exited, status=255/EXCEPTION)
CPU: 60ms
Jan 10 14:36:35 raspberrypi systemd[1]: lighttpd.service: Scheduled restart job, restart counter is at 5.
Jan 10 14:36:35 raspberrypi systemd[1]: Stopped Lighttpd Daemon.
Jan 10 14:36:35 raspberrypi systemd[1]: lighttpd.service: Start request repeated too quickly.
Jan 10 14:36:35 raspberrypi systemd[1]: lighttpd.service: Failed with result 'exit-code'.
Jan 10 14:36:35 raspberrypi systemd[1]: Failed to start Lighttpd Daemon.

下面是我在conf文件中编辑的内容:

$SERVER ["socket"] == ":443" {
ssl.engine = "enable"
ssl.pemfile = "/etc/lighttpd/ssl/buildinggroup6.local.pem"
# ssl.ca-file = "/etc/lighttpd/ssl/CA_issuing.crt"
server.name = "group6.local"
server.document-root = "/sites/vhosts/group6.local/public"
server.errorlog = "/var/log/lighttpd/group6.local.error.log"
accesslog.filename = "/var/log/lighttpd/group6.local.access.log"
}

我什么都没试过,它应该启动,编辑后给我一个ssl证书为我的web服务器。

在命令行上手动运行ExecStartPre=/usr/sbin/lighttpd -tt -f /etc/lighttpd/lighttpd.conf步骤并查看错误。Systemd倾向于把有用的信息隐藏在噪音中。

手动运行:/usr/sbin/lighttpd -tt -f /etc/lighttpd/lighttpd.conf并修复lighttpd报告的配置错误。

我的猜测是您指定了ssl.pemfile,但您还需要指定ssl.privkey与TLS证书的私钥路径。

相关内容

  • 没有找到相关文章

最新更新