颇为阿娇978 发表于 2018-5-10 10:52:54

Redhat7 搭建ntp(时间同步)

  Redhat7 搭建ntp(时间同步)
  

  安装:
  # yum install ntp
  

  启动:
  # systemctl start ntpd
  # systemctl enable ntpd
  

  查看同步:
  # ntpq -p
  

  开放防火墙:
  # firewall-cmd --permanent --add-service=ntp
  

  此时ntp Server已搭建完成
  

  

  客户端从ntp Server同步
  

  安装:
  # yum install ntp
  

  修改配置:
  # vi /etc/ntp.conf
  

  server10.0.0.2(默认的server列全删掉)
  :wq
  

  启动:
  # systemctl start ntpd
  # systemctl enable ntpd
  

  手动同步:
  # /usr/bin/rdate -s 10.0.0.2
  

  查看:
  # ntpq -p
  

  

  

  
页: [1]
查看完整版本: Redhat7 搭建ntp(时间同步)