How to install and configure frp
Installation package address of frp
Https://github.com/fatedier/frp/releases
See a lot of bags.
386 amd64 is 32-bit system amd64 is 64-bit system.
All right, download a frp_0.27.0_linux_amd64.tar.gz
Under execution, unzip it and change it to the frpc directory, cd, and enter it.
. / frpc
-bash:. / frpc: cannot execute binary file
A great deal of information shows that this thing is in the wrong version.
Frp is written in go language, install go
Https://dl.google.com/go/go1.11.darwin-amd64.pkg
After installation, execute go-version
Go version
Go1.11 darwin/amd64
Instantly understand that to download the first one, that linux_amd64.tar.gz seems to correspond to the version of go. So look at the go version of your computer before you can decide which one to download. Download the corresponding darwin/amd64 version of my computer again.
. / frpc
2019-05-22 10:03:26 [W] [service.go:82] login to server failed: dial tcp 127.0.0.1:7000: connect: connection refused
Dial tcp 127.0.0.1:7000: connect: connection refused
This response is the correct version, but the wrong configuration of the response.
Frp basic configuration, starting
Start with configuration
The server starts the test
. / frps-c. / frps.ini
2019-05-22 10:06:33 [I] [service.go:139] frps tcp listen on 0.0.0.0:7000
2019-05-22 10:06:33 [I] [root.go:204] Start frps success
The default configuration is good and does not need to be changed.
[common]
Bind_port = 7000
Frps stands for frp server
Frpc stands for frp client
The client starts the test
Frpc.ini
Point to the local by default and test it directly. Play with yourself.
[common]
Server_addr = 127.0.0.1 # Server IP
Server_port = 7000 # the port opened by the server, waiting for the client to connect
[ssh] # ssh Super forwarding
Type = tcp # type tcp udp
Local_ip = 127.0.0.1 # Local IP
Local_port = 22 # Local Port
Remote_port = 6000 # Local forwarding Port
. / frpc-c. / frpc.ini
2019-05-22 10:13:53 [I] [service.go:221] login to server success, get run id [b1247b7334ecc4a0], server udp port [0]
2019-05-22 10:13:53 [I] [proxy_manager.go:137] [b1247b7334ecc4a0] proxy added: [ssh]
2019-05-22 10:13:53 [I] [control.go:144] [ssh] start proxy success
A server and a client are successfully established locally, as shown in the figure MORE https://java-er.com/blog/frp-install/