diff --git a/README.md b/README.md index d0b1c0f..3e8726d 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ frps-multiuser will run as one single process and accept HTTP requests from frps ![支持英文](screenshots/i18n.png) ![自动深色模式](screenshots/dark%20mode.png) -## update notes +## Update Notes + **the default tokens file is frps-multiuser.ini now,ini file support comment** + **remove `-l`,it configure in `frps-multiuser.ini` now** @@ -131,6 +131,32 @@ local_port = 22 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 ___If you want visit mange ui from internet, you should change `plugin_addr` to `0.0.0.0`___ diff --git a/README_zh.md b/README_zh.md index eb71f3d..f9bdcbd 100644 --- a/README_zh.md +++ b/README_zh.md @@ -131,6 +131,32 @@ local_port = 22 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`___