整理文档结构

This commit is contained in:
CallMeR
2025-01-06 17:11:27 +08:00
parent 0731dd1fde
commit 81c5c3456a
3 changed files with 92 additions and 84 deletions
+29 -25
View File
@@ -167,7 +167,32 @@ $ sudo apt install iperf iperf3 iftop lsof knot-dnsutils
$ sudo sync
```
### 1.4.调整内核参数
### 1.4.配置 ZSH
`Zsh` 是比 `Bash` 好用的 `Shell` 程序,使用 `oh-my-zsh` 进行配置。
```bash
## 返回 home 目录
$ cd
## 使用清华大学镜像站安装 oh-my-zsh
$ git clone https://mirrors.tuna.tsinghua.edu.cn/git/ohmyzsh.git
$ cd ohmyzsh/tools
$ REMOTE=https://mirrors.tuna.tsinghua.edu.cn/git/ohmyzsh.git sh install.sh
## 询问是否切换默认 shell,输入 Y
#### 示例输出
Time to change your default shell to zsh:
Do you want to change your default shell to zsh? [Y/n] y
## oh-my-zsh 安装后清理
$ cd && rm -rvf .bash_history .zsh_history .shell.pre-oh-my-zsh ohmyzsh
```
### 1.5.调整内核参数
由于该 Debian 虚拟机模板将用于克隆内网 DNS 服务器,因此需要调整内核参数来简单优化性能。
@@ -222,7 +247,7 @@ net.ipv6.conf.default.use_tempaddr = 0
$ sudo sysctl -f
```
### 1.5.调整系统时间
### 1.6.调整系统时间
默认情况下 Debian 云镜像的系统时间需要调整,执行以下命令将系统时区设置为中国时区。
@@ -292,7 +317,7 @@ Oct 07 18:06:29 DNS01 systemd-timesyncd[1706]: Contacted time server 203.107.6.8
Oct 07 18:06:29 DNS01 systemd-timesyncd[1706]: Initial clock synchronization to Mon 2024-10-07 18:06:29.499548 CST.
```
### 1.6.配置自动更新
### 1.7.配置自动更新
配置 Debian 云镜像的系统自动更新,与配置 PVE 系统自动更新方法基本一致,参阅 [03.PVE系统调整](./03.PVE系统调整.md) 。
@@ -397,7 +422,7 @@ $ sudo systemctl restart apt-daily-upgrade.timer
$ sudo systemctl status apt-daily-upgrade.timer
```
### 1.7.配置定时任务
### 1.8.配置定时任务
本步骤为可选操作,主要设置系统定时重启。
@@ -418,27 +443,6 @@ $ sudo crontab -e
```
### 1.8.配置 ZSH
`Zsh` 是比 `Bash` 好用的 `Shell` 程序,使用 `oh-my-zsh` 进行配置。
```bash
## 返回 home 目录
$ cd
## 使用 curl 安装 oh-my-zsh
$ sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
## 或者使用 wget 安装 oh-my-zsh
$ sh -c "$(wget https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh -O -)"
## 询问是否切换默认 shell,输入 Y
#### 示例输出
Time to change your default shell to zsh:
Do you want to change your default shell to zsh? [Y/n] y
```
### 1.9.清理系统
Debian 模板虚拟机已经配置完成,在将其转换为模板前需要对系统进行清理。