当前位置:网站首页>宝塔的安装和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
忘记密码:
边栏推荐
- Automation sequences of canoe simulation functions
- Target detection -- yolov2 paper intensive reading
- tn-c为何不可用2p断路器?
- How does the single chip microcomputer execute the main function from power on reset?
- [NLP] bert4vec: a sentence vector generation tool based on pre training
- Mapreduce实例(六):倒排索引
- CAPL script printing functions write, writeex, writelineex, writetolog, writetologex, writedbglevel do you really know which one to use under what circumstances?
- What are the models of data modeling
- Keep these four requirements in mind when learning single chip microcomputer with zero foundation and avoid detours
- History of object recognition
猜你喜欢
![[deep learning] semantic segmentation: paper reading: (CVPR 2022) mpvit (cnn+transformer): multipath visual transformer for dense prediction](/img/f1/6f22f00843072fa4ad83dc0ef2fad8.png)
[deep learning] semantic segmentation: paper reading: (CVPR 2022) mpvit (cnn+transformer): multipath visual transformer for dense prediction

单片机实现模块化编程:思维+实例+系统教程(实用程度令人发指)
![[deep learning] semantic segmentation: paper reading: (2021-12) mask2former](/img/dd/fe2bfa3563cf478afe431ac87a8cb7.png)
[deep learning] semantic segmentation: paper reading: (2021-12) mask2former
![[CV] target detection: derivation of common terms and map evaluation indicators](/img/e8/04cc8336223c0ab2dea5638def88df.jpg)
[CV] target detection: derivation of common terms and map evaluation indicators

【深度学习】语义分割:论文阅读(NeurIPS 2021)MaskFormer: per-pixel classification is not all you need

CANoe的数据回放(Replay Block),还是要结合CAPL脚本才能说的明白

嵌入式開發中的防禦性C語言編程

51单片机进修的一些感悟

112 pages of mathematical knowledge sorting! Machine learning - a review of fundamentals of mathematics pptx

【深度學習】語義分割-源代碼匯總
随机推荐
C杂讲 浅拷贝 与 深拷贝
嵌入式中的合作开发--函数指针
【深度学习】语义分割:论文阅读:(2021-12)Mask2Former
Vs All comments and uncomments
A wave of open source notebooks is coming
Day 5 of MySQL learning
Why is 51+ assembly in college SCM class? Why not come directly to STM32
CANoe的数据回放(Replay Block),还是要结合CAPL脚本才能说的明白
Inject common SQL statement collation
Several ways of MySQL database optimization (pen interview must ask)
为什么大学单片机课上51+汇编,为什么不直接来STM32
June brush question 01 - array
How can I take a shortcut to learn C language in college
CAPL 脚本对.ini 配置文件的高阶操作
五月刷题26——并查集
C杂讲 文件 续讲
Counter attack of noodles: redis asked 52 questions in a series, with detailed pictures and pictures. Now the interview is stable
Target detection -- yolov2 paper intensive reading
The replay block of canoe still needs to be combined with CAPL script to make it clear
CANoe不能自动识别串口号?那就封装个DLL让它必须行