Vps时间同步

不知道为啥最近HK的一台vps总是出现时间不同步的问题,貌似都出现在lum面板更新后.
真是苦恼,记录一个时间同步的命令,省得自己每次都手忙脚乱:

echo "xen.independent_wallclock=1">>/etc/sysctl.conf
sysctl -p
ntpdate us.pool.ntp.org
rm -rf /etc/localtime
ln -s /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
yum install -y ntp
ntpdate us.pool.ntp.org
date
Share

小 虾

哦也,我是小虾

You may also like...

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.

anti fatigue mats