Using systemd
This example demonstrates how to use systemd to manage frps service on Linux systems, including starting, stopping, configuring background running, and setting auto-start on boot.
frp is written in Go and supports cross-platform deployment. You only need to download the binary file suitable for your platform to execute it, without additional dependencies.
Since it’s written in Go, the system requirements are consistent with the latest Go language requirements for systems and platforms. Please refer to Golang System requirements for details.
You can download the latest version of client and server binary files from the GitHub Release page. All files are packaged in a compressed archive, which also includes a complete configuration parameter documentation.
frpc
to the machine where the intranet service is located.frps
to the machine with a public IP address, and place them in any directory../frps -c ./frps.toml
../frpc -c ./frpc.toml
.supervisor
.If you are a Windows user, you need to execute the same commands in the command prompt.
For information on how to write configuration files, please refer to the content in the Examples section.
For complete configuration item descriptions, please refer to the content in Reference.
This example demonstrates how to use systemd to manage frps service on Linux systems, including starting, stopping, configuring background running, and setting auto-start on boot.