根据其手册页 (节格式)解绑定的配置指令include: "...可用于包含多个文件,请参见glob(7)“。
现在,不管指令是否是
include: /etc/unbound/zones/*.conf或者一个将军,都包括
include: /etc/unbound/zones/*我在服务启动时收到的消息是:
Restarting recursive DNS server: unbound/etc/unbound/unbound.conf:17: error:
cannot open include file '/etc/unbound/zone/*': No such file or directory
read /etc/unbound/unbound.conf failed: 1 errors in configuration file
[1420997682] unbound[17125:0] fatal error: Could not read config file:
/etc/unbound/unbound.conf只有完全限定的文件名才能工作。
如何解释手册页所述的内容?我是不是错了?glob应该允许通配符,对吧?
系统信息: Debian on RasPi,未绑定1.4.17-3+deb7u2
发布于 2015-01-11 18:10:12
这就是unbound.conf(5)手册页的1.4.17-3+deb7u2版本对include的看法:
可以使用include:指令将文件包括在内。它可以显示任意位置,并以单个文件名作为参数。处理contin-ue,就像将包含的文件中的文本复制到配置文件中一样。如果还使用chroot,对包含的文件使用完整路径名,则如果启动守护进程的目录等于它的chroot/working目录,则包含名称的相对路径名可以工作。
如您所见,本节中引用未绑定网站手册页中通配符和glob的句子(当前版本的手册页,此时为1.5.1)在1.4.17-3+de7u2的手册页中不存在。
我认为,对glob语句使用include只是在以后的版本中引入的一个特性。
https://serverfault.com/questions/658765
复制相似问题