企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
查看当前系统 cat /etc/redhat-release 安装 `pip install shadowsocks` 配置 文件位置:`/etc/shadowsocks.json ` 内容如下: { "server":"your_server_ip", "server_port":8989, "local_address": "127.0.0.1", "local_port":1080, "password":"yourpassword", "timeout":600, "method":"aes-256-cfb", "fast_open": false, "workers": 1 } 各字段的含义: server:服务器 IP (IPv4/IPv6),注意这也将是服务端监听的 IP 地址 server_port:监听的服务器端口 local_address:本地监听的 IP 地址 local_port:本地端端口 password:用来加密的密码 timeout:超时时间(秒) method:加密方法,可选择 “bf-cfb”, “aes-256-cfb”, “des-cfb”, “rc4”, 等等。默认是一种不安全的加密,推荐用 “aes-256-cfb” fast_open:true 或 false works:works数量,默认为 1 多用户配置如下: { "server":"my_server_ip", "local_address": "127.0.0.1", "local_port":1080, "port_password": { "8381": "foobar1", "8382": "foobar2", "8383": "foobar3", "8384": "foobar4" }, "timeout":300, "method":"aes-256-cfb", "fast_open": false } 启动 ssserver -c /etc/shadowsocks.json -d start #启动 ssserver -c /etc/shadowsocks.json -d stop #停止 # bash: pip: command not found ~~~ wget https://bootstrap.pypa.io/get-pip.py python get-pip.py ~~~