shadowsocks启动停止重启等指令

root权限下运行

启动:

/etc/init.d/shadowsocks start

停止:

/etc/init.d/shadowsocks stop

重启:

/etc/init.d/shadowsocks restart

状态查询:

/etc/init.d/shadowsocks status

配置文件路径:

/etc/shadowsocks.json

多用户设置:

{
 "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
}

注:port_password分别设置外网端口和对应密码,method设置的是密码加密模式:

chacha20-ietf-poly1305,aes-256-gcm,rc4,aes,bf,camellia,salsa20,chacha20,xchacha20


评论
暂无评论