ShadowsocksR服务端常用命令
1 2 3 4
| # /etc/init.d/shadowsocks start # 启动shadowsocksR服务 # /etc/init.d/shadowsocks stop # 停止shadowsocksR服务 # /etc/init.d/shadowsocks restart # 重启shadowsocksR服务 # /etc/init.d/shadowsocks status # 查看shadowsocksR服务
|
ShadowsocksR服务端修改密码、配置多端口教程
(1)远程连接服务器,编辑ShadowsocksR服务的配置文件,输入vim /etc/shadowsocks.json
(2)按“i
”进入编辑模式,编辑如下
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
| { "server": "0.0.0.0", "server_ipv6": "::", "local_address": "127.0.0.1", "local_port": 1081, "port_password":{ "端口1":"密码1", "端口2":"密码2", "端口3":"密码3", "端口4":"密码4" }, "timeout": 120, "udp_timeout": 60, "method": "chacha20", "protocol": "auth_sha1_compatible", "protocol_param": "", "obfs": "http_simple_compatible", "obfs_param": "", "dns_ipv6": false, "connect_verbose_info": 0, "redirect": "", "fast_open": false, "workers": 1
}
|
(3)按esc
返回,输入:wq
回车保存
(4)输入以下命令重启ShadowsocksR服务,使配置生效
1
| /etc/init.d/shadowsocks restart # 重启ShadowsocksR服务
|