最近几个朋友买了vps后让我帮忙配置shadowsocks ;于是我写了一个小工具在CentOS上完成shadowsocks的自动配置 .
购买VPS, 这个根据自己的需要选购合适的VPS厂商购买即可, 操作系统选择CentOS 。
以root身份登陆系统 。
执行如下命令:
1
curl https://www.yzhu.name/tools/install_shadowsocks.sh -s --output install_shadowsocks.sh && chmod +x install_shadowsocks.sh
1
./install_shadowsocks.sh
看到如下提示,可以输入端口号或者直接回车采用默认端口号:8388
1
input server port [8388]
看到如下提示,输入密码,默认密码是:123456 ;强烈建议此处输入密码。
1 | input server password [123456] |
至此如果没有出错,服务端自动配置已完成 。
至此整个配置结束。