当前位置:网站首页>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
边栏推荐
- Notes: the 11th and 12th generation mobile versions of Intel support the native thunderbolt4 interface, but the desktop version does not
- 扩展-Hooks
- Eigen(3):error: ‘Eigen’ has not been declared
- Complete diagram / Euler loop
- fileinput. js php,fileinput
- Codeforces Global Round 21A~D
- MHA高可用配合及故障切换
- Oracle11g database import and export method tutorial [easy to understand]
- Knowledge about adsorption
- One article of the quantification framework backtrader read observer
猜你喜欢

'教练,我想打篮球!' —— 给做系统的同学们准备的 AI 学习系列小册

From Celsius to the three arrows: encrypting the domino of the ten billion giants, and drying up the epic liquidity

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

Sword finger offer 06.24.35 Linked list

Electron

在云服务器中云磁盘如何挂载

Gartner 2022 Top Strategic Technology Trends Report

登录认证服务

年薪50万是一条线,年薪100万又是一条线…...

How to personalize VIM editor format (DIY)
随机推荐
[hnoi2010] flying sheep
Pycharm远程连接服务器来跑代码
Knowledge about adsorption
Combat readiness mathematical modeling 32 correlation analysis 2
Server create virtual environment run code
H5关闭当前页面,包括微信浏览器(附源码)
Common evaluation indexes of classification model -- confusion matrix and ROC curve
人的顶级能量从哪里获取?
Never use redis expired monitoring to implement scheduled tasks!
MySQL master-slave replication and read-write separation
这才是优美的文件系统挂载方式,亲测有效
Knowledge about the determination coefficient R2 and the relationship with the correlation coefficient
Oracle11g database import and export method tutorial [easy to understand]
A solution to the problem that the display of newff function in neural network cannot be converted from double to struct
Error when redis is started: could not create server TCP listening socket *: 6379: bind: address already in use - solution
GDAL grid data types and their type codes
Why is there always a space (63 or 2048 sectors) in front of the first partition when partitioning a disk
vmware部分设置
国信证券的排名如何?办理股票开户安全吗?
数学建模经验分享:国赛美赛对比/选题参考/常用技巧