Updated 在 Linode 上快速搭建 Shadowsocks (markdown)
parent
f7ebd3ab57
commit
27c331d889
1 changed files with 40 additions and 45 deletions
|
@ -1,45 +1,40 @@
|
||||||
也适用于除了 Linode 之外的所有 Xen 的 Debian 7 VPS。如果你已经建了一个 Debian 7.0+ 节点,在节点上执行下列命令并跳到步骤 6。
|
也适用于除了 Linode 之外的所有 Xen 的 Debian 7 VPS。如果你已经建了一个 Debian 7.0+ 节点,在节点上执行下列命令并跳到步骤 6。
|
||||||
```
|
```
|
||||||
apt-get install curl
|
apt-get install curl
|
||||||
curl 'https://raw.githubusercontent.com/shadowsocks/stackscript/master/stackscript.sh?v=4' > /tmp/ss.sh && bash /tmp/ss.sh && rm /tmp/ss.sh
|
curl 'https://raw.githubusercontent.com/shadowsocks/stackscript/master/stackscript.sh?v=4' > /tmp/ss.sh && bash /tmp/ss.sh && rm /tmp/ss.sh
|
||||||
```
|
```
|
||||||
|
|
||||||
如果你没有创建节点:
|
如果你没有创建节点:
|
||||||
|
|
||||||
1. 创建一个节点,在部署界面选择 `Deploying using StackScripts`
|
1. 创建一个节点,在部署界面选择 `Deploying using StackScripts`
|
||||||
* 
|
* 
|
||||||
2. 搜索一个作者是 clowwindy 的 Shadowsocks StackScript,点它:
|
2. 搜索一个作者是 clowwindy 的 Shadowsocks StackScript,点它:
|
||||||
* 
|
* 
|
||||||
3. 设置 root 密码,点 rebuild
|
3. 设置 root 密码,点 rebuild
|
||||||
* 
|
* 
|
||||||
4. 到节点界面点开机
|
4. 到节点界面点开机
|
||||||
* 
|
* 
|
||||||
5. 等 VPS 启动
|
5. 等 VPS 启动
|
||||||
6. 登录服务器,检查是否一切正常。
|
6. 登录服务器,检查是否一切正常。
|
||||||
|
|
||||||
```
|
```
|
||||||
# supervisorctl status
|
# supervisorctl status
|
||||||
shadowsocks RUNNING pid 6929, uptime 0:01:25
|
shadowsocks RUNNING pid 6929, uptime 0:01:25
|
||||||
# supervisorctl tail shadowsocks stderr
|
# supervisorctl tail shadowsocks stderr
|
||||||
2014-06-16 10:28:00 INFO starting server at 0.0.0.0:4762
|
2014-06-16 10:28:00 INFO starting server at 0.0.0.0:4762
|
||||||
```
|
```
|
||||||
|
|
||||||
获取随机生成的密码和端口号:
|
获取随机生成的密码和端口号:
|
||||||
```
|
```
|
||||||
# cat /etc/shadowsocks.json
|
# cat /etc/shadowsocks.json
|
||||||
{
|
{
|
||||||
"server":"0.0.0.0",
|
"server":"0.0.0.0",
|
||||||
"server_port":4762,
|
"server_port":4762,
|
||||||
"local_port":1080,
|
"local_port":1080,
|
||||||
"password":"8d779a1ee2db776db8e20adffaa12d0c",
|
"password":"8d779a1ee2db776db8e20adffaa12d0c",
|
||||||
"timeout":300,
|
"timeout":300,
|
||||||
"method":"aes-256-cfb"
|
"method":"aes-256-cfb"
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
注:使用本安装脚本会自动[优化系统参数](https://github.com/clowwindy/shadowsocks/wiki/Optimizing-Shadowsocks)。不过其中 hybla 算法的优化需要[更换内核](https://library.linode.com/custom-instances/pv-grub-howto#sph_debian-7-wheezy)后才能生效。
|
注:使用本安装脚本会自动[优化系统参数](https://github.com/clowwindy/shadowsocks/wiki/Optimizing-Shadowsocks)。不过其中 hybla 算法的优化需要[更换内核](https://library.linode.com/custom-instances/pv-grub-howto#sph_debian-7-wheezy)后才能生效。
|
||||||
|
|
||||||
如果注册 [Linode] 可点[本邀请链接],Linode 将会返还 credit 到公共服务器上。
|
|
||||||
|
|
||||||
[Linode]: https://www.linode.com/?r=e7932c8b03f9abc8aab71663b90b689a676402d1
|
|
||||||
[本邀请链接]: https://www.linode.com/?r=e7932c8b03f9abc8aab71663b90b689a676402d1
|
|
Loading…
Add table
Add a link
Reference in a new issue