Bladeren bron

更新README

世祺 1 jaar geleden
bovenliggende
commit
c05a222d43
2 gewijzigde bestanden met toevoegingen van 68 en 0 verwijderingen
  1. 4 0
      .gitignore
  2. 64 0
      README.md

+ 4 - 0
.gitignore

@@ -159,3 +159,7 @@ cython_debug/
 #  option (not recommended) you can uncomment the following to ignore the entire idea folder.
 .idea/
 *.bin
+main.build/
+main.dist/
+main.onefile-build/
+

+ 64 - 0
README.md

@@ -1,3 +1,67 @@
+# llnw 环境部署
+
+## 相关资料
+
+网站   https://control.llnw.com/acontrol/#/login
+
+API explorer: https://support.limelight.com/public/explorer/llnw-api-explorer.html
+
+文档 https://support.limelight.com/public/openapi/configuration/index.html
+
+SDK https://github.com/llnw/llnw-sdk-python
+
+Python打包工具`Nuitka` https://github.com/Nuitka/Nuitka
+
+GRPC https://grpc.io/docs/languages/python/basics/
+
+## 信息
+
+**GRPC 端口:50052**
+
+**代码生成**
+
+```shell
+python3 gencode.py
+```
+
+**启动**
+
+```shell
+python3 src/main.py
+```
+
+## 编译流程
+
+### `Miniconda` 安装
+
+```shell
+#下载
+wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
+#安装
+./Miniconda3-latest-Linux-x86_64.sh
+#关闭自启动conda
+conda config --set auto_activate_base false
+#miniconda源
+conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
+conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
+conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/
+conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/bioconda/
+```
+
+### 设置环境
+
+```shell
+conda create -n llnw python=3.10 libpython-static grpcio grpcio-tools pydash requests nuitka
+conda activate llnw
+```
+
+### 编译
+
+```shell
+python3 -m nuitka --onefile src/main.py
+```
+
+
 
 # Public Limelight python SDK for Limelight Networks services