首页  :: 新随笔  :: 管理

centos7 设置时区和时间

Posted on 2018-10-12 11:34  季枫  阅读(5609)  评论(0编辑  收藏  举报

1、设置时区(同步时间前先设置)

timedatectl set-timezone Asia/Shanghai

2、安装组件

yum -y install ntp

systemctl enable ntpd

systemctl start ntpd

3、同步时间

ntpdate -u cn.pool.ntp.org

  

智读 | 成都会领科技有限公司官网 | 智读App下载 | 每天听本书的博客 | |