bind的chroot模式

蒜香大龙虾 2024-08-07 23:33:49
Categories: Tags:

bind的chroot

安装

1
yum install bind-chroot -y

配置chroot

使用自带脚本挂载路径

1
/usr/libexec/setup-named-chroot.sh /var/named/chroot on

因为是挂载,所以直接修改源路径和chroot路径效果是一样的。

启动chroot

先关闭named再启动named-chroot

1
2
systemctl disable --now named
systemctl enable --now named-chroot