zoukankan      html  css  js  c++  java
  • linux时间同步ntp服务的安装与配置

    先搭建本地yum仓库

    yum list  #列出yum仓库中的所有软件包
    
    yum install ntp ntpdate  -y   #安装ntp服务,-y为确定安装
    
    vi /etc/ntp.conf   #进入ntp服务的配置文件
    server 时间同步对象IP地址 iburst
    

    在server0 ~3前加上#  注释掉服务,以便电脑识别到添加的server 时间同步对象IP地址

    :wq 保存并推出

    systemctl restart ntpd.service   #重启ntp服务
    

    输入命令  date 可以通过查看系统时间进行验证  

     

      

      

  • 相关阅读:
    ASP.NET 学习笔记(一)ASP.NET 概览
    JSP基础
    算法
    TestNG基础教程
    TestNG基础教程
    TestNG基础教程
    Jira
    Jira
    Jira
    Jira
  • 原文地址:https://www.cnblogs.com/jw233/p/5974587.html
Copyright © 2011-2022 走看看