部分Xen虚拟的linux VPS时间异常的解决方法

经用户反馈,部分VPS存在时间同步异常或时间无法同步的情况,对此我们给出以下解决方法,请根据步骤操作。

1.通过SSH登陆到VPS.

2.vim /etc/sysctl.conf

3.在文件底部加入

xen.independent_wallclock=1

4.执行 sysctl -p

5.执行以下命令:

rm -rf /etc/localtime
ln -s /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
yum install -y ntp
ntpdate us.pool.ntp.org
date

(0)

相关推荐