update README

This commit is contained in:
杨黄林
2023-09-04 16:08:19 +08:00
parent e4ecc57825
commit e6488d3f1b
2 changed files with 53 additions and 1 deletions

View File

@@ -11,7 +11,7 @@ frps-multiuser will run as one single process and accept HTTP requests from frps
![支持英文](screenshots/i18n.png) ![支持英文](screenshots/i18n.png)
![自动深色模式](screenshots/dark%20mode.png) ![自动深色模式](screenshots/dark%20mode.png)
## update notes ## Update Notes
+ **the default tokens file is frps-multiuser.ini now,ini file support comment** + **the default tokens file is frps-multiuser.ini now,ini file support comment**
+ **remove `-l`,it configure in `frps-multiuser.ini` now** + **remove `-l`,it configure in `frps-multiuser.ini` now**
@@ -131,6 +131,32 @@ local_port = 22
remote_port = 6000 remote_port = 6000
``` ```
## Run as service
this example is for `ubuntu` and with `root` user
+ 1.unzip `frps-multiuser.zip` to dir `/root/frps-multiuser`
+ 2.touch a file with command `touch frps-multiuser.service` in dir `/root/frps-multiuser`.the file content is:
```ini
[Unit]
# 服务名称,可自定义
Description = frp multiuser service
After = network.target syslog.target
Wants = network.target
[Service]
Type = simple
Environment=FRPS_MULTIUSER_OPTS="-c /root/frps-multiuser/frps-multiuser.ini"
# 启动frps的命令需修改为您的frps的安装路径
ExecStart = /root/frps-multiuser/frps-multiuser $FRPS_MULTIUSER_OPTS
[Install]
WantedBy = multi-user.target
```
+ 3.copy `frps-multiuser.service` to `/etc/systemd/system/` with command `cp /root/frps-multiuser.service /etc/systemd/system/`
+ 4.reload service with command `systemctl daemon-reload`
+ 5.start service with command `service frps-multiuser start`
## Issues & Ideas ## Issues & Ideas
___If you want visit mange ui from internet, you should change `plugin_addr` to `0.0.0.0`___ ___If you want visit mange ui from internet, you should change `plugin_addr` to `0.0.0.0`___

View File

@@ -131,6 +131,32 @@ local_port = 22
remote_port = 6000 remote_port = 6000
``` ```
## 以服务的形式运行
本实例是在 `ubuntu` 下, 以 `root` 用户执操作
+ 1、解压 `frps-multiuser.zip` 到目录 `/root/frps-multiuser`
+ 2、在目录 `/root/frps-multiuser` 下 用命令创建文件:`touch frps-multiuser.service`。创建后修改文件内容:
```ini
[Unit]
# 服务名称,可自定义
Description = frp multiuser service
After = network.target syslog.target
Wants = network.target
[Service]
Type = simple
Environment=FRPS_MULTIUSER_OPTS="-c /root/frps-multiuser/frps-multiuser.ini"
# 启动frps的命令需修改为您的frps的安装路径
ExecStart = /root/frps-multiuser/frps-multiuser $FRPS_MULTIUSER_OPTS
[Install]
WantedBy = multi-user.target
```
+ 3、复制服务文件 `cp /root/frps-multiuser.service /etc/systemd/system/`
+ 4、重载服务 `systemctl daemon-reload`
+ 5、启动服务 `service frps-multiuser start`
## 使用 ## 使用
___如果要从外网访问管理界面, 需要把配置中的 `plugin_addr` 改为 `0.0.0.0`___ ___如果要从外网访问管理界面, 需要把配置中的 `plugin_addr` 改为 `0.0.0.0`___