Skip to content

Commit e3b6caa

Browse files
committed
ntp.md: Fix markdownlint
1 parent 2373167 commit e3b6caa

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • docs/ops/network-service

docs/ops/network-service/ntp.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,13 @@ chrony 也提供了 NTP 服务端的功能。在如今公用 NTP 服务器池资
4848

4949
启用服务端功能,只需要编辑 `/etc/chrony.conf` 允许子网访问:
5050

51-
```
51+
```shell
5252
allow 192.168/16
5353
```
5454

5555
可以在 DHCP 中下发 NTP 服务器配置,这样客户端不再需要额外的配置。这里以常见的 DHCP 服务端软件 dnsmasq 为例,编辑 `/etc/dnsmasq.conf`
5656

57-
```
57+
```ini
5858
dhcp-option=option:ntp-server,192.168.0.1
5959
```
6060

0 commit comments

Comments
 (0)