卡饭网 > centos > 正文

CentOS 7下配置ntp服务的方法

来源:本站整理 作者:梦在深巷 时间:2017-05-08 22:25:32

  对于校园网/企业用户,如果您网内所有计算机都通过互联网同步时间,在速度和精度上都有一定的折扣,并且对互联网出口带宽也有一定的影响,对于这类用户,我们建议通过自己搭建ntp服务为内部用户提供时间同步服务。

  本文介绍的是在CentOS 7下配置ntp服务的方法教程,分享出来供大家参考学习,下面来看看详细的介绍吧。

  步骤如下:

  安装ntp

  yum -y install ntp

  同步时间

  ntpdate pool.ntp.org

  将ntp服务设为开机启动

  chkconfig ntpd on

  重启ntp服务

  service ntpd restart

  查看ntp服务状态

  service ntpd status

相关推荐