当前位置:网站首页>宝塔的安装和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
忘记密码:
边栏推荐
- May brush question 03 - sorting
- 美新泽西州州长签署七项提高枪支安全的法案
- PR 2021 quick start tutorial, first understanding the Premiere Pro working interface
- Some thoughts on the study of 51 single chip microcomputer
- Hero League rotation map automatic rotation
- Redis distributed lock implementation redison 15 questions
- Scoped in webrtc_ refptr
- Some thoughts on the study of 51 single chip microcomputer
- 美疾控中心:美国李斯特菌疫情暴发与冰激凌产品有关
- CAPL script pair High level operation of INI configuration file
猜你喜欢

CANoe下载地址以及CAN Demo 16的下载与激活,并附录所有CANoe软件版本

Oom happened. Do you know the reason and how to solve it?

How can I take a shortcut to learn C language in college

MapReduce instance (VII): single table join

发生OOM了,你知道是什么原因吗,又该怎么解决呢?

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

DCDC power ripple test

C杂讲 文件 初讲

Embedded development is much more difficult than MCU? Talk about SCM and embedded development and design experience

History of object recognition
随机推荐
Upload vulnerability
Nc17 longest palindrome substring
Keep these four requirements in mind when learning single chip microcomputer with zero foundation and avoid detours
[deep learning] semantic segmentation: thesis reading (neurips 2021) maskformer: per pixel classification is not all you need
[Chongqing Guangdong education] reference materials for nine lectures on the essence of Marxist Philosophy in Wuhan University
发生OOM了,你知道是什么原因吗,又该怎么解决呢?
Yarn organizational structure
C杂讲 文件 初讲
Configure system environment variables through bat script
Vs All comments and uncomments
Popularization of security knowledge - twelve moves to protect mobile phones from network attacks
零基础学习单片机切记这四点要求,少走弯路
Compilation of libwebsocket
Segmentation sémantique de l'apprentissage profond - résumé du code source
Tianmu MVC audit I
C杂讲 浅拷贝 与 深拷贝
May brush question 02 - string
在CANoe中通过Panel面板控制Test Module 运行(初级)
竞赛vscode配置指南
华南技术栈CNN+Bilstm+Attention