b0e4531d by 周伟奇

update REAMDE

1 parent 8cbc0666
Showing 1 changed file with 28 additions and 28 deletions
......@@ -21,35 +21,35 @@
### 2.1 授权管理
- 获取服务器信息,发给授权人员生成授权文件(已有授权文件忽略此步骤)
```
bin/control.sh systeminfo
```
```
bin/control.sh systeminfo
```
- 授权文件更新
```
bin/control.sh update_license /path_to/xxx.secret
```
```
bin/control.sh update_license /path_to/xxx.secret
```
### 2.2 配置文件
- 编辑`configs/settings.sh`
```
# 日志目录
LOG_BASE_DIR=${BASE_DIR}/logs
```
# 日志目录
LOG_BASE_DIR=${BASE_DIR}/logs
# 端口
BACKEND_PORT=80
# TODO 此端口随机,不需要配置
TRITON_HTTP_PORT=8000
TRITON_GRPC_PORT=8001
TRITON_METRICS_PORT=8002
# 端口
BACKEND_PORT=80
# TODO 此端口随机,不需要配置
TRITON_HTTP_PORT=8000
TRITON_GRPC_PORT=8001
TRITON_METRICS_PORT=8002
# sanic-worker TODO 可配置
BACKEND_SANIC_WORKER_NUM=4
# sanic-worker TODO 可配置
BACKEND_SANIC_WORKER_NUM=4
# GPU/CPU
# 使用CPU: TRITON_GPUS=
# 使用GPU0/GPU1: TRITON_GPUS=0,1
TRITON_GPUS=0
```
# GPU/CPU
# 使用CPU: TRITON_GPUS=
# 使用GPU0/GPU1: TRITON_GPUS=0,1
TRITON_GPUS=0
```
### 2.3 启动
```
......@@ -63,13 +63,13 @@ bin/control.sh stop all
### 2.5 重启
- 重启后端服务,适用于只更新了授权文件
```
bin/control.sh restart backend
```
```
bin/control.sh restart backend
```
- 重启所有,适用于更新了repo文件夹
```
bin/control.sh restart all
```
```
bin/control.sh restart all
```
### 2.6 日志查看
```
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!