当前位置:网站首页>Deploy the flask environment using the pagoda panel
Deploy the flask environment using the pagoda panel
2022-06-26 14:37:00 【Find bug's master】
The previous deployment was compiled , Take time and trouble , This time we'll adopt a simple method , The pagoda panel is used for installation . First of all, what is the pagoda panel , Namely linux Visual management tools , So you need to install , Here's to say centos Installation of the system
One 、 Enter the following command
yum install -y wget && wget -O install.sh http://download.bt.cn/install/install_6.0.sh && sh install.shWait a few minutes , When the following screen appears, the installation is completed

among username and password It is the account number and password of the pagoda
Two 、 Copy the Internet address to the browser to open , The following screen appears , And enter the account and password to log in , If it is Tencent cloud, it needs to be released 8888 port


The following will appear after input

Select agree to enter the panel

First register the panel account


Then the pagoda panel will be installed , The next step is to build flask Environmental process
First find in the pagoda panel python Project manager , Point installation , choice 2.0 Of

Click Settings

Deploy the project after installation

It needs to be in the project requirements.txt file , For third-party warehouse , The contents are as follows

Then click OK to deploy
Configure after installation

[uwsgi]master = trueprocesses = 1threads = 2chdir = /www/wwwroot/translatewsgi-file= /www/wwwroot/translate/run.pycallable = appsocket = 127.0.0.1:5000logto = /www/wwwroot/translate/logs/error.logchmod-socket = 660vacuum = truemaster = trueuid=rootgid=rootmax-requests = 1000
When the input ip Port can be accessed , Next launch nginx, Install first



among server_names Is the intranet address ,root Is the project path

Then restart all services , At this point, you can enter ip Went directly to visit
边栏推荐
- 从Celsius到三箭:加密百亿巨头们的多米诺,史诗级流动性的枯竭
- RISC-V 芯片架构新规范
- FreeFileSync 文件夹比较与同步软件
- Flex & bison start
- MHA high availability coordination and failover
- Hard (magnetic) disk (I)
- 9項規定6個嚴禁!教育部、應急管理部聯合印發《校外培訓機構消防安全管理九項規定》
- C language | Consortium
- Sword finger offer 21.57.58 I Double pointer (simple)
- Usage of unique function
猜你喜欢

永远不要使用Redis过期监听实现定时任务!

Sword finger offer 45.61 Sort (simple)

布局管理器~登录界面的搭建实例

Relevant knowledge of information entropy

NAACL2022:(代码实践)好的视觉引导促进更好的特征提取,多模态命名实体识别(附源代码下载)...

ArcGIS batch export layer script

Sword finger offer 40.41 Sort (medium)

Combat readiness mathematical modeling 32 correlation analysis 2

STM32F1和GD32F1有什么区别?

Electron
随机推荐
备战数学建模31-数据插值与曲线拟合3
Installation tutorial about origin2019
Sword finger offer 10 Ⅰ 10Ⅱ. 63 dynamic planning (simple)
9項規定6個嚴禁!教育部、應急管理部聯合印發《校外培訓機構消防安全管理九項規定》
Oracle ASMM and AMM
A solution to the problem that the display of newff function in neural network cannot be converted from double to struct
ThreadLocal巨坑!内存泄露只是小儿科...
FreeFileSync 文件夹比较与同步软件
Sword finger offer 09.30 Stack
Difference between classification and regression
【async/await】--异步编程最终解决方案
Introduction to granular computing
备战数学建模32-相关性分析2
Chinese output of PostGIS console is garbled
C language | Consortium
Flex & bison start
永远不要使用Redis过期监听实现定时任务!
Transformers datacollatorwithpadding class
[wc2006] director of water management
Common controls and custom controls