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 #设置开机启动服务 
  • 相关阅读:
    1、jquery_属性和选择器
    sqlserver2012——SqlCommand创建对象的三种方法
    数据库视频
    插件源码
    打包部署
    SpringCloud-Demo
    SpringCloud
    分布式管理
    security-oauth2
    ES的使用
  • 原文地址:https://www.cnblogs.com/aqicheng/p/12881504.html
Copyright © 2011-2022 走看看