CentOS 系统时间设置

1.查看系统时区与时间

#date -R

2.手工进行修改系统时间

#date -s 20221205


#date -s 23:40:00

3.手工进行修改系统时区

#cp /usr/share/zoneinfo/Asia/Shanghai   /etc/localtime

4.同步阿里云的时钟源

#ntpdate   ntp1.aliyun.com

5.将当前时间和日期写入BIOS,避免重启后失效

#hwclock -w