공부자료/Linux
[CentOS 7] Job for named.service failed because the control process exited with error code.
F0X
2022. 5. 26. 12:27
Job for named.service failed because the control process exited with error code.
See "systemctl status named.service" and "journalctl -xe" for details.
네임드를 실행시킬 때 이런 식으로 에러가 발생했는데
되게 단순한 오류 였지만 뻘짓하면서 고치는 방법을 찾았는데, 안 까먹으려고 블로그에 작성한다.
에러 발생 이유
-rwxr-xr-x. 1 root root 187 12월 30 17:20 파일명
에러 내용
named[115040]: directory '/bind/var' is not writable
named[115040]: /bind/etc/named.conf:3: parsing failed: permission denied
named[115040]: loading configuration: permission denied
수정 방법
chown named:named -R /bind/var '해당 명령어를 실행해준다.
-rwxr-xr-x. 1 named named 187 12월 30 17:20 파일명 '명령어 실행 후