-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Server Setup on Windows
PolarBears edited this page Aug 3, 2017
·
2 revisions
- 安装Python
- 安装 OpenSSL for Windows
- 安装 git 或 手动下载zip源码包
git clone -b manyuser https://github.com/shadowsocksr-backup/shadowsocksr.git
执行完毕后会在当前目录新建一个shadowsocksr目录。
进入子目录:
cd shadowsocksr/shadowsocks
python server.py -s server_ip -p 443 -k password -m aes-256-cfb -o http_simple
#说明:-p 端口 -k 密码 -m 加密方式 -o 混淆插件
用 -h 查看所有参数。
建立配置文件 shadowsocks.json
写入以下内容:
{
"server":"0.0.0.0",
"server_ipv6": "::",
"server_port":8388,
"local_address": "127.0.0.1",
"local_port":1080,
"password":"mypassword",
"timeout":300,
"method":"aes-256-cfb",
"obfs":"http_simple",
"fast_open": false,
"workers": 1
}
一般情况下,只需要修改以下三项即可:
"server_port":8388, //端口
"password":"password", //密码
"method":"aes-256-cfb", //加密方式
运行(请自行替换shadowsocks.json文件路径):
python server.py -c shadowsocks.json
或直接修改根目录下的 config.json 文件,然后运行:
python server.py
python local.py -s server_ip -p 443 -k password -m aes-256-cfb -o http_simple
#说明:-p 端口 -k 密码 -m 加密方式 -o 混淆插件
用 -h 查看所有参数。
建立配置文件 shadowsocks.json
写入以下内容:
{
"server":"0.0.0.0",
"server_ipv6": "::",
"server_port":8388,
"local_address": "127.0.0.1",
"local_port":1080,
"password":"mypassword",
"timeout":300,
"method":"aes-256-cfb",
"obfs":"http_simple",
"fast_open": false,
"workers": 1
}
一般情况下,只需要修改以下四项即可:
"server":"0.0.0.0", //服务器地址
"server_port":8388, //端口
"password":"password", //密码
"method":"aes-256-cfb", //加密方式
运行(请自行替换shadowsocks.json文件路径):
python local.py -c shadowsocks.json
或直接修改根目录下的 config.json 文件,然后运行:
python local.py