centos环境下一键安装shadowsocks

SS技术 优优 826℃ 0评论

此脚本适用环境:CentOS 6,7,Debian,Ubuntu

默认配置:
服务器端口:8989
客户端端口:1080
密码:自己设定(如不设定,默认为blog.fl8.xyz)

客户端下载请移步这里

安装方法

wget http://ssuu.org/sh/shadowsocks.sh
all/master/shadowsocks.sh
chmod +x shadowsocks.sh
./shadowsocks.sh 2>&1 | tee shadowsocks.log

以上命令最后一行显示有问题,正确的应该是这样的

./shadowsocks.sh 2>&1 | tee shadowsocks.log

安装完成后,脚本提示如下:

Congratulations, shadowsocks install completed!
Your Server IP:your_server_ip
Your Server Port:8989
Your Password:your_password
Your Local IP:127.0.0.1
Your Local Port:1080
Your Encryption Method:aes-256-cfb
Welcome to visit:http://blog.fl8.xyz/setss
Enjoy it!

配置文件 

nano /etc/shadowsocks.json

单用户进行如下修改

{
    "server":"your_server_ip",
    "server_port":8989,
    "local_address":"127.0.0.1",
    "local_port":1080,
    "password":"yourpassword",
    "timeout":300,
    "method":"aes-256-cfb",
    "fast_open": false
}

多用户进行如下修改

{
    "server":"your_server_ip",
    "local_address":"127.0.0.1",
    "local_port":1080,
    "port_password":{
         "8989":"password0",
         "9001":"password1",
         "9002":"password2",
         "9003":"password3",
         "9004":"password4"
    },
    "timeout":300,
    "method":"aes-256-cfb",
    "fast_open": false
}

卸载方法:

./shadowsocks.sh uninstall

启动:/etc/init.d/shadowsocks start
停止:/etc/init.d/shadowsocks stop
重启:/etc/init.d/shadowsocks restart
状态:/etc/init.d/shadowsocks status

转载请注明:优优 » centos环境下一键安装shadowsocks

喜欢 (2)
发表我的评论
取消评论
表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
(1)个小伙伴在吐槽
25 queries in 0.518 seconds, using 4.03MB memory