当前位置:网站首页>寶塔的安裝和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
忘記密碼:
边栏推荐
- 硬件工程师的真实前途我说出来可能你们不信
- Vs All comments and uncomments
- Several silly built-in functions about relative path / absolute path operation in CAPL script
- 五月集训总结——来自阿光
- [Chongqing Guangdong education] reference materials for nine lectures on the essence of Marxist Philosophy in Wuhan University
- MapReduce instance (V): secondary sorting
- 在CANoe中通過Panel面板控制Test Module 運行(初級)
- MapReduce instance (IX): reduce end join
- MapReduce instance (IV): natural sorting
- Summary of May training - from a Guang
猜你喜欢

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

Cap theory

If a university wants to choose to study automation, what books can it read in advance?

Summary of May training - from a Guang

MapReduce instance (VII): single table join

Release of the sample chapter of "uncover the secrets of asp.net core 6 framework" [200 pages /5 chapters]

嵌入式开发中的防御性C语言编程
![《ASP.NET Core 6框架揭秘》样章发布[200页/5章]](/img/4f/5688c391dd19129d912a3557732047.jpg)
《ASP.NET Core 6框架揭秘》样章发布[200页/5章]

CAPL 脚本打印函数 write ,writeEx ,writeLineEx ,writeToLog ,writeToLogEx ,writeDbgLevel 你真的分的清楚什么情况下用哪个吗?

Regular expressions are actually very simple
随机推荐
六月刷题02——字符串
Nc17 longest palindrome substring
Counter attack of noodles: redis asked 52 questions in a series, with detailed pictures and pictures. Now the interview is stable
Contest3145 - the 37th game of 2021 freshman individual training match_ B: Password
CAPL 脚本对.ini 配置文件的高阶操作
Safety notes
五月集训总结——来自阿光
五月刷题02——字符串
大学想要选择学习自动化专业,可以看什么书去提前了解?
What you have to know about network IO model
CAPL script pair High level operation of INI configuration file
Why is 51+ assembly in college SCM class? Why not come directly to STM32
Automation sequences of canoe simulation functions
[Chongqing Guangdong education] reference materials for nine lectures on the essence of Marxist Philosophy in Wuhan University
018. Valid palindromes
Cap theory
四川云教和双师模式
西南大学:胡航-关于学习行为和学习效果分析
Canoe CAPL file operation directory collection
硬件工程师的真实前途我说出来可能你们不信