[1]致命飞行 [Chrome 50.0|Windows XP] 发表于 2016-09-23 08:44 的评论:systemctl start named-chroot执行时报错。麻烦帮忙定位,谢谢。
[root@localhost named]# systemctl status named-chroot.service -l
● named-chroot.service - Berkeley Internet Name Domain (DNS)
Loaded: loaded (/usr/lib/systemd/system/named-chroot.service; disabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Fri 2016-09-23 08:30:55 CST; 10min ago
Process: 3705 ExecStart=/usr/sbin/named -u named -t /var/named/chroot $OPTIONS (code=exited, status=1/FAILURE)
Sep 23 08:30:55 localhost.localdomain systemd[1]: named-chroot.service: control process exited, code=exited status=1
Sep 23 08:30:55 localhost.localdomain systemd[1]: Failed to start Berkeley Internet Name Domain (DNS).
Sep 23 08:30:55 localhost.localdomain systemd[1]: Unit named-chroot.service entered failed state.
Sep 23 08:30:55 localhost.localdomain systemd[1]: named-chroot.service failed.
[1]致命飞行 [Chrome 50.0|Windows XP] 发表于 2016-09-23 08:44 的评论:systemctl start named-chroot执行时报错。麻烦帮忙定位,谢谢。
[root@localhost named]# systemctl status named-chroot.service -l
● named-chroot.service - Berkeley Internet Name Domain (DNS)
Loaded: loaded (/usr/lib/systemd/system/named-chroot.service; disabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Fri 2016-09-23 08:30:55 CST; 10min ago
Process: 3705 ExecStart=/usr/sbin/named -u named -t /var/named/chroot $OPTIONS (code=exited, status=1/FAILURE)
Sep 23 08:30:55 localhost.localdomain systemd[1]: named-chroot.service: control process exited, code=exited status=1
Sep 23 08:30:55 localhost.localdomain systemd[1]: Failed to start Berkeley Internet Name Domain (DNS).
Sep 23 08:30:55 localhost.localdomain systemd[1]: Unit named-chroot.service entered failed state.
Sep 23 08:30:55 localhost.localdomain systemd[1]: named-chroot.service failed. [2]来自四川泸州的 Chrome 45.0|Windows 7 用户 发表于 2016-11-16 17:31 的评论:你找到解决方法了吗? [3]来自北京的 Liebao|Windows 10 用户 发表于 2017-05-04 14:56 的评论:我也想问 [4]来自北京的 Liebao|Windows 10 用户 发表于 2017-05-04 15:47 的评论:我解决了 是named.conf权限问题 ,chown root.named named.conf
之后重启服务,你试一下
[1]来自北京的 Chrome 71.0|Windows 10 用户 发表于 2019-01-21 14:48 的评论:这个请求日志怎么输出? [2]来自北京的 Chrome 71.0|Windows 10 用户 发表于 2019-01-21 15:40 的评论:在logging {
channel里面新添加,都告诉找不到这个文件,我自己touch一个还是找不到,
file “/var/named/chroot/var/log/dns.log”
这个路径就是不行chown named.named log chmod 777 log都不行
[1]来自北京的 Chrome 71.0|Windows 10 用户 发表于 2019-01-21 14:48 的评论:这个请求日志怎么输出?
[1]致命飞行 [Chrome 50.0|Windows XP] 发表于 2016-09-23 08:44 的评论:systemctl start named-chroot执行时报错。麻烦帮忙定位,谢谢。
[root@localhost named]# systemctl status named-chroot.service -l
● named-chroot.service - Berkeley Internet Name Domain (DNS)
Loaded: loaded (/usr/lib/systemd/system/named-chroot.service; disabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Fri 2016-09-23 08:30:55 CST; 10min ago
Process: 3705 ExecStart=/usr/sbin/named -u named -t /var/named/chroot $OPTIONS (code=exited, status=1/FAILURE)
Sep 23 08:30:55 localhost.localdomain systemd[1]: named-chroot.service: control process exited, code=exited status=1
Sep 23 08:30:55 localhost.localdomain systemd[1]: Failed to start Berkeley Internet Name Domain (DNS).
Sep 23 08:30:55 localhost.localdomain systemd[1]: Unit named-chroot.service entered failed state.
Sep 23 08:30:55 localhost.localdomain systemd[1]: named-chroot.service failed. [2]来自四川泸州的 Chrome 45.0|Windows 7 用户 发表于 2016-11-16 17:31 的评论:你找到解决方法了吗? [3]来自北京的 Liebao|Windows 10 用户 发表于 2017-05-04 14:56 的评论:我也想问
[1]致命飞行 [Chrome 50.0|Windows XP] 发表于 2016-09-23 08:44 的评论:systemctl start named-chroot执行时报错。麻烦帮忙定位,谢谢。
[root@localhost named]# systemctl status named-chroot.service -l
● named-chroot.service - Berkeley Internet Name Domain (DNS)
Loaded: loaded (/usr/lib/systemd/system/named-chroot.service; disabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Fri 2016-09-23 08:30:55 CST; 10min ago
Process: 3705 ExecStart=/usr/sbin/named -u named -t /var/named/chroot $OPTIONS (code=exited, status=1/FAILURE)
Sep 23 08:30:55 localhost.localdomain systemd[1]: named-chroot.service: control process exited, code=exited status=1
Sep 23 08:30:55 localhost.localdomain systemd[1]: Failed to start Berkeley Internet Name Domain (DNS).
Sep 23 08:30:55 localhost.localdomain systemd[1]: Unit named-chroot.service entered failed state.
Sep 23 08:30:55 localhost.localdomain systemd[1]: named-chroot.service failed. [2]来自四川泸州的 Chrome 45.0|Windows 7 用户 发表于 2016-11-16 17:31 的评论:你找到解决方法了吗?
[1]yinghunrenzi [Safari 10.0|Mac 10.12] 发表于 2017-01-09 16:59 的评论:这里我有个疑问,在centos6版本中,bind-chroot可以直接由/etc/init.d/named这个脚本加载/etc/sysconfig/named这个文件。然后在/etc/init.d/named脚本中已经写好了通过mount --bind做目录链接。不需要设置以上这些东西。
请问在centos7中不能这样做吗?也通过mount --bind来做链接,请解答,谢谢!!! [2]linux [Chrome 55.0|Mac 10.11] 发表于 2017-01-09 23:38 的评论:没这样做过,不能确定。以我的观点来的,C7 和 C6 对用户的最大改变是 systemd 的影响,所以我初步判断应该是可行的。
[1]yinghunrenzi [Safari 10.0|Mac 10.12] 发表于 2017-01-09 16:59 的评论:这里我有个疑问,在centos6版本中,bind-chroot可以直接由/etc/init.d/named这个脚本加载/etc/sysconfig/named这个文件。然后在/etc/init.d/named脚本中已经写好了通过mount --bind做目录链接。不需要设置以上这些东西。
请问在centos7中不能这样做吗?也通过mount --bind来做链接,请解答,谢谢!!!
[1]致命飞行 [Chrome 50.0|Windows XP] 发表于 2016-09-23 08:44 的评论:systemctl start named-chroot执行时报错。麻烦帮忙定位,谢谢。
[root@localhost named]# systemctl status named-chroot.service -l
● named-chroot.service - Berkeley Internet Name Domain (DNS)
Loaded: loaded (/usr/lib/systemd/system/named-chroot.service; disabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Fri 2016-09-23 08:30:55 CST; 10min ago
Process: 3705 ExecStart=/usr/sbin/named -u named -t /var/named/chroot $OPTIONS (code=exited, status=1/FAILURE)
Sep 23 08:30:55 localhost.localdomain systemd[1]: named-chroot.service: control process exited, code=exited status=1
Sep 23 08:30:55 localhost.localdomain systemd[1]: Failed to start Berkeley Internet Name Domain (DNS).
Sep 23 08:30:55 localhost.localdomain systemd[1]: Unit named-chroot.service entered failed state.
Sep 23 08:30:55 localhost.localdomain systemd[1]: named-chroot.service failed.
分享到微信
打开微信,点击顶部的“╋”,
使用“扫一扫”将网页分享至微信。