1.yum 安装 NTP服务器 [root@master ~]# yum -y install ntp 2.启动ntpd服务 [root@master ~]# systemctl start ntpd 3.设置开机自启 [root@master ~]# systemctl enable ntpd 4.设置server端 [root@master ~]# vi /etc/ntp.conf # For more information about this file, see the man pag
首先还是推荐大家使用Internet时间来同步自己计算机的时间,这样做主要是方便,就是设置一个ntp服务器,我推荐下面的三个ntp服务器地址. time.asia.apple.com //亲测有效 asia.pool.ntp.org //亲测有效 ntp.nict.jp //亲测有效 如果上面的方法不可用,或者只有局域网,无法连接到互联网,可使用下面的方法: cmd命令 net time的使用,可输入 net time /help 查看帮助,不同的计算机可能会有一些区别. C:\>net tim