zoukankan      html  css  js  c++  java
  • Centos7安装NTP服务器

    一、准备服务器,三台服务器  

    192.168.207.133(server端)

    192.168.207.137(client端)

    192.168.207.132(client端)

    二、安装server端

    2.1 yum安装

    yum install ntp ntpdate

    2.2 编辑配置文件

    vim /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
    
    server 192.168.207.133
    fudge 127.127.1.0 stratum 11

    2.3. 启动服务

    systemctl start ntpd
    
    systemctl enable ntpd.service #设置开机启动服务 

    三、安装客户端

    3.1  yum安装

    yum install ntp ntpdate

    3.2 同步时间

    ntpdate -d -b 192.168.207.133

    3.3 编辑配置文件

    和server端相同

    3.4 启动服务

    systemctl start ntpd
    
    systemctl enable ntpd.service #设置开机启动服务 
  • 相关阅读:
    动态规划_树形DP
    动态规划_区间DP
    Git
    动态规划_状态机与状态压缩DP
    Mybatis
    3.UIViewController详解
    Flutter boost实现原理简介
    FFmpeg笔记(四)
    Xcode-FFmpeg环境搭建
    FFmpeg(一)
  • 原文地址:https://www.cnblogs.com/aqicheng/p/12881504.html
Copyright © 2011-2022 走看看