当前位置:网站首页>宝塔的安装和flask项目部署
宝塔的安装和flask项目部署
2022-07-06 09:05:00 【东方】
部署flask
我按这种方式宝塔python项目管理器安装的时候报错,提醒我需要虚拟环境。
然后听闻远方大佬给出了解决方法
要进入虚拟环境然后在启动
在这之前你需要先 cd 命令 进入项目的目录下。
source venv/bin/activate
python app.py
和大佬的思路不谋而合,那么我猜想应该是必须要虚拟环境(来隔离包冲突)。
直接运行远方大佬给我的命令行就行了。
群里有一本flask的书籍应该也有写到。
但其实不知道为什么每过一段时间 都会有数据库错误。
重启一下再进行访问就可以了。
查了一些相关资料,应该是 数据库连接的问题。
数据库报错的话 ,每次都要进行重启服务。
安装参考
运行完指令之后:
云服务器端口放行
必须要放行 8888 端口
如需完整使用宝塔的所有功能 你还需要放行如下端口:
建防火墙
编辑防火墙规则,增加以下端口:8888,888,80,443,20,21
修改外网防火墙为新建的防火墙
安装后的使用
http://117.50.181.88:8888/74e59d27
username: l9qfim2z
password: a1ccf6f5
忘记密码:
边栏推荐
- I2C summary (single host and multi host)
- How can I take a shortcut to learn C language in college
- 四川云教和双师模式
- Function description of shell command parser
- 112 pages of mathematical knowledge sorting! Machine learning - a review of fundamentals of mathematics pptx
- 一大波開源小抄來襲
- May brush question 27 - figure
- Redis distributed lock implementation redison 15 questions
- [Yu Yue education] Wuhan University of science and technology securities investment reference
- History of object recognition
猜你喜欢

Contrôle de l'exécution du module d'essai par panneau dans Canoe (primaire)

Single chip microcomputer realizes modular programming: Thinking + example + system tutorial (the degree of practicality is appalling)

The replay block of canoe still needs to be combined with CAPL script to make it clear

【深度学习】语义分割:论文阅读:(2021-12)Mask2Former

Une grande vague d'attaques à la source ouverte

What you have to know about network IO model

Control the operation of the test module through the panel in canoe (primary)

Some thoughts on the study of 51 single chip microcomputer

tn-c为何不可用2p断路器?

Mapreduce实例(四):自然排序
随机推荐
May brush question 01 - array
Compilation of libwebsocket
Bugku web guide
What are the models of data modeling
51单片机进修的一些感悟
Processes of libuv
Safety notes
Solve the problem of too many small files
[NLP] bert4vec: a sentence vector generation tool based on pre training
VH6501学习系列文章
Inject common SQL statement collation
Listen to my advice and learn according to this embedded curriculum content and curriculum system
机械工程师和电气工程师方向哪个前景比较好?
Several ways of MySQL database optimization (pen interview must ask)
华南技术栈CNN+Bilstm+Attention
Oom happened. Do you know the reason and how to solve it?
There are software load balancing and hardware load balancing. Which one to choose?
Hero League rotation chart manual rotation
手把手教您怎么编写第一个单片机程序
面试突击62:group by 有哪些注意事项?