1、timedatectl查看时间各种状态:
[root@localhost logs]# timedatectl
      Local time: Wed 2019-03-13 15:15:33 CST
  Universal time: Wed 2019-03-13 07:15:33 UTC
        RTC time: Mon 2019-03-11 07:14:45
       Time zone: Asia/Shanghai (CST, +0800)
     NTP enabled: yes
NTP synchronized: no
 RTC in local TZ: no
      DST active: n/a
[root@localhost logs]#
2、timedatectl list-timezones: 列出所有时区
[root@localhost logs]# timedatectl list-timezones
3、timedatectl set-local-rtc 1 将硬件时钟调整为与本地时钟一致, 0 为设置为 UTC 时间
4、timedatectl set-timezone Asia/Shanghai 设置系统时区为上海
[root@localhost logs]# timedatectl set-timezone Asia/Shanghai
[root@localhost logs]# timedatectl
      Local time: Wed 2019-03-13 15:17:34 CST
  Universal time: Wed 2019-03-13 07:17:34 UTC
        RTC time: Mon 2019-03-11 07:16:45
       Time zone: Asia/Shanghai (CST, +0800)
     NTP enabled: yes
NTP synchronized: no
 RTC in local TZ: no
      DST active: n/a
文章的脚注信息由WordPress的wp-posturl插件自动生成

                
微信扫一扫,打赏作者吧~![[已解决]nc命令报错 close: Bad file descriptor](http://www.jyguagua.com/wp-content/themes/begin/timthumb.php?src=http://www.jyguagua.com/wp-content/uploads/2022/03/Snipaste_2022-03-18_20-16-48.png&w=280&h=210&zc=1)
![[已解决]SecureCRT/SSH 连接Linux缓慢](http://www.jyguagua.com/wp-content/themes/begin/timthumb.php?src=http://www.jyguagua.com/wp-content/uploads/2020/07/ssh_slow.jpg&w=280&h=210&zc=1)
![[转载]Linux的tickless设置](http://www.jyguagua.com/wp-content/themes/begin/timthumb.php?src=http://www.litrin.net/wp-content/uploads/2018/11/kernel_menuconfig_tickless-1.png&w=280&h=210&zc=1)
![[整理]鲲鹏性能优化十板斧(五)——应用程序性能调优<TaiShan特战队出品>](http://www.jyguagua.com/wp-content/themes/begin/timthumb.php?src=http://www.jyguagua.com/wp-content/uploads/2020/03/1-4.jpg&w=280&h=210&zc=1)
2019年03月16日 上午 9:40 沙发
楼主你好,请问你这个网站用的是什么模板做的?能告诉我吗?
2019年03月27日 下午 10:59 1层
@hihi begin主题,知更鸟开发的,自行百度。