linux 时间修改/同步

date命令

1.  date  查看当前时间,结果如下:Tue Mar 4 01:36:45 CST 2014
2. date -s "2008-08-08 12:00:00"  设置时间为2008年8月8号12点0分0秒,Fri Aug  8 12:00:00 CST 2008

ntpdate命令

  ntpdate asia.pool.ntp.org  同步网络时间

    : ntp常用服务器

    国家授时中心服务器IP地址:210.72.145.44

    NTP服务器(上海) :ntp.api.bz

  美国:time.nist.gov 

    复旦:ntp.fudan.edu.cn 

    微软公司授时主机(美国) :time.windows.com 

    台警大授时中心(台湾):asia.pool.ntp.org

 

posted @ 2020-05-07 16:43  xbuff  阅读(172)  评论(0)    收藏  举报