当前位置:网站首页>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.sh
Wait 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 = true
processes = 1
threads = 2
chdir = /www/wwwroot/translate
wsgi-file= /www/wwwroot/translate/run.py
callable = app
socket = 127.0.0.1:5000
logto = /www/wwwroot/translate/logs/error.log
chmod-socket = 660
vacuum = true
master = true
uid=root
gid=root
max-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
边栏推荐
猜你喜欢
Jianzhi offer 43.47.46.48 dynamic planning (medium)
备战数学建模32-相关性分析2
Knowledge about the determination coefficient R2 and the relationship with the correlation coefficient
备战数学建模30-回归分析2
Sword finger offer 21.57.58 I Double pointer (simple)
vmware部分设置
How to personalize VIM editor format (DIY)
Codeforces Global Round 21A~D
Relevant knowledge of information entropy
赠书 | 《认知控制》:我们的大脑如何完成任务?
随机推荐
Two dimensional DFS
Why is there always a space (63 or 2048 sectors) in front of the first partition when partitioning a disk
PostGIS create spatial database
1075 pat judge (25 points)
C language | file operation and error prone points
9 regulations and 6 prohibitions! The Ministry of education and the emergency management department jointly issued the nine provisions on fire safety management of off campus training institutions
人的顶级能量从哪里获取?
方程推导:二阶有源带通滤波器设计!(下载:教程+原理图+视频+代码)
One article of the quantification framework backtrader read observer
《三体》摘录
Sword finger offer 21.57.58 I Double pointer (simple)
A remove the underline from the label
K gold Chef (two conditions, two points and difference)
wptx64能卸载吗_win10自带的软件哪些可以卸载
Sword finger offer 06.24.35 Linked list
ArcGIS secondary development -- arcpy batch automatic map publishing service
vmware部分设置
D - Face Produces Unhappiness
Error when redis is started: could not create server TCP listening socket *: 6379: bind: address already in use - solution
Obtain information about hard disk and volume or partition (capacity, ID, volume label name, etc.)