1.修改时间
[root@db01 ~]# date -s 2021-10-12
Tue Oct 12 00:00:00 CST 2021
[root@db01 ~]# date -s 20:34:00
Tue Oct 12 20:34:00 CST 2021
[root@db01 ~]# date
Tue Oct 12 20:34:16 CST 2021
2.回写bios时间
[root@db01 ~]# hwclock -w
3.写入crontab,十分钟一次回写bios时间。
[root@db01 ~]# crontab -l
*/10 * * * * hwclock -w
版权声明:本文为博主原创文章,未经博主允许不得转载。
LINUX