栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 系统运维 > 运维 > Linux

ntp配置同步

Linux 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

ntp配置同步

1yum安装ntp服务
2配置ntp配置文件
7. ntp时间同步

#启动ntp服务

systemctl start ntpd.service && systemctl enable ntpd.servcie 如客户自定义时间同步,则使用ntptime检查状态是否ok

SERVER

restrict 172.23.5.134(本地ip) nomodify notrap nopeer noquery

restrict 172.23.5.0(网段ip) mask 255.255.255.0 nomodify notrap

server 127.127.1.0(server就写这个) iburst

CLIENT

restrict 172.23.5.135(本地ip) nomodify notrap nopeer noquery

restrict 172.23.5.0(网段ip) mask 255.255.255.0 nomodify notrap

server 172.23.5.134(写server地址) iburst

ntptime/ntpq -p测试 如涉及到服务器重启,需要检查时间同步

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/618813.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号