安装 nscd

yum -y install nscd

查看状态 及 启动命令

systemctl status nscd          # 查看状态
systemctl start nscd            # 启动 nscd

启动nscd 服务后,清缓存

nscd -i hosts