Zhang Jiuan’ Notes

调整linode(linux)服务器的时区

1.ln -s /usr/share/zoneinfo/Asia/Shanghai /etc/localtime

2. 修改/etc/default/rcS 文件,将 UTC=yes 改为 UTC=no 即可。

3. 命令行同步时间:ntpdate cn.pool.ntp.org

cn.pool.ntp.org是位于中国的公共NTP,用来同步你的时间(如果你的时间与的时间截不同的话,可能无法同步时间哟,甚至连sudo reboot这样的指令也无法执行)。

多谢

张久安

If you enjoyed this post, make sure you subscribe to my RSS feed!

No Comments, Comment or Ping

Reply to “调整linode(linux)服务器的时区”

You must be logged in to post a comment.

返回顶部