<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/ DTD/wml_1.1.xml">

<wml>
<head>
<meta http-equiv="cache-control" content="max-age=180,private" />
</head>
<card title="SS&amp;SSR三个一键安装脚本">
<p>
作者:<a href="index.php?action=showuser&amp;userid=1&amp;hash=">admin</a><br />时间:2016-11-24 12:50<br />分类:<a href="index.php?action=list&amp;cid=3&amp;hash=">电脑技术</a><br />内容:
SS&amp;SSR三个一键安装脚本

安装SS的最低要求

系统支持：CentOS，Debian，Ubuntu

内存要求：&ge;128M

原版SS一键安装脚本

wget http://wget.ca/Sh/Shadowsocks/1.sh

chmod +x 1.sh

./1.sh 2&gt;&amp;1 | tee 1.log

特别注意：默认端口：443，加密方式：rc4-md5aes-256-cfb

 

teddysun的SSR一键安装脚本

wget http://wget.ca/Sh/Shadowsocks/2.sh

chmod +x 2.sh

./2.sh 2&gt;&amp;1 | tee 2.log

特别注意：加密方式：aes-256-cfb

91Yun二次开发SSR脚本

 

默认加密为：chacha20

默认协议为：auth_sha1_compatible

默认混淆为：http_post_compatible（兼容http_simple,客户端可以直接用http_simple）

使用git的方式安装，以方便以后使用git来升级

增加了修改时区的操作。把时区设置成了北京-上海时间。

 

wget http://wget.ca/Sh/Shadowsocks/3.sh &amp;&amp; bash 3.sh

 

卸载方法

使用 root 用户登录，运行以下命令

./shadowsocksR.sh uninstall

升级方法

cd /usr/local/shadowsocks/shadowsocks

git pull

常用命令

启动：/etc/init.d/shadowsocks start

停止：/etc/init.d/shadowsocks stop

重启：/etc/init.d/shadowsocks restart

状态：/etc/init.d/shadowsocks status

 

配置文件路径：/etc/shadowsocks.json

日志文件路径：/var/log/shadowsocks.log

安装路径：/usr/local/shadowsocks/shadowsoks

 

多用户配置

如果要多个用户一起使用的话，请写入以下配置（vi /etc/shadowsocks.json）：

多用户的核心是这个配置，把这个配置替代掉/etc/shadowsocks.json的相关密码的配置就行了：

&ldquo;port_password&rdquo;:{

&ldquo;80&rdquo;:&rdquo;password1&Prime;,

&ldquo;443&rdquo;:&rdquo;password2&Prime;

},

完整的多用户配置：

{

    &quot;server&quot;:&quot;0.0.0.0&quot;,

    &quot;server_ipv6&quot;: &quot;[::]&quot;,

    &quot;local_address&quot;:&quot;127.0.0.1&quot;,

    &quot;local_port&quot;:1080,

    &quot;port_password&quot;:{

        &quot;80&quot;:&quot;password1&quot;,

        &quot;443&quot;:&quot;password2&quot;

    },

    &quot;timeout&quot;:300,

    &quot;method&quot;:&quot;aes-256-cfb&quot;,

    &quot;protocol&quot;: &quot;auth_sha1_compatible&quot;,

    &quot;protocol_param&quot;: &quot;&quot;,

    &quot;obfs&quot;: &quot;http_simple_compatible&quot;,

    &quot;obfs_param&quot;: &quot;&quot;,

    &quot;redirect&quot;: &quot;&quot;,

    &quot;dns_ipv6&quot;: false,

    &quot;fast_open&quot;: false,

    &quot;workers&quot;: 1

}

可以根据需求自行修改配置文件。



 
</p><p>
<a href="index.php?action=login&amp;hash=">立即登陆发表评论</a><br />
</p>
<p><a href="index.php?action=list&amp;hash=">返回日志列表</a><br /><a href="index.php?action=index&amp;hash=">返回主页</a></p>
</card>
</wml>
