centos 时间日期设置

date  时间窗口

date -s '2015-02-02 10:10:00'  更改年月日小时分秒

date -s 10:00:02  只更改时间 不更改年月

clock -w 写入系统时间

hwclock  同步bios 时间

service ntpdate start  开启网络时间同步

systemctl start  ntpdate.service 开启网络时间同步 Red Hat 7

chkconfig --leves 2345 ntpdate on  开机启动

reboot 重启报错



or type Contril-D to contime:输入系统密码-根据报错修复


fsck -y /dev/mapper/VolGroup-lv_root


fsck -y /dev/sda1


reboot 重启是否正常

原文地址:https://www.cnblogs.com/mingzhang/p/7772315.html