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

番茄系统家园 · 2022-10-27 06:30:28

经用户反馈,部分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

免责声明: 凡标注转载/编译字样内容并非本站原创,转载目的在于传递更多信息,并不代表本网赞同其观点和对其真实性负责。如果你觉得本文好,欢迎推荐给朋友阅读;本文链接: https://m.nndssk.com/xtwt/157304EYGcej.html
猜你喜欢
最新应用
热门应用