systemctl 重新啟動 lighttpd.service

systemctl 重新啟動 lighttpd.service

我使用的是 Ubuntu 18.04.4 LTS。我已經安裝了lighttpd 8.28。

我創建了資料夾 - rx 2 www-data www-data 4096 Mar 16 15:41 httpd

我將我的 server.document-root 指向 /home/httpd

當我重新啟動服務時。

systemctl 重新啟動 lighttpd.service

lighttpd.service 的作業失敗,因為控制進程退出並顯示錯誤代碼。有關詳細信息,請參閱“systemctl status lighttpd.service”和“journalctl -xe”。

我在系統日誌上收到以下錯誤。我不知道如何調試這個以及這裡真正的問題是什麼。我已將 server-document.root 的群組更改為 www-data。

Mar 16 16:28:42 abc-VirtualBox systemd[1]: Starting Lighttpd Daemon...
Mar 16 16:28:42 abc-VirtualBox lighttpd[4270]: /usr/sbin/lighttpd: Symbol `FamErrlist' has different size in shared object, consider re-linking
Mar 16 16:28:42 abc-VirtualBox lighttpd[4270]: /usr/sbin/lighttpd: symbol lookup error: /usr/sbin/lighttpd: undefined symbol: FAMNoExists
Mar 16 16:28:42 abc-VirtualBox systemd[1]: lighttpd.service: Control process exited, code=exited status=127
Mar 16 16:28:42 abc-VirtualBox systemd[1]: lighttpd.service: Failed with result 'exit-code'.
Mar 16 16:28:42 abc-VirtualBox systemd[1]: Failed to start Lighttpd Daemon.
Mar 16 16:28:42 abc-VirtualBox systemd[1]: lighttpd.service: Service hold-off time over, scheduling restart.
Mar 16 16:28:42 abc-VirtualBox systemd[1]: lighttpd.service: Scheduled restart job, restart counter is at 5.
Mar 16 16:28:42 abc-VirtualBox systemd[1]: Stopped Lighttpd Daemon.
Mar 16 16:28:42 abc-VirtualBox systemd[1]: lighttpd.service: Start request repeated too quickly.
Mar 16 16:28:42 abc-VirtualBox systemd[1]: lighttpd.service: Failed with result 'exit-code'.
Mar 16 16:28:42 abc-VirtualBox systemd[1]: Failed to start Lighttpd Daemon.

答案1

根據這個線程, 尤其這則評論,安裝gamin包應該可以解決問題。

相關內容