From 91f614934fb92765ca2d4166a416ab354769320f Mon Sep 17 00:00:00 2001 From: 夜雨飘零 <yeyupiaoling@foxmail.com> Date: 星期四, 14 九月 2023 17:24:50 +0800 Subject: [PATCH] Support for multiple processes (#951) --- funasr/runtime/python/http/README.md | 19 +++++++++++++++++++ 1 files changed, 19 insertions(+), 0 deletions(-) diff --git a/funasr/runtime/python/http/README.md b/funasr/runtime/python/http/README.md index 5b3fbb3..ee37f56 100644 --- a/funasr/runtime/python/http/README.md +++ b/funasr/runtime/python/http/README.md @@ -45,3 +45,22 @@ --add_pun [add pun to result] \ --audio_path [use audio path] ``` + + +## 鏀寔澶氳繘绋� + +鏂规硶鏄惎鍔ㄥ涓猔server.py`锛岀劧鍚庨�氳繃Nginx鐨勮礋杞藉潎琛″垎鍙戣姹傦紝杈惧埌鏀寔澶氱敤鎴峰悓鏃惰繛鏁堟灉锛屽鐞嗘柟寮忓涓嬶紝榛樿鎮ㄥ凡缁忓畨瑁呬簡Nginx锛屾病瀹夎鐨勮鍙傝�僛瀹樻柟瀹夎鏁欑▼](https://nginx.org/en/linux_packages.html#Ubuntu)銆� + +閰嶇疆Nginx銆� +```shell +sudo cp -f asr_nginx.conf /etc/nginx/nginx.conf +sudo service nginx reload +``` + +鐒跺悗浣跨敤鑴氭湰鍚姩澶氫釜鏈嶅姟锛屾瘡涓湇鍔$殑绔彛鍙蜂笉涓�鏍枫�� +```shell +sudo chmod +x start_server.sh +./start_server.sh +``` + +**璇存槑锛�** 榛樿鏄�3涓繘绋嬶紝濡傛灉闇�瑕佷慨鏀癸紝棣栧厛淇敼`start_server.sh`鐨勬渶鍚庨偅閮ㄥ垎锛屽彲浠ユ坊鍔犲惎鍔ㄦ暟閲忋�傜劧鍚庝慨鏀筦asr_nginx.conf`閰嶇疆鏂囦欢鐨刞upstream backend`閮ㄥ垎锛屽鍔犳柊鍚姩鐨勬湇鍔★紝鍙互浣垮叾浠栨湇鍔″櫒鐨勬湇鍔°�� -- Gitblit v1.9.1