选择服务器
这里以AWS为例。
Ubuntu 24.04, x86, t2.micro
搭设ShadowsocksR服务
git clone https://github.com/shadowsocksrr/shadowsocksr.gitcd shadowsocksrvi config.json更改server, server_port, password, method, obfs与客户端登陆信息一致。
开放服务器端口,tcp和udp都开放上述server_port
运行服务
python server.py./logrun.sh关闭
./stop.sh看日志
常见问题
1)如果在运行./logrun.sh的时候,遇到问题AttributeError: module 'collections' has no attribute 'MutableMapping',可以找到/shadowsocks/lru_cache.py,把class LRUCache(collections.MutableMapping)换成class LRUCache(collections.abc.MutableMapping)
参考链接
