올바른 권한이 있어도 lighttpd가 시작되지 않습니다

올바른 권한이 있어도 lighttpd가 시작되지 않습니다
systemctl status lighttpd
● lighttpd.service - Lightning Fast Webserver With Light System Requirements
   Loaded: loaded (/usr/lib/systemd/system/lighttpd.service; enabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Thu 2020-09-24 15:56:39 EDT; 2s ago
  Process: 6152 ExecStart=/usr/sbin/lighttpd -D -f /etc/lighttpd/lighttpd.conf (code=exited, status=255)
 Main PID: 6152 (code=exited, status=255)

Sep 24 15:56:39 js.dc.localsystemd[1]: Started Lightning Fast Webserver With Light System Requirements.
Sep 24 15:56:39 js.dc.locallighttpd[6152]: 2020-09-24 15:56:39: (server.c.752) opening errorlog '/var/log/lighttpd/error.log' failed: Permission denied
Sep 24 15:56:39 js.dc.locallighttpd[6152]: 2020-09-24 15:56:39: (server.c.1485) Opening errorlog failed. Going down.
Sep 24 15:56:39 js.dc.localsystemd[1]: lighttpd.service: Main process exited, code=exited, status=255/n/a
Sep 24 15:56:39 js.dc.localsystemd[1]: lighttpd.service: Failed with result 'exit-code'.

dir 권한은 다음과 같습니다.

]# ls -la /var/log/lighttpd/
total 4
drw-rw-rw-  2 lighttpd lighttpd   41 Sep 24 15:54 .
drwxr-xr-x. 8 root     root     4096 Sep 24 14:49 ..
-rw-rw-rw-  1 lighttpd lighttpd    0 Sep 24 15:00 access.log
-rw-rw-rw-  1 lighttpd lighttpd    0 Sep 24 15:54 error.log

파일을 제거하고 다시 만들었습니다. selinux가 활성화되어 있지 않습니다. 무엇을 더 시도해야 할지 잘 모르겠습니다.

답변1

/var/log및 의 권한을 확인하세요 /var/log/lighttpd.

당신이 보여주는 결과는 아마도 그럴 /var/log/lighttpd수 있다는 것을 암시합니다 .drw-rw-rw-drwxr-xr-x

관련 정보