服务器 
首页 > 服务器 > 浏览文章

如何修改CentOS服务器时间为北京时间

(编辑:jimmy 日期: 2024/9/23 浏览:3 次 )

1.购买了VPS,CentOS系统,发现服务器时间与北京时间往往不一致,存在时差。

[clive@server workspace]$ date
2018年 05月 30日 星期三 02:02:47 UTC

1.可以执行tzselect命令按提示更换时区,依次选择5-Asia,9-China,1-Beijing Time。

Please identify a location so that time zone rules can be set correctly.
Please select a continent or ocean.
 1) Africa
 2) Americas
 3) Antarctica
 4) Arctic Ocean
 5) Asia
 6) Atlantic Ocean
 7) Australia
 8) Europe
 9) Indian Ocean
10) Pacific Ocean
11) none - I want to specify the time zone using the Posix TZ format.
#"color: #ff0000">总结

以上所述是小编给大家介绍的修改CentOS服务器时间为北京时间,希望对大家有所帮助,如果大家有任何疑问欢迎给我留言,小编会及时回复大家的!

上一篇:Linux基础命令之mktemp详解
下一篇:Ubuntu18.04安装Python虚拟环境