Linux系统时间修改

1,查看

[hzjin@hadoop102 ~]$ date
2022年 03月 10日 星期四 15:16:11 CST

2,修改

[hzjin@hadoop102 ~]$ date -s 03/11/22
2022年 03月 11日 星期五 00:00:00 CST

3,同步Internet时间

3.1安装ntp

yum install -y ntpdate
3.2同步时间

ntpdate pool.ntp.org

3.3系统时间写入到硬件防止当重启服务器时覆盖

hwclock -w

tip:查看硬件时间命令:hwclock

posted @ 2022-03-10 15:23  hzjin  阅读(45)  评论(0)    收藏  举报