![]() |
新闻中心
当前位置:网站首页 > 新闻中心
云服务器怎么设置时间
云服务器怎么设置时间?我们在使用云服务器的时候,可能会遇到时间不正确的情况,这时候就需要设置修改。这里我们以linux服务器为例,介绍云服务器怎么设置时间。
1、使用cp命令将/etc/localtime覆盖掉。
cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtimecp: overwrite ‘/etc/localtime’? y
查看:date
Fri May 10 15:06:17 CST 2019
2、使用软件进行时间同步
yum install ntpdate -yntpdate -u 210.72.145.44 # 网络时间同步命令
210.72.145.44:中国国家授时中心的官方服务器。
教程来源:PHP中文网,原文链接 http://www.php.cn/linux-434560.html
飞帆软件是知名云计算服务商,提供高效稳定的云服务器产品,今年飞帆软件双十一活动已经火热开启,爆款云主机1折抢购,速来了解 http://www.zbff.com?/cloudhost/
上一篇 购买云服务器一年多少钱 下一篇 云服务器怎么获取root
|