Think before you speak, read before you think.

修改vps为北京时间及语系为zh_CN

以下操作在centos6.2下执行

修改语系为zh_CN,改完之后需要重启

vim /etc/sysconfig/i18n

修改vps为北京时间

rm -rf /etc/localtime
ln -s /usr/share/zoneinfo/Asia/Shanghai /etc/localtime

更新时间

ntpdate 0.cn.pool.ntp.org

将系统时间写入到硬件时间中

/sbin/hwclock -w

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *