1、设置时区(同步时间前先设置)
timedatectl set-timezone Asia/Shanghai
2、安装组件
yum -y install ntp
systemctl enable ntpd
systemctl start ntpd
3、同步时间
ntpdate -u cn.pool.ntp.org
1、设置时区(同步时间前先设置)
timedatectl set-timezone Asia/Shanghai
2、安装组件
yum -y install ntp
systemctl enable ntpd
systemctl start ntpd
3、同步时间
ntpdate -u cn.pool.ntp.org
本文标题:Centos7设置系统时间
本文链接:https://www.haomeiwen.com/subject/eztgvctx.html
网友评论