当前位置:网站首页>寶塔的安裝和flask項目部署
寶塔的安裝和flask項目部署
2022-07-06 09:55: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
忘記密碼:
边栏推荐
- Safety notes
- 竞赛vscode配置指南
- 在CANoe中通过Panel面板控制Test Module 运行(高级)
- MapReduce instance (IX): reduce end join
- Processes of libuv
- Popularization of security knowledge - twelve moves to protect mobile phones from network attacks
- Embedded development is much more difficult than MCU? Talk about SCM and embedded development and design experience
- [one click] it only takes 30s to build a blog with one click - QT graphical tool
- Single chip microcomputer realizes modular programming: Thinking + example + system tutorial (the degree of practicality is appalling)
- If a university wants to choose to study automation, what books can it read in advance?
猜你喜欢
![[deep learning] semantic segmentation - source code summary](/img/2c/50eaef4a11fe2ee9c53a5cebdd69ce.png)
[deep learning] semantic segmentation - source code summary

Learning SCM is of great help to society

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

机械工程师和电气工程师方向哪个前景比较好?

大学想要选择学习自动化专业,可以看什么书去提前了解?

Defensive C language programming in embedded development

MapReduce instance (VIII): Map end join

C杂讲 文件 续讲

五月集训总结——来自阿光

History of object recognition
随机推荐
June brush question 01 - array
Programmation défensive en langage C dans le développement intégré
Contest3145 - the 37th game of 2021 freshman individual training match_ C: Tour guide
Carolyn Rosé博士的社交互通演讲记录
听哥一句劝,按这套嵌入式的课程内容和课程体系去学习
[one click] it only takes 30s to build a blog with one click - QT graphical tool
112 pages of mathematical knowledge sorting! Machine learning - a review of fundamentals of mathematics pptx
Listen to my advice and learn according to this embedded curriculum content and curriculum system
Random notes
flask运维脚本(长时间运行)
单片机如何从上电复位执行到main函数?
Upload vulnerability
发生OOM了,你知道是什么原因吗,又该怎么解决呢?
Tianmu MVC audit I
Canoe CAPL file operation directory collection
华南技术栈CNN+Bilstm+Attention
手把手教您怎么编写第一个单片机程序
CAPL脚本中关于相对路径/绝对路径操作的几个傻傻分不清的内置函数
MapReduce instance (x): chainmapreduce
Defensive C language programming in embedded development