设置系统时间操作步骤

1.timedatectl set-timezone Asia/Shanghai

2.#将当前的 UTC 时间写入硬件时钟

timedatectl set-local-rtc 0

3.#重启依赖于系统时间的服务

systemctl restart rsyslog

systemctl restart crond

 

posted on 2023-02-21 11:15  MhaiM  阅读(23)  评论(0编辑  收藏  举报