更新文档

This commit is contained in:
CallMeR
2024-01-01 13:49:38 +08:00
parent 52f3be600b
commit 7097fb5d73
+32 -4
View File
@@ -249,9 +249,6 @@ $ sudo timedatectl set-timezone Asia/Shanghai
## 检查系统时间 ## 检查系统时间
$ date -R $ date -R
#### 系统时间示例输出
Mon, 26 Jun 2023 16:16:16 +0800
``` ```
Debian 云镜像默认使用 `systemd-timesyncd.service` 同步时间,且需要调整为使用国内 NTP 服务器。 Debian 云镜像默认使用 `systemd-timesyncd.service` 同步时间,且需要调整为使用国内 NTP 服务器。
@@ -459,6 +456,16 @@ $ sudo systemctl restart systemd-resolved.service
### 1.10.配置 Dnsmasq ### 1.10.配置 Dnsmasq
检查 `dnsmasq.service` 服务状态,确保该服务开机自启。
```bash
## 检查 dnsmasq.service
$ sudo systemctl status dnsmasq.service
## 设置 dnsmasq.service 开机自启
$ sudo systemctl enable dnsmasq.service
```
`Dnsmasq` 的主配置文件一般位于 `/etc` 目录下,修改配置文件之前,使用以下命令将其备份。 `Dnsmasq` 的主配置文件一般位于 `/etc` 目录下,修改配置文件之前,使用以下命令将其备份。
```bash ```bash
@@ -541,4 +548,25 @@ server=fdac::1
```bash ```bash
## 重启 dnsmasq.service ## 重启 dnsmasq.service
$ sudo systemctl restart dnsmasq.service $ sudo systemctl restart dnsmasq.service
``` ```
### 1.11.配置 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
```