We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#cp config.json config1.json #vim config.json .... local_port:1081 .... #vim config1.json .... local_port:1082 ....
#./trojan -c config.json -t #./trojan -c config1.json -t
#./trojan -c config.json & #lsof -i:1081 #./trojan -c config1.json & #lsof -i:1082
也可以通过 supervisor 启动多个客户端
#vim nginx.conf #和http同等级 stream { upstream trojan { server 127.0.0.1:1081 max_fails=5 fail_timeout=5s; server 127.0.0.1:1082 max_fails=5 fail_timeout=5s; } server { listen 127.0.0.1:1080; proxy_pass trojan; } } #nginx -t #nginx -s reload
#curl -L git.io/cow | bash
#vim ~/cow/rc ... listen = http://127.0.0.1:1080 # SOCKS5 二级代理 proxy = socks5://127.0.0.1:1081 proxy = socks5://127.0.0.1:1082 ....
cow &
无论是通过那种方式最终都是通过127.0.0.1:1080进行代理
The text was updated successfully, but these errors were encountered:
No branches or pull requests
准备工作
1、修改配置文件
2、启动多个客户端
负载均衡
1、nginx方式
2、cow方式
#curl -L git.io/cow | bash
后记
The text was updated successfully, but these errors were encountered: