During use, you often encounter the following situations:
It is necessary to modify the folder permissions in a certain directory to: 0755, the owner is root, the file permissions are: 0644, the owner is root
1. Set the permissions of all folders in a directory individually```
The latest frp version at the time of publication of this article isv0.36.2. The server uses thex64architecture as an example, and the client uses thearmarchitecture as an example.## Config on Server### 1. Download FRPDownload the latest precompiled package for the corresponding platform from the [release] page of fatedier/frp.
Download and unzip anywhere on the server```
wget https://github.com/fatedier/frp/releases/download/v0.36.2/frp_0.36.2_linux_amd64.tar.gz
tar -zxvf frp*.tar.gz
### 2. Install FRPS```
cd frp*
mv frps /usr/bin/frps
mkdir /etc/frp
mv frps.ini /etc/frp/frps.ini
From Step2 to Step4 need ROOT authority, you need addsudobefore each command if NOT a ROOT user.
~~3a. Configuration of FRPS(before version 0.52.0)~~Edit the frp config filevim /etc/frps.iniand fill in the following format```
## Config on Client> The client installation method is exactly the same as the server installation method. The only difference is in the configuration file. Therefore, only the differences from the server installation are explained.### 1. Download FRP for Client```
- `server_addr`Fill in the ipv4 address of FRPS- `server_port`is the port corresponding to`bind_port`of the server- `token`is the`token`corresponding to the server
### 3b. Configuration of FRPC(newer then 0.52.0)Edit the frp config file`vim /etc/frpc.toml`and fill in the following format```
1. Set up domain name resolution on the domain name website- Resolve the A/AAAA record of a custom domain name to the public IP address of the FRP server
- CUSTOM_DOMAIN fill in the domain name set in the previous step## One More Thing> FRP one-click installation script> - linux platform, amd64 architecture> - Default service port`7000`,> - The dashboard username and password are both admin> - Token is random
> ! Onekey script only working for version 0.36.2### 1. Download the one-click installation script```