Xen中时区/时间调整 (NTP)
--------------- 时区调整 -------------------------------
1. 查看当前时间
# date -R
Sun, 22 Jun 2014 11:40:24 +0800
2. 发现是时区问题,于是运行
cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
再次查看,时间对了。
3. 重启生效。
--------------- 设置时间 -------------------------------
date -s 05/30/2012
date -s 16:35:30
--------------- 设置xen主服务的时间 -------------------------------
/etc/init.d/ntp.conf
#增加 这样你就可以随时更新时间。
restrict ntp.sjtu.edu.cn
# 指定NTP服务器
server ntp.sjtu.edu.cn
server s1a.time.edu.cn
server s1b.time.edu.cn
页:
[1]