b0e4531d by 周伟奇

update REAMDE

1 parent 8cbc0666
Showing 1 changed file with 30 additions and 30 deletions
...@@ -21,35 +21,35 @@ ...@@ -21,35 +21,35 @@
21 21
22 ### 2.1 授权管理 22 ### 2.1 授权管理
23 - 获取服务器信息,发给授权人员生成授权文件(已有授权文件忽略此步骤) 23 - 获取服务器信息,发给授权人员生成授权文件(已有授权文件忽略此步骤)
24 ``` 24 ```
25 bin/control.sh systeminfo 25 bin/control.sh systeminfo
26 ``` 26 ```
27 - 授权文件更新 27 - 授权文件更新
28 ``` 28 ```
29 bin/control.sh update_license /path_to/xxx.secret 29 bin/control.sh update_license /path_to/xxx.secret
30 ``` 30 ```
31 31
32 ### 2.2 配置文件 32 ### 2.2 配置文件
33 - 编辑`configs/settings.sh` 33 - 编辑`configs/settings.sh`
34 ``` 34 ```
35 # 日志目录 35 # 日志目录
36 LOG_BASE_DIR=${BASE_DIR}/logs 36 LOG_BASE_DIR=${BASE_DIR}/logs
37
38 # 端口
39 BACKEND_PORT=80
40 # TODO 此端口随机,不需要配置
41 TRITON_HTTP_PORT=8000
42 TRITON_GRPC_PORT=8001
43 TRITON_METRICS_PORT=8002
37 44
38 # 端口 45 # sanic-worker TODO 可配置
39 BACKEND_PORT=80 46 BACKEND_SANIC_WORKER_NUM=4
40 # TODO 此端口随机,不需要配置 47
41 TRITON_HTTP_PORT=8000 48 # GPU/CPU
42 TRITON_GRPC_PORT=8001 49 # 使用CPU: TRITON_GPUS=
43 TRITON_METRICS_PORT=8002 50 # 使用GPU0/GPU1: TRITON_GPUS=0,1
44 51 TRITON_GPUS=0
45 # sanic-worker TODO 可配置 52 ```
46 BACKEND_SANIC_WORKER_NUM=4
47
48 # GPU/CPU
49 # 使用CPU: TRITON_GPUS=
50 # 使用GPU0/GPU1: TRITON_GPUS=0,1
51 TRITON_GPUS=0
52 ```
53 53
54 ### 2.3 启动 54 ### 2.3 启动
55 ``` 55 ```
...@@ -63,13 +63,13 @@ bin/control.sh stop all ...@@ -63,13 +63,13 @@ bin/control.sh stop all
63 63
64 ### 2.5 重启 64 ### 2.5 重启
65 - 重启后端服务,适用于只更新了授权文件 65 - 重启后端服务,适用于只更新了授权文件
66 ``` 66 ```
67 bin/control.sh restart backend 67 bin/control.sh restart backend
68 ``` 68 ```
69 - 重启所有,适用于更新了repo文件夹 69 - 重启所有,适用于更新了repo文件夹
70 ``` 70 ```
71 bin/control.sh restart all 71 bin/control.sh restart all
72 ``` 72 ```
73 73
74 ### 2.6 日志查看 74 ### 2.6 日志查看
75 ``` 75 ```
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!