diff --git a/doc/Serving_Configure_CN.md b/doc/Serving_Configure_CN.md index 312b052bd1ffe38e6c9f9af40cee21c0519a0a65..011fa84a024f195ac4063c6a45ece823c31ae0f4 100644 --- a/doc/Serving_Configure_CN.md +++ b/doc/Serving_Configure_CN.md @@ -59,7 +59,7 @@ fetch_var { ## C++ Serving -### 1.快速启动 +### 1.快速启动与关闭 可以通过配置模型及端口号快速启动服务,启动命令如下: @@ -107,6 +107,11 @@ python3 -m paddle_serving_server.serve --model serving_model --thread 10 --port ```BASH python3 -m paddle_serving_server.serve --model serving_model_1 serving_model_2 --thread 10 --port 9292 ``` +#### 当您想要关闭Serving服务时(在Serving启动目录或环境变量SERVING_HOME路径下,执行以下命令). +```BASH +python3 -m paddle_serving_server.serve stop +``` +stop参数发送SIGINT至C++ Serving,若改成kill则发送SIGKILL信号至C++ Serving ### 2.自定义配置启动 @@ -312,7 +317,20 @@ fetch_var { ``` ## Python Pipeline +### 快速启动与关闭 +Python Pipeline启动命令如下: + +```BASH +python3 web_service.py +``` + +当您想要关闭Serving服务时(在Pipeline启动目录下或环境变量SERVING_HOME路径下,执行以下命令): +```BASH +python3 -m paddle_serving_server.serve stop +``` +stop参数发送SIGINT至Pipeline Serving,若改成kill则发送SIGKILL信号至Pipeline Serving +### 配置文件 Python Pipeline提供了用户友好的多模型组合服务编程框架,适用于多模型组合应用的场景。 其配置文件为YAML格式,一般默认为config.yaml。示例如下: ```YAML diff --git a/doc/Serving_Configure_EN.md b/doc/Serving_Configure_EN.md index 7fe011449a1935fd6fa43fe2fea8d9008b9fab35..4e19971fd4a7c0f737265fdb064679d66fc9e64f 100644 --- a/doc/Serving_Configure_EN.md +++ b/doc/Serving_Configure_EN.md @@ -107,7 +107,7 @@ python3 -m paddle_serving_server.serve --model serving_model --thread 10 --port ```BASH python3 -m paddle_serving_server.serve --model serving_model_1 serving_model_2 --thread 10 --port 9292 ``` -#### Stop Serving. +#### Stop Serving(execute the following command in the directory where start serving or the path which environment variable SERVING_HOME set). ```BASH python3 -m paddle_serving_server.serve stop ``` @@ -325,9 +325,9 @@ fetch_var { Example starting Pipeline Serving: ```BASH -python3 -m paddle_serving_server.serve --model serving_model --port 9393 +python3 web_service.py ``` -### Stop Serving. +### Stop Serving(execute the following command in the directory where start Pipeline serving or the path which environment variable SERVING_HOME set). ```BASH python3 -m paddle_serving_server.serve stop ```