|
请各位高手帮帮看看:搞不懂named -t总是找不到named.conf
[root@dns1 man8]# /usr/local/named/sbin/named -t /home/dns/ -u dns -c /home/dns/etc/named.conf -g
11-Mar-2008 14:42:01.361 starting BIND 9.4.2 -t /home/dns/ -u dns -c /home/dns/etc/named.conf -g
11-Mar-2008 06:42:01.364 loading configuration from '/home/dns/etc/named.conf'
11-Mar-2008 06:42:01.364 none:0: open: /home/dns/etc/named.conf: file not found
11-Mar-2008 06:42:01.364 loading configuration: file not found
11-Mar-2008 06:42:01.364 exiting (due to fatal error)
[root@dns1 man8]#
/usr/local/named/sbin/named -u dns -c /home/dns/etc/named.conf -g就可以运行,好像不是目录权限问题
1、
useradd dns –d /home/dns
2、
mkdir –p /home/dns/var/log ;mkdir –p /home/dns/var/run
mkdir –p /home/dns/var/named ;mkdir –p /home/dns/etc
3、
cp /etc/named.conf /home/dns/etc
cp –r /var/named/* /home/dns/var/named/
4、
chown –R dns:dns /home/dns
5、
/usr/local/sbin/named –c /home/dns/etc/named.conf –u dns -g
请问named -t为什么总是找named.conf呢,,是否还有什么选项没设定
非常感谢 |
|