shadowsocks服务端配置

来源:互联网 发布:python 加减乘除 编辑:程序博客网 时间:2024/05/16 17:00
wget --no-check-certificate -O shadowsocks.sh https://raw.githubusercontent.com/teddysun/shadowsocks_install/master/shadowsocks.shchmod +x shadowsocks.sh./shadowsocks.sh 2>&1 | tee shadowsocks.log

卸载命令:

./shadowsocks.sh uninstall

配置文件路径:

/etc/shadowsocks.json

默认配置

{    "server":"0.0.0.0",    "server_port":8989,    "local_address":"127.0.0.1",    "local_port":1080,    "password":"你的密码",    "timeout":300,    "method":"aes-256-gcm",    "fast_open":false}

server: 服务器ip地址
server_port: 绑定的端口,注意不要设置已经使用了的端口
possword: 密码
timeout: 超时时间
method: 加密方法
fast_open: 如果你的服务器 Linux 内核在3.7+,可以开启 fast_open 以降低延迟

配置多个账号密码

{"server":"0.0.0.0","port_password":{     "8381":"password1",     "8382":"password2",     "8383":"password3",     "8384":"password4"     },"timeout":300,"method":"aes-256-gcm","fast_open":false}

启动shadowsocks

启动:/etc/init.d/shadowsocks start停止:/etc/init.d/shadowsocks stop重启:/etc/init.d/shadowsocks restart状态:/etc/init.d/shadowsocks status
原创粉丝点击