mirror of
https://github.com/hwdsl2/openvpn-install.git
synced 2026-01-11 19:06:18 +00:00
Update docs
This commit is contained in:
29
README-zh.md
29
README-zh.md
@@ -72,6 +72,35 @@ https://gitlab.com/hwdsl2/openvpn-install/-/raw/master/openvpn-install.sh
|
||||
|
||||
如果无法下载,打开 [openvpn-install.sh](openvpn-install.sh),然后点击右边的 `Raw` 按钮。按快捷键 `Ctrl/Cmd+A` 全选,`Ctrl/Cmd+C` 复制,然后粘贴到你喜欢的编辑器。
|
||||
</details>
|
||||
<details>
|
||||
<summary>
|
||||
高级:使用自定义选项自动安装。
|
||||
</summary>
|
||||
|
||||
高级用户可以使用自定义选项自动安装 OpenVPN,方法是提供一个 Bash "here document" 作为安装脚本的输入。此方法还可用于在安装后提供输入以管理用户。
|
||||
|
||||
首先,使用自定义选项以交互方式安装 OpenVPN,并写下你对脚本的所有输入值。
|
||||
|
||||
```bash
|
||||
sudo bash openvpn.sh
|
||||
```
|
||||
|
||||
如需删除 OpenVPN,请再次运行脚本并选择适当的选项。
|
||||
|
||||
然后使用你的输入值创建自定义安装命令。例如:
|
||||
|
||||
```bash
|
||||
sudo bash openvpn.sh <<ANSWERS
|
||||
1
|
||||
1194
|
||||
2
|
||||
client
|
||||
y
|
||||
ANSWERS
|
||||
```
|
||||
|
||||
**注:** 安装选项可能会在脚本的未来版本中发生变化。
|
||||
</details>
|
||||
|
||||
\* 一个云服务器,虚拟专用服务器 (VPS) 或者专用服务器。
|
||||
|
||||
|
||||
Reference in New Issue
Block a user