优化文档

This commit is contained in:
dushixiang
2021-04-08 21:48:35 +08:00
parent 60f9289fb1
commit ef9efb7fba
3 changed files with 30 additions and 9 deletions

View File

@ -18,7 +18,7 @@ Next Terminal基于 [Apache Guacamole](https://guacamole.apache.org/) 开发,
- 批量执行命令
- 在线会话管理(监控、强制断开)
- 离线会话管理(查看录屏)
- 双因素认证 感谢 [naiba](https://github.com/naiba) 贡献
- 双因素认证
- 资产标签
- 资产授权
- 多用户&用户分组

View File

@ -39,7 +39,7 @@ docker pull dushixiang/next-terminal:latest
```shell
docker rm <container-id> -f
```
再重新执行一次 [docker方式安装命令](install-naive.md)
再重新执行一次 [docker方式安装命令](install-docker.md)
</details>

View File

@ -119,10 +119,7 @@ mkfontdir
fc-cache
```
### 安装 Next Terminal
建立next-terminal目录
```shell
mkdir ~/next-terminal && cd ~/next-terminal
```
> 示例步骤安装在 `/usr/local/next-terminal`,你可以自由选择安装目录
下载
```shell
@ -131,11 +128,10 @@ wget https://github.com/dushixiang/next-terminal/releases/latest/download/next-t
解压
```shell
tar -xvf next-terminal.tgz
cd next-terminal
tar -zxvf next-terminal.tgz -C /usr/local/
```
当前目录下创建或修改配置文件`config.yml`
`/usr/local/next-terminal``/etc/next-terminal`下创建或修改配置文件`config.yml`
```shell
db: sqlite
# 当db为sqlite时mysql的配置无效
@ -160,3 +156,28 @@ server:
```shell
./next-terminal
```
使用systemd方式启动
`/etc/systemd/system/` 目录创建文件并写入以下内容
```shell
[Unit]
Description=next-terminal service
After=network.target
[Service]
User=root
WorkingDirectory=/usr/local/next-terminal
ExecStart=/usr/local/next-terminal/next-terminal
Restart=on-failure
[Install]
WantedBy=multi-user.target
```
重载系统服务&&设置开机启动&&启动服务
```shell
systemctl daemon-reload
systemctl enable next-terminal
systemctl start next-terminal
```