首页 > 其他 > 详细

时间同步服务部署

时间:2020-02-25 02:41:30      阅读:61      评论:0      收藏:0      [点我收藏+]

安装时间同步服务器

yum install ntp -y

配置文件

vim /etc/ntp.conf

# Hosts on local network are less restricted.
restrict 172.16.1.0/24 mask 255.255.255.0 nomodify notrap

restrict 0.0.0.0 mask 0.0.0.0 nomodify notrap restrict default #default指所有的IP

restrict 192.168.5.0 mask 255.255.255.0 nomodify notrap  #允许该网段内的主机可以进行校时

设置开机自启

systemctl enable ntpd
systemctl start ntpd

客户端

ntpdate 172.16.1.88  #同步时间的服务器、平零-; 排查y8974qr31qa`125][-puj3e568很土

 

时间同步服务部署

原文:https://www.cnblogs.com/Mercury-linux/p/12359584.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!