,欢迎进入sunbet安卓下载!Sunbet 申博提供申博开户(sunbet开户)、SunbetAPP下载、Sunbet客户端下载、Sunbet代理合作等业务。
NTP服务器的搭建和时间同步
一、NTP服务器
1.安装NTP服务
yum install -y ntp
2.修改ntp的配置文件
[root@localhost ~]# grep -Ev "^#|^$" /etc/ntp.conf
driftfile /var/lib/ntp/drift
pidfile /var/run/ntpd.pid
logfile /var/log/ntp.log
restrict -4 default kod notrap nomodify
restrict -6 default kod notrap nomodify
restrict 127.0.0.1
restrict ::1
server ntp.aliyun.com iburst Minpoll 4 maxpoll 10
restrict ntp.aliyun.com nomodify notrap nopeer noquery
server 127.127.1.0
fudge 127.127.1.0 stratum 8
iNCludefile /etc/ntp/crypto/pw
keys /etc/ntp/keys
disable monitor
3.重启服务
systemctl start ntpd.service
systemctl enable ntpd.service
4.查看状态
[root@localhost ~]# ntpstat
synchronised to NTP server (203.107.6.88) at stratum 3
time correct to within 46 ms
polling server every 1024 s
[root@localhost ~]#
二、Linux客户端配置
1.安装ntp客户端,先手动同步
/usr/sbin/ntpdate -u 10.2.2.188
yum install -y ntpdate
2.写入定时计划
echo "0 5 * /usr/sbin/ntpdate -u 10.2.2.188" >> /var/spool/cron/root
echo "5 5 * /usr/sbin/hwclock -w" >> /var/spool/cron/root
三、window2012客户端配置(若有域环境直接修改与控制器即可)
1.打开powershell终端管理,输入gpedit.msc,打开策略管理器
2.计算机配置-->管理模板-->系统-->Windows时间服务-->时间提供程序,配置(windows客户端和启动客户端)
3.跟新策略
gpupdate /force
技术交流欢迎加入Q群:177428068
0
收藏
SunbetSunbet www.tggzfm.com展望2019年,将用完善的服务体系,创新的技术应用,雄厚的资金实力,贴心的服务品质,成为每位申博会员、代理的首选平台。夜里独自看,巴适
欧博开户欢迎进入欧博开户(Allbet Game):www.aLLbetgame.us,欧博官网是欧博集团的官方网站。欧博官网开放Allbet注册、Allbe代理、Allbet电脑客户端、Allbet手机版下载等业务。搜到了,以前看过