Commit 865f602fd9cdd32181b868bac5db209d90d8da7b

Authored by 徐烜
1 parent c2cc7be8

Updates 01_basic/ntp.md

Auto commit by GitBook Editor
Showing 1 changed file with 7 additions and 1 deletions
01_basic/ntp.md
... ... @@ -2,7 +2,7 @@
2 2  
3 3 ### Centos7上使用chrony组件,同步时间,目前只是设置了时间服务器,以后别的机器需要同步时间服务器
4 4 ```
5   -//---------- linux时间同步(chrony服务端口) ----------//
  5 +//---------- linux时间同步(chrony服务) ----------//
6 6 // 查看是否安装了chrony
7 7 rpm -qa|grep chrony
8 8 // 没有找到,yum安装
... ... @@ -25,6 +25,12 @@ firewall-cmd --add-service=my_chrony --permanent
25 25 firewall-cmd --reload
26 26 // 与timedatectl关联,如下图:
27 27 timedatectl set-ntp 1
  28 +
  29 +//---------- linux时间同步(chrony客户端) ----------//
  30 +// 同上安装chrony
  31 +// 防火墙开启ntp服务
  32 +firewall-cmd --add-service=ntp --permanent
  33 +
28 34 ```
29 35  
30 36  
... ...