centos 时间日期设置

Posted mingzhang

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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 重启是否正常

以上是关于centos 时间日期设置的主要内容,如果未能解决你的问题,请参考以下文章

Centos7——9.实用指令(时间日期类)

证书风险怎么解决 centos

centos7之关于时间和日期以及时间同步的应用

Centos date 设置自定义时间

centos 6.8 同步系统当前时间

CentOS6修改时区日期时间