天天看点

linux用ntpdate同步时间linux用ntpdate同步时间

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" 

  

继续阅读