centos7.5 时间设置

# ----- 设置时间同步+时区(上海) -----

rpm -qa ntp || yum -y install ntp
systemctl enable ntpd
timedatectl set-ntp true

timedatectl set-timezone Asia/Shanghai

 

posted on 2019-01-08 16:41  天涯尘星  阅读(562)  评论(0编辑  收藏  举报

导航