Centos 时间同步
2011-12-13 09:43
274 查看
新装的服务器可能设置了错误的,需要调整时区并调整时间.如下是使用NTP来从一个时间服务器同步
cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
ntpdate us.pool.ntp.org
很简单吧,解析一下,第一句是把当前时区调整为上海就是+8区,想改其他时区也可以去看看/usr/share/zoneinfo目录;
然后第二句是利用ntpdate同步标准时间.
没有安装ntpdate的可以yum一下:
yum install ntp
加入定时计划任务,每隔10分钟同步一下时钟
crontab -e
0-59/10 * * * * /usr/sbin/ntpdate us.pool.ntp.org | logger -t NTP
中国国家授时中心:
http://www.time.ac.cn/stime.asp
其他网络时间服务器地址如下:(也可以自己去搜索下)
time.nist.gov (美国)
ntp.fudan.edu.cn (复旦) )(国内用户推荐使用此服务器)
timekeeper.isi.edu
subitaneous.cpsc.ucalgary.ca
usno.pa-x.dec.com
time.twc.weather.com
swisstime.ethz.ch
ntp0.fau.de
ntp3.fau.de
time-a.nist.gov
time-b.nist.gov
time-nw.nist.gov
nist1-sj.glassey.com
210.72.145.44 也是一个不错的地址,速度很快!
cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
ntpdate us.pool.ntp.org
很简单吧,解析一下,第一句是把当前时区调整为上海就是+8区,想改其他时区也可以去看看/usr/share/zoneinfo目录;
然后第二句是利用ntpdate同步标准时间.
没有安装ntpdate的可以yum一下:
yum install ntp
加入定时计划任务,每隔10分钟同步一下时钟
crontab -e
0-59/10 * * * * /usr/sbin/ntpdate us.pool.ntp.org | logger -t NTP
中国国家授时中心:
http://www.time.ac.cn/stime.asp
其他网络时间服务器地址如下:(也可以自己去搜索下)
time.nist.gov (美国)
ntp.fudan.edu.cn (复旦) )(国内用户推荐使用此服务器)
timekeeper.isi.edu
subitaneous.cpsc.ucalgary.ca
usno.pa-x.dec.com
time.twc.weather.com
swisstime.ethz.ch
ntp0.fau.de
ntp3.fau.de
time-a.nist.gov
time-b.nist.gov
time-nw.nist.gov
nist1-sj.glassey.com
210.72.145.44 也是一个不错的地址,速度很快!
相关文章推荐
- CentOS设置时间同步
- CentOS命令修改系统时间同步
- CentOS/Linux 自动同步服务器时间
- Centos 时间同步
- 设置CentOS Linux系统时间自动同步
- 简单几步让CentOS系统时间同步
- CentOS 时间相关操作,修改时间,同步时间等
- 简单几步让CentOS系统时间同步
- centos 修改时区及NTP时间同步
- centos 同步时间和更改时区
- CentOS 7 时区调整与时间同步
- CentOS系统时间与网络同步
- centos 同步时间
- centos时间不同步的解决方法(centos时间同步)
- CentOS6.5 使用ntpd同步时间的方法
- centos 同步时间
- CentOS时间同步
- 琐碎-同步centos集群的时间
- CentOS 6 时间,时区,设置修改及时间同步 .
- centos 系统时间的同步