在linux vps上。
git clone https://github.com/shenfeng/proxy proxy-by-shenfeng
cd proxy-by-shenfeng
cd src
nano proxy.go
把第230行的0.0.0.0:6666改为127.0.0.1:7788
然后,
git clone https://github.com/shenfeng/proxy proxy-by-shenfeng
cd proxy-by-shenfeng
cd src
nano proxy.go
把第230行的0.0.0.0:6666改为127.0.0.1:7788
然后,
go build -o proxy proxy.go
此步骤会在当前文件夹下生成可执行文件proxy。
./proxy
会显示:
2020/04/10 15:48:46 proxy.go:124: load 3 proxies, with 24 rules from config.json
2020/04/10 15:48:46 proxy.go:236: Proxy multiplexer listens on 127.0.0.1:7788