Skip to content
This repository was archived by the owner on Jul 3, 2023. It is now read-only.

Commit 920d849

Browse files
committed
增加时间和时区配置
1 parent 6537950 commit 920d849

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

centos/initial.md

+16
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,19 @@ yum install -y tmux vim dstat lsof htop tree jq rsync
2222

2323
- [Docker](../docker)
2424
- [Docker Compose](../docker-compose)
25+
26+
## 配置
27+
28+
时区
29+
30+
```
31+
ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
32+
```
33+
34+
时间自动更新:
35+
36+
```
37+
yum install ntp -y
38+
systemctl enable ntpd
39+
systemctl start ntpd
40+
```

0 commit comments

Comments
 (0)