Shadowsocks Python版一键安装脚本 By 秋水逸冰
<p>没有服务器就先购买,系统推荐CentOS 6或7均可。</p><p><span style="font-size: 12pt;"><strong>服务器购买推荐:</strong><ahref="http://www.wangchao.info/1711.html"><strong>搬瓦工VPS(折后低至46.7美元/年,优惠码+支付宝购买中文教程)</strong></a></span></p>
<p><strong>代理服务端搭建需一定技术基础,技术小白推荐直接购买机场代理服务!</strong></p>
<p><strong>机场推荐:<ahref="https://go.wangchao.info/yhc.html?c=1148">萤火虫(CN2隧道高速网络,无需复杂配置,专属客户端一键连接!)</a></strong></p>
<p><b>本脚本适用环境:</b><br>
系统支持:CentOS 6/7,Debian,Ubuntu<br>
内存要求:≥128M<br>
日期:2018 年 02 月 07 日<br>
作者:秋水逸冰</p>
<p><b>配置说明:</b><br>
服务器端口:自己设定<span style="color: #999999;">(如不设定,默认从 9000-19999 之间随机生成)</span><br>
密码:自己设定<span style="color: #999999;">(如不设定,默认为 teddysun.com)</span><br>
加密方式:自己设定<span style="color: #999999;">(建议aes-256-cfb,如不设定,默认为 aes-256-gcm)</span><br>
备注:脚本默认创建单用户配置文件,如需配置多用户,安装完毕后参照下面的教程示例手动修改配置文件后重启脚本即可。</p>
<p><b>使用方法:</b><br>
使用root用户登录,执行以下命令:</p>
<pre class="prettyprint lang-bsh">wget --no-check-certificate -O shadowsocks.sh https://raw.githubusercontent.com/teddysun/shadowsocks_install/master/shadowsocks.sh
chmod +x shadowsocks.sh
./shadowsocks.sh 2>&1 | tee shadowsocks.log</pre>
<p><strong>CentOS 7系统如出现<span style="color: #ff0000;">-bash: wget: command not found</span>错误请先执行以下命令安装wget</strong></p>
<pre>yum -y install wget</pre>
<p><b>安装完成后,脚本提示如下:</b></p>
<pre class="prettyprint lang-bsh">Congratulations, Shadowsocks-python server install completed!
Your Server IP :your_server_ip
Your Server Port :your_server_port
Your Password :your_password
Your Encryption Method:your_encryption_method
Welcome to visit:https://teddysun.com/342.html
Enjoy it!</pre>
<p><b>卸载方法:</b><br>
使用root用户登录,运行以下命令:</p>
<pre class="prettyprint lang-bsh">./shadowsocks.sh uninstall</pre>
<p><strong>单用户配置文件示例:</strong><br>
配置文件路径:/etc/shadowsocks.json</p>
<pre class="prettyprint">{
"server":"0.0.0.0",
"server_port":your_server_port,
"local_address":"127.0.0.1",
"local_port":1080,
"password":"your_password",
"timeout":300,
"method":"your_encryption_method",
"fast_open": false
}</pre>
<p><strong>多用户多端口配置文件示例:</strong><br>
配置文件路径:/etc/shadowsocks.json</p>
<pre class="prettyprint">{
"server":"0.0.0.0",
"local_address":"127.0.0.1",
"local_port":1080,
"port_password":{
"8989":"password0",
"9001":"password1",
"9002":"password2",
"9003":"password3",
"9004":"password4"
},
"timeout":300,
"method":"your_encryption_method",
"fast_open": false
}</pre>
<p>your encryption method(加密方法)推荐:aes-256-cfb</p>
<p><strong>使用命令:</strong><br>
启动:/etc/init.d/shadowsocks start<br>
停止:/etc/init.d/shadowsocks stop<br>
重启:/etc/init.d/shadowsocks restart<br>
状态:/etc/init.d/shadowsocks status</p>
<p> </p>
<p><strong>配置完成后,继续配置本地客户端:</strong><ahref="http://www.wangchao.info/1316.html">http://www.wangchao.info/1316.html</a></p>
<p class="post-copyright">未经允许不得转载:<ahref="https://www.wangchao.info/">王超博客</a> » <ahref="https://www.wangchao.info/1148.html">Shadowsocks Python版一键安装脚本 By 秋水逸冰</a></p>
页:
[1]