1、修改日期和时间
date -s " 18:30:50" //设置日期时间hwclock --systohc//将系统时间同步到硬件
2、同步网络时间
yum install -y ntpdate //安装ntpdatentpdate us. //同步时间hwclock --systohc//将系统时间同步到硬件
3、将时间格式修改为24小时制
cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtimentpdate us. //同步时间hwclock --systohc//将系统时间同步到硬件