mirror of https://github.com/stilleshan/frps.git
update v5.4.0 for frps
This commit is contained in:
parent
d747cf3362
commit
ab182ac07b
24
README.md
24
README.md
|
@ -26,7 +26,7 @@ wget https://github.ioiox.com/stilleshan/frps/raw/branch/master/frps_linux_insta
|
|||
使用
|
||||
```shell
|
||||
vi /usr/local/frp/frps.toml
|
||||
# 修改 frps.ini 配置
|
||||
# 修改 frps.toml 配置
|
||||
sudo systemctl restart frps
|
||||
# 重启 frps 服务即可生效
|
||||
```
|
||||
|
@ -38,7 +38,7 @@ wget https://raw.githubusercontent.com/stilleshan/frps/master/frps_linux_uninsta
|
|||
wget https://github.ioiox.com/stilleshan/frps/raw/branch/master/frps_linux_uninstall.sh && chmod +x frps_linux_uninstall.sh && ./frps_linux_uninstall.sh
|
||||
```
|
||||
|
||||
### 自定义一键脚本(先 fork 本仓库,在自行修改 frps.ini 文件后执行脚本.)
|
||||
### 自定义一键脚本(先 fork 本仓库,在自行修改 frps.toml 文件后执行脚本.)
|
||||
- 首先 fork 本仓库
|
||||
- 配置 frps.toml
|
||||
- 修改 frps_linux_install.sh 脚本
|
||||
|
@ -46,7 +46,7 @@ wget https://github.ioiox.com/stilleshan/frps/raw/branch/master/frps_linux_unins
|
|||
- Push 仓库到 GitHub
|
||||
|
||||
#### 修改 frps_linux_install.sh 脚本
|
||||
`FRP_VERSION=0.51.3` 可根据原版项目更新自行修改为最新版本.
|
||||
`FRP_VERSION=0.54.0` 可根据原版项目更新自行修改为最新版本.
|
||||
`REPO=stilleshan/frps` 由于 **fork** 到你自己的仓库,需修改`stilleshan`为你的 GitHub 账号ID.
|
||||
|
||||
#### 执行一键脚本
|
||||
|
@ -75,30 +75,30 @@ sudo systemctl stop frps
|
|||
```
|
||||
|
||||
### docker 部署
|
||||
为避免因 **frps.ini** 文件的挂载,格式或者配置的错误导致容器无法正常运行并循环重启.请确保先配置好 **frps.ini** 后在执行启动.
|
||||
为避免因 **frps.toml** 文件的挂载,格式或者配置的错误导致容器无法正常运行并循环重启.请确保先配置好 **frps.toml** 后在执行启动.
|
||||
|
||||
先 **git clone** 本仓库,并正确配置 **frps.ini** 文件.
|
||||
先 **git clone** 本仓库,并正确配置 **frps.toml** 文件.
|
||||
```shell
|
||||
git clone https://github.com/stilleshan/frps
|
||||
# git clone 本仓库
|
||||
git clone https://github.ioiox.com/stilleshan/frps
|
||||
# 国内镜像
|
||||
vi /root/frps/frps.ini
|
||||
# 配置 frps.ini 文件
|
||||
vi /root/frps/frps.toml
|
||||
# 配置 frps.toml 文件
|
||||
```
|
||||
启动容器
|
||||
```shell
|
||||
docker run -d --name=frps --restart=always \
|
||||
--network host \
|
||||
-v /root/frps/frps.ini:/frp/frps.ini \
|
||||
-v /root/frps/frps.toml:/frp/frps.toml \
|
||||
stilleshan/frps
|
||||
```
|
||||
> 以上命令 -v 挂载的目录是以 git clone 本仓库为例,也可以在任意位置手动创建 frps.ini 文件,并修改命令中的挂载路径.
|
||||
> 以上命令 -v 挂载的目录是以 git clone 本仓库为例,也可以在任意位置手动创建 frps.toml 文件,并修改命令中的挂载路径.
|
||||
|
||||
服务运行中修改 **frps.ini** 配置后需重启 **frps** 服务.
|
||||
服务运行中修改 **frps.toml** 配置后需重启 **frps** 服务.
|
||||
```shell
|
||||
vi /root/frps/frps.ini
|
||||
# 修改 frps.ini 配置
|
||||
vi /root/frps/frps.toml
|
||||
# 修改 frps.toml 配置
|
||||
docker restart frps
|
||||
# 重启 frps 容器即可生效
|
||||
```
|
||||
|
|
|
@ -22,7 +22,7 @@ log.maxDays = 1
|
|||
log.disablePrintColor = false
|
||||
|
||||
auth.method = "token"
|
||||
auth.token = "admin"
|
||||
auth.token = "12345678"
|
||||
|
||||
# Only allow frpc to bind ports you list. By default, there won't be any limit.
|
||||
allowPorts = [
|
||||
|
|
|
@ -17,7 +17,7 @@ REPO=stilleshan/frps
|
|||
WORK_PATH=$(dirname $(readlink -f $0))
|
||||
FRP_NAME=frps
|
||||
FRP_PATH=/usr/local/frp
|
||||
PROXY_URL="https://ghproxy.com/"
|
||||
PROXY_URL="https://mirror.ghproxy.com/"
|
||||
|
||||
# check frps
|
||||
if [ -f "/usr/local/frp/${FRP_NAME}" ] || [ -f "/usr/local/frp/${FRP_NAME}.toml" ] || [ -f "/lib/systemd/system/${FRP_NAME}.service" ];then
|
||||
|
|
|
@ -14,7 +14,7 @@ Font="\033[0m"
|
|||
# variable
|
||||
WORK_PATH=$(dirname $(readlink -f $0))
|
||||
FRP_NAME=frps
|
||||
FRP_VERSION=0.51.3
|
||||
FRP_VERSION=0.54.0
|
||||
FRP_PATH=/usr/local/frp
|
||||
|
||||
# 停止frpc
|
||||
|
|
Loading…
Reference in New Issue