当前位置:网站首页>寶塔的安裝和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
忘記密碼:
边栏推荐
- oracle sys_ Context() function
- Why data Tiering
- C杂讲 文件 初讲
- Compilation of libwebsocket
- Cooperative development in embedded -- function pointer
- Delayed note learning
- CANoe的数据回放(Replay Block),还是要结合CAPL脚本才能说的明白
- Vs All comments and uncomments
- Hero League rotation chart manual rotation
- Contest3145 - the 37th game of 2021 freshman individual training match_ B: Password
猜你喜欢
一大波开源小抄来袭
五月集训总结——来自阿光
Release of the sample chapter of "uncover the secrets of asp.net core 6 framework" [200 pages /5 chapters]
[NLP] bert4vec: a sentence vector generation tool based on pre training
MapReduce working mechanism
Segmentation sémantique de l'apprentissage profond - résumé du code source
Keep these four requirements in mind when learning single chip microcomputer with zero foundation and avoid detours
Some thoughts on the study of 51 single chip microcomputer
CANoe不能自动识别串口号?那就封装个DLL让它必须行
Control the operation of the test module through the panel in canoe (primary)
随机推荐
竞赛vscode配置指南
Leetcode:608 tree node
嵌入式开发中的防御性C语言编程
嵌入式开发比单片机要难很多?谈谈单片机和嵌入式开发设计经历
五月刷题01——数组
【深度學習】語義分割-源代碼匯總
学习单片机对社会的帮助是很大的
Day 5 of MySQL learning
I2C summary (single host and multi host)
【深度学习】语义分割:论文阅读:(CVPR 2022) MPViT(CNN+Transformer):用于密集预测的多路径视觉Transformer
112 pages of mathematical knowledge sorting! Machine learning - a review of fundamentals of mathematics pptx
Which is the better prospect for mechanical engineer or Electrical Engineer?
Control the operation of the test module through the panel in canoe (Advanced)
[flask] crud addition and query operation of data
Bugku web guide
Vh6501 Learning Series
Function description of shell command parser
CANoe的数据回放(Replay Block),还是要结合CAPL脚本才能说的明白
Nc17 longest palindrome substring
在CANoe中通過Panel面板控制Test Module 運行(初級)