1
0
mirror of synced 2024-11-29 16:16:03 +03:00

Update README.md

This commit is contained in:
hwdsl2 2016-04-20 17:35:25 -05:00
parent af23dd290f
commit 384a5c886e
2 changed files with 6 additions and 6 deletions

View File

@ -50,8 +50,8 @@ OpenVZ VPS 用户请使用其它的 VPN 软件,比如 <a href="https://github.
```bash ```bash
wget https://github.com/hwdsl2/setup-ipsec-vpn/raw/master/vpnsetup.sh -O vpnsetup.sh wget https://github.com/hwdsl2/setup-ipsec-vpn/raw/master/vpnsetup.sh -O vpnsetup.sh
nano -w vpnsetup.sh nano -w vpnsetup.sh
[编辑脚本并替换以下参数值为你自己的 IPSEC_PSK, VPN_USER 和 VPN_PASSWORD] [编辑并替换这些参数为你自己的值 IPSEC_PSK, VPN_USER 和 VPN_PASSWORD]
/bin/sh vpnsetup.sh sudo sh vpnsetup.sh
``` ```
### 用于 CentOS 和 RHEL: ### 用于 CentOS 和 RHEL:
@ -62,8 +62,8 @@ nano -w vpnsetup.sh
yum -y install wget nano yum -y install wget nano
wget https://github.com/hwdsl2/setup-ipsec-vpn/raw/master/vpnsetup_centos.sh -O vpnsetup_centos.sh wget https://github.com/hwdsl2/setup-ipsec-vpn/raw/master/vpnsetup_centos.sh -O vpnsetup_centos.sh
nano -w vpnsetup_centos.sh nano -w vpnsetup_centos.sh
[编辑脚本并替换以下参数值为你自己的 IPSEC_PSK, VPN_USER 和 VPN_PASSWORD] [编辑并替换这些参数为你自己的值 IPSEC_PSK, VPN_USER 和 VPN_PASSWORD]
/bin/sh vpnsetup_centos.sh sudo sh vpnsetup_centos.sh
``` ```
如果无法通过 `wget` 下载,你也可以打开 <a href="vpnsetup.sh" target="_blank">vpnsetup.sh</a> (或者 <a href="vpnsetup_centos.sh" target="_blank">vpnsetup_centos.sh</a>),然后点击右方的 **`Raw`** 按钮。按快捷键 `Ctrl-A` 全选, `Ctrl-C` 复制,然后粘贴到你喜欢的编辑器。 如果无法通过 `wget` 下载,你也可以打开 <a href="vpnsetup.sh" target="_blank">vpnsetup.sh</a> (或者 <a href="vpnsetup_centos.sh" target="_blank">vpnsetup_centos.sh</a>),然后点击右方的 **`Raw`** 按钮。按快捷键 `Ctrl-A` 全选, `Ctrl-C` 复制,然后粘贴到你喜欢的编辑器。

View File

@ -56,7 +56,7 @@ First, update your system with `apt-get update && apt-get dist-upgrade` and rebo
wget https://github.com/hwdsl2/setup-ipsec-vpn/raw/master/vpnsetup.sh -O vpnsetup.sh wget https://github.com/hwdsl2/setup-ipsec-vpn/raw/master/vpnsetup.sh -O vpnsetup.sh
nano -w vpnsetup.sh nano -w vpnsetup.sh
[Edit and replace IPSEC_PSK, VPN_USER and VPN_PASSWORD with your own values] [Edit and replace IPSEC_PSK, VPN_USER and VPN_PASSWORD with your own values]
/bin/sh vpnsetup.sh sudo sh vpnsetup.sh
``` ```
### For CentOS and RHEL: ### For CentOS and RHEL:
@ -68,7 +68,7 @@ yum -y install wget nano
wget https://github.com/hwdsl2/setup-ipsec-vpn/raw/master/vpnsetup_centos.sh -O vpnsetup_centos.sh wget https://github.com/hwdsl2/setup-ipsec-vpn/raw/master/vpnsetup_centos.sh -O vpnsetup_centos.sh
nano -w vpnsetup_centos.sh nano -w vpnsetup_centos.sh
[Edit and replace IPSEC_PSK, VPN_USER and VPN_PASSWORD with your own values] [Edit and replace IPSEC_PSK, VPN_USER and VPN_PASSWORD with your own values]
/bin/sh vpnsetup_centos.sh sudo sh vpnsetup_centos.sh
``` ```
If unable to download via `wget`, you may alternatively open <a href="vpnsetup.sh" target="_blank">vpnsetup.sh</a> (or <a href="vpnsetup_centos.sh" target="_blank">vpnsetup_centos.sh</a>) and click the **`Raw`** button. Press `Ctrl-A` to select all, `Ctrl-C` to copy, then paste into your favorite editor. If unable to download via `wget`, you may alternatively open <a href="vpnsetup.sh" target="_blank">vpnsetup.sh</a> (or <a href="vpnsetup_centos.sh" target="_blank">vpnsetup_centos.sh</a>) and click the **`Raw`** button. Press `Ctrl-A` to select all, `Ctrl-C` to copy, then paste into your favorite editor.