-
-
Save cornradio/984f6c17b4f8b3ee47a732c3756dc986 to your computer and use it in GitHub Desktop.
frps_install.sh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # download here https://github.com/fatedier/frp/releases/tag/v0.61.1 | |
| # unzip | |
| tar -xzvf frp_0.61.1_linux_amd64.tar.gz | |
| cd frp_0.61.1_linux_amd64 | |
| # 定义文件路径 | |
| FRPS_TOML="/root/frp/frp_0.61.1_linux_amd64/frps.toml" | |
| # 写入新的配置内容 | |
| cat <<EOF > "$FRPS_TOML" | |
| bindPort = 7000 | |
| webServer.addr = "0.0.0.0" | |
| webServer.port = 7500 | |
| EOF | |
| echo "已经配置frps并且开启7500面板端口。接受7000端口转发请求。" | |
| screen -dmS frps | |
| screen -S frps -p 0 -X stuff './frps -c frps.toml\n' | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment