update toml
This commit is contained in:
25
README.md
25
README.md
@@ -7,6 +7,7 @@
|
||||
> *docker image support for X86 and ARM*
|
||||
|
||||
## 更新
|
||||
- **2024-03-03** 更新到toml配置文件
|
||||
- **2021-05-31** 更新国内镜像方便使用
|
||||
- **2021-05-31** 目前 X86 群晖 DMS 7.0 可直接使用 Linux 版本脚本,已实测.由于没有 ARM 版可尝试,请自行尝试.
|
||||
- **2021-05-31** 更新 Linux 一键安装脚本同时支持 X86 和 ARM
|
||||
@@ -40,8 +41,8 @@ wget https://github.ioiox.com/stilleshan/frpc/raw/branch/master/frpc_linux_insta
|
||||
|
||||
使用
|
||||
```shell
|
||||
vi /usr/local/frp/frpc.ini
|
||||
# 修改 frpc.ini 配置
|
||||
vi /usr/local/frp/frpc.toml
|
||||
# 修改 frpc.toml 配置
|
||||
sudo systemctl restart frpc
|
||||
# 重启 frpc 服务即可生效
|
||||
```
|
||||
@@ -54,28 +55,28 @@ wget https://github.ioiox.com/stilleshan/frpc/raw/branch/master/frpc_linux_unins
|
||||
```
|
||||
|
||||
### 4. Linux 服务器 docker 安装
|
||||
为避免因 **frpc.ini** 文件的挂载,格式或者配置的错误导致容器无法正常运行并循环重启.请确保先配置好 **frpc.ini** 后在运行启动.
|
||||
为避免因 **frpc.toml** 文件的挂载,格式或者配置的错误导致容器无法正常运行并循环重启.请确保先配置好 **frpc.toml** 后在运行启动.
|
||||
|
||||
**git clone** 本仓库,并正确配置 **frpc.ini** 文件.
|
||||
**git clone** 本仓库,并正确配置 **frpc.toml** 文件.
|
||||
```shell
|
||||
git clone https://github.com/stilleshan/frpc
|
||||
# git clone 本仓库镜像
|
||||
git clone https://github.ioiox.com/stilleshan/frpc
|
||||
# 国内镜像
|
||||
vi /root/frpc/frpc.ini
|
||||
# 配置 frpc.ini 文件
|
||||
vi /root/frpc/frpc.toml
|
||||
# 配置 frpc.toml 文件
|
||||
```
|
||||
|
||||
执行以下命令启动服务
|
||||
```shell
|
||||
docker run -d --name=frpc --restart=always -v /root/frpc/frpc.ini:/frp/frpc.ini stilleshan/frpc
|
||||
docker run -d --name=frpc --restart=always -v /root/frpc/frpc.toml:/frp/frpc.toml stilleshan/frpc
|
||||
```
|
||||
> 以上命令 -v 挂载的目录是以 git clone 本仓库为例,也可以在任意位置手动创建 frpc.ini 文件,并修改命令中的挂载路径.
|
||||
> 以上命令 -v 挂载的目录是以 git clone 本仓库为例,也可以在任意位置手动创建 frpc.toml 文件,并修改命令中的挂载路径.
|
||||
|
||||
服务运行中修改 **frpc.ini** 配置后需重启 **frpc** 服务.
|
||||
服务运行中修改 **frpc.toml** 配置后需重启 **frpc** 服务.
|
||||
```shell
|
||||
vi /root/frp/frpc.ini
|
||||
# 修改 frpc.ini 配置
|
||||
vi /root/frp/frpc.toml
|
||||
# 修改 frpc.toml 配置
|
||||
docker restart frpc
|
||||
# 重启 frpc 容器即可生效
|
||||
```
|
||||
@@ -88,4 +89,4 @@ docker restart frpc
|
||||
- 原版frp项目 [fatedier/frp](https://github.com/fatedier/frp)
|
||||
- [群晖NAS使用Docker安装配置frpc内网穿透教程](https://www.ioiox.com/archives/26.html)
|
||||
- [群晖NAS安装配置免费frp内网穿透教程](https://www.ioiox.com/archives/6.html)
|
||||
- [新手入门 - 详解 frp 内网穿透 frpc.ini 配置](https://www.ioiox.com/archives/79.html)
|
||||
- [新手入门 - 详解 frp 内网穿透 frpc.toml 配置](https://www.ioiox.com/archives/79.html)
|
||||
Reference in New Issue
Block a user