您的位置:首页 > 运维架构 > Linux

linux用ntpdate同步时间

2017-08-14 15:47 519 查看

linux用ntpdate同步时间

1.先用命令 date 查看系统时间

2.进入网址http://www.ntp.org.cn/选择一个IP

3.执行命令 ntpdate IP  或者 ntpdate -u IP

如果你的linux系统根本没有ntpdate这个命令

yum install ntp

或者用date设置当前系统时间为2017年2月20日12点57分0秒

date  -s  "2017-2-20 12:57:00" 




内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  ntpdate time 更新时间