当前位置:网站首页>Problems encountered in project deployment - production environment
Problems encountered in project deployment - production environment
2022-06-26 03:12:00 【Panbohhhhh】
Statement :
Personal learning work , No legal liability . Common progress .
problem 1:
Production environment can only be used rz Upload and sz Upload .
Because I install the algorithm environment on the offline server , It involves installing the algorithm installation package .
First step , Go to pypi above , Search for the installation package you want .
Pypi:PyPI · The Python Package Index
The second step , Choose the version

There are two ways to download
One is .whl, The other is tar.gz

Be careful , I download it here , There is a problem .
tar.gz file , Download the suffix as tar
The problem is coming. .
.whl Use rz After the upload , The file will be corrupted , The specific tips are as follows :
Use
pip install xxxxxx.whlReport errors :
It was later used MD5 Check the integrity of documents , Sure enough, something went wrong

md5sum yourfileGet a string , Compare the , It can be concluded that the file is damaged .
Use the quick upload method
Make use of ascll Remove the code uploading method
rz -be
# An error is reported when uploading the installation package , Do not use ascll Code upload Quick selection , If the selection time here is too long , Will report a mistake .
All right .
problem 2.
Different routing interfaces from the same port , There will be conflict problems
There is an interface that reports for no reason 404,
About the following :
@app.route("/ai/testone", methods=["POST"])
def index_post001():
pass
@app.route("/ai/testtwo", methods=["POST"])
def index_post002():
passNormally speaking , Same port , such as yourip:5001/port No problem .
I have this scene here .
Interface alone 1 Or interface 2 Fine ,
But the two together , One of them will die .
It has been analyzed for tenthousand years .
Conclusion :
Same server, same port , route , There will be problems .
modify :
@app.route("/aiV1/useforone", methods=["POST"])
def index_post001():
pass
@app.route("/aiV2/getfortwo", methods=["POST"])
def index_post002():
pass
All right
边栏推荐
猜你喜欢
随机推荐
Fresh graduates talk about their graduation stories
Oracle connectivity issues and Solutions
【解决】联想拯救者vmware启动虚拟机蓝屏重启问题
如何提词条
MySQL根据查询的数据更新记录
数据库的授权
Utonmos adheres to the principle of "collection and copyright" to help the high-quality development of traditional culture
解析社交机器人中的技术变革
Camtasia 2022全新版超清錄制電腦視頻
OpenAPI 3.0 规范-食用指南
Multi surveyor Gongshu campus Xiao sir_ Page error in Jenkins
DF reports an error stale file handle
How to adjust face input size
如何在 ggplot2 中向绘图中添加表格
[QT] custom control - air quality dashboard
R 语言降维的 PCA 与自动编码器
How to default that an app is not restricted by traffic
Classic quotations from "human nature you must not know"
喜讯 | 祝贺Apache Linkis(incubating) 社区新增5位Committer
Survival analysis based on ovarian data set









