Kylin Server V10下NTP服务器配置

一、NTP服务器配置

1.安装ntp软件包

[root@localhost ~]# dnf -y install ntp ntpdate

2.编辑ntp服务配置文件

[root@localhost ~]# vi /etc/ntp.conf

注释掉下面行

#server 0.centos.pool.ntp.org iburst

#server 1.centos.pool.ntp.org iburst

#server 2.centos.pool.ntp.org iburst

#server 3.centos.pool.ntp.org iburst

添加

restrict 192.168.63.0 mask 255.255.255.0 nomodify notrap

server 127.127.1.0 iburst

3.启动ntpd服务

[root@localhost ~]# systemctl start ntpd

4.查看ntpd服务状态

[root@localhost ~]# systemctl status ntpd

ntpd.service - Network Time Service

   Loaded: loaded (/usr/lib/systemd/system/ntpd.service; disabled; vendor preset: disabled)

   Active: active (running) since 2019-05-14 13:34:37 CST; 1min 31s ago

  Process: 1802 ExecStart=/usr/sbin/ntpd -u ntp:ntp $OPTIONS (code=exited, status=0/SUCCESS)

 Main PID: 1803 (ntpd)

   CGroup: /system.slice/ntpd.service

           └─1803 /usr/sbin/ntpd -u ntp:ntp -g

5

  • 15
    点赞
  • 18
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

Mindfulness code

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值