美文网首页Linux学习之路Linux学习|Gentoo/Arch/FreeBSD
ubuntu16.04.3 ntp服务无法正常启动的修复

ubuntu16.04.3 ntp服务无法正常启动的修复

作者: FilesFan | 来源:发表于2019-10-16 20:36 被阅读0次

在ubuntu16的节点执行

  1. rm -f /etc/network/if-up.d/ntpdate
  2. mkdir -p /etc/systemd/system/ntp.service.d/
  3. 在该目录添加文件 restart.conf 内容为
[Service]
Type=forking
PIDFile=/var/run/ntpd.pid
RemainAfterExit=no
Restart=always
RestartSec=1s
  1. 添加完成后执行,加载配置
    systemctl daemon-reload
  2. 手动重启下ntp
    service ntp restart

相关文章

网友评论

    本文标题:ubuntu16.04.3 ntp服务无法正常启动的修复

    本文链接:https://www.haomeiwen.com/subject/mefpmctx.html