ngrok搭建
/usr/local/src/ngrok
/usr/local/src/ngrok/bin/ngrokd -tlsKey="assets/server/tls/snakeoil.key" -tlsCrt="assets/server/tls/snakeoil.crt" -domain="$NGROK_DOMAIN" -httpAddr=":80" -httpsAddr=":443" -tunnelAddr=":4443"
/usr/local/src/ngrok/bin/ngrokd -domain="ngrok.kioye.cn" -httpAddr=":80" -httpsAddr=":443" -tunnelAddr=":4443"
# Go换国内源解决go get -u 问题
Go版本1.13及以上: Windows在编译器终端执行以下操作:
go env -w GO111MODULE=on
go env -w GOPROXY=https://goproxy.cn,direct
1
2
2
MacOS或Linux
export GO111MODULE=off
export GOPROXY=https://goproxy.cn
1
2
2
或者
$ echo "export GO111MODULE=on" >> ~/.profile
$ echo "export GOPROXY=https://goproxy.cn" >> ~/.profile
$ source ~/.profile
1
2
3
2
3
199.232.69.194 github.global.ssl.fastly.net
140.82.113.3 github.com
# 内容如下:
[Unit] Description=frps After=network.target
[Service] ExecStart=/usr/local/src/frp_0.34.2_linux_amd64/frps -c /usr/local/src/frp_0.34.2_linux_amd64/frpc.ini
[Install] WantedBy=multi-user.target
内网 frpc
/opt/frp/frp_0.34.2_linux_amd64
公网 frps
/usr/local/src/frp_0.34.2_linux_amd64
上次更新: 2022/01/03, 23:02:56