Pages

Saturday, 19 December 2015

修改linux server的时区

cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
update 20140621
在debian系统下
rm -rf /etc/localtime
cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
ntpdate time.windows.com
hwclock --systohc
参考
http://os.chinaunix.net/a2009/1128/998/000000998931.shtml
UTC、CST、GMT等时区详解
http://blog.csdn.net/wb96a1007/article/details/7945021