Commit c702e7961f3ba0532e59480a88cb243732568658
1 parent
28e46066
Updates 01_basic/ntp.md
Auto commit by GitBook Editor
Showing
1 changed file
with
6 additions
and
1 deletions
01_basic/ntp.md
| ... | ... | @@ -18,7 +18,12 @@ chronyc sourcestats -v |
| 18 | 18 | chronyc activity |
| 19 | 19 | // 手动同步时间 |
| 20 | 20 | chronyc -a makestep |
| 21 | -// 与timedatectl关联(TODO:里面NTP syncronized总是no,再议) | |
| 21 | +// 设置防火墙规则 | |
| 22 | +firewall-cmd --add-service=ntp --permanent | |
| 23 | +在/etc/firewalld/services下添加my_chrony.xml文件,如下图, | |
| 24 | +firewall-cmd --add-service=my_chrony --permanent | |
| 25 | +firewall-cmd --reload | |
| 26 | +// 与timedatectl关联,如下图: | |
| 22 | 27 | timedatectl set-ntp 1 |
| 23 | 28 | ``` |
| 24 | 29 | ... | ... |