linux 以任何方式运行lighttpd时出错,例如状态255或无效字符

watbbzwu  于 2023-04-29  发布在  Linux
关注(0)|答案(1)|浏览(211)

我一直在尝试设置一个lighttpd来托管一个网站,但是当我运行像systemctl start lighttpdsystemctl status lighttpd.service这样的命令时,我不断地收到错误。
运行systemctl start lighttpd后,我得到以下结果:

Job for lighttpd.service failed because the control process exited with error code.

在运行systemctl status lighttpd.service之后,我得到以下结果:

lighttpd.service - Lighttpd Daemon
     Loaded: loaded (/lib/systemd/system/lighttpd.service; enabled; vendor preset: enabled)
    Drop-In: /etc/systemd/system/lighttpd.service.d
             └─dietpi.conf
     Active: failed (Result: exit-code) since Sun 2023-04-23 22:27:55 BST; 9s ago
    Process: 209906 ExecStartPre=/usr/sbin/lighttpd -tt -f /etc/lighttpd/lighttpd.conf (code=exited, status=255/EXCEPTION)
        CPU: 10ms

Apr 23 22:27:55 iphone systemd[1]: lighttpd.service: Scheduled restart job, restart counter is at 5.
Apr 23 22:27:55 iphone systemd[1]: Stopped Lighttpd Daemon.
Apr 23 22:27:55 iphone systemd[1]: lighttpd.service: Start request repeated too quickly.
Apr 23 22:27:55 iphone systemd[1]: lighttpd.service: Failed with result 'exit-code'.
Apr 23 22:27:55 iphone systemd[1]: Failed to start Lighttpd Daemon.

我也运行了这个,lighttpd -t -f /etc/lighttpd/lighttpd.conf,我得到了这个:

2023-04-23 21:47:27: configfile.c.1909) source: /etc/lighttpd/lighttpd.conf line: 2 pos: 1 invalid character in variable name
2023-04-23 21:47:27: configfile.c.1967) configfile parser failed at: (

我试着重新安装它,清除任何剩余的文件的apache,甚至没有Pihole工程了,因为网页是混乱的,它甚至不加载了。我试过像很多人说的那样更新所有东西并安装Gamin,但我没有看到任何解决这个问题的方法。

yizd12fk

yizd12fk1#

2023-04-23 21:47:27: configfile.c.1909) source: /etc/lighttpd/lighttpd.conf line: 2 pos: 1 invalid character in variable name
lighttpd已经准确地告诉你问题在配置文件中的什么地方,/etc/lighttpd/lighttpd第2行的第一个字符。conf. lighttpd甚至告诉了你错误的字符:去把它修好。

相关问题