Comments (20)
@99memory 跟ubuntu大同小异吧,没太大区别呀~
from blogin.
from blogin.
@99memory 可以贴一下错误详情
from blogin.
from blogin.
@99memory 可以的
from blogin.
from blogin.
@99memory 你到github上回复吧,你邮件回复的看不清楚。
from blogin.
@99memory 应该不是循环导入错误,应该是有些包没有安装。
from blogin.
#Q1error: command 'gcc' failed with exit status 1
psutil/_psutil_common.c:9:20: fatal error: Python.h: No such file or directory #include <Python.h> ^ compilation terminated. error: command 'gcc' failed with exit status 1
#Q2 Error: No such command 'initdb'.
` * Tip: There are .env or .flaskenv files present. Do "pip install python-dotenv" to use them.
Usage: flask [OPTIONS] COMMAND [ARGS]...
Try 'flask --help' for help.
Error: No such command 'initdb'.
- Tip: There are .env or .flaskenv files present. Do "pip install python-dotenv" to use them.
Usage: flask [OPTIONS] COMMAND [ARGS]...
Try 'flask --help' for help.`
#Q3Error: No such command 'admin'.
`* Tip: There are .env or .flaskenv files present. Do "pip install python-dotenv" to use them.
- Environment: production
WARNING: This is a development server. Do not use it in a production deployment.
Use a production WSGI server instead. - Debug mode: off
Usage: flask run [OPTIONS]`
#Q4 Error: While importing "wsgi", an ImportError was raised:
Traceback (most recent call last): File "/www/wwwroot/Blogin-master/venv/lib64/python3.6/site-packages/flask/cli.py", line 240, in locate_app __import__(module_name) File "/www/wwwroot/Blogin-master/wsgi.py", line 8, in <module> from blogin import create_app File "/www/wwwroot/Blogin-master/blogin/__init__.py", line 14, in <module> from blogin.extension import db, bootstrap, moment, ckeditor, migrate, login_manager, share, avatar, mail, whooshee, \ File "/www/wwwroot/Blogin-master/blogin/extension.py", line 22, in <module> import redis ModuleNotFoundError: No module named 'redis'
from blogin.
@99memory pip install redis python-dotenv
from blogin.
这个我安装后还是会出现一样的错误,然后又根据网上查阅的资料:
提示使用
yum install python-devel.x86_64
和
pip install psutil
来进行安装
之后仍然是上面的错误
这是使用yum install python-devel的问题
from blogin.
@99memory yum install python3-devel,需要安装Python3的,这博客系统是依赖Python3。
from blogin.
@weijiang1994
好滴,我发现这个问题啦,谢谢博主。还有就是我想请问下:
##更改项目端口号的是在这里更改吗?
(注:这个是文件app.py里面的内容)
更改后我在腾讯云centos上运行的时候发现还是在**:5000端口号;**
from blogin.
不过显然这个host和port是打不开的,并不能运行。所以就想看看是不是我的端口号和地址错了
from blogin.
@99memory 你这样肯定无法访问的,第一,127是本地地址要用0.0.0.0去启动才可以访问,只能服务器本地访问,第二,5000端口应该是被防火墙禁用了,需要开启,同时在安全策略上配置一下5000端口的出入找规则。
from blogin.
5000端口在腾讯云还有宝塔面板5000端口都已开放
我参照之前部署的一个flask项目的过程部署的,有些还不太明白,当时项目是通过:
app.run(host="0.0.0.0",port=8090)
的方式指定端口号和地址的。
博主这个博客系统比较复杂,有些地方我还没有看懂,这个是
端口和0.0.0.0的指定是在我前面提到的这个里面吗?
from blogin.
5000端口在腾讯云还有宝塔面板5000端口都已开放
我参照之前部署的一个flask项目的过程部署的,有些还不太明白,当时项目是通过:
app.run(host="0.0.0.0",port=8090)
的方式指定端口号和地址的。 博主这个博客系统比较复杂,有些地方我还没有看懂,这个是 端口和0.0.0.0的指定是在我前面提到的这个里面吗?
你是怎么运行的?直接flask run --host 0.0.0.0 就可以了
from blogin.
我这个本地的话是在pycharm上开发的flask项目,它里面有flask的运行配置。不是通过命令行运行的。
腾讯云服务器中的项目是通过集成工具:python项目管理器进行部署的。
from blogin.
我这个本地的话是在pycharm上开发的flask项目,它里面有flask的运行配置。不是通过命令行运行的。 腾讯云服务器中的项目是通过集成工具:python项目管理器进行部署的。
没用过宝塔不太清楚怎么修改😂
from blogin.
from blogin.
Related Issues (20)
- 数据库死锁 HOT 3
- UnboundLocalError: local variable 'results' referenced before assignment HOT 2
- 我打算开发一个活动栏目。 HOT 2
- 请问如何部署到服务器? HOT 3
- jinja2.exceptions.TemplateNotFound: main/index.html HOT 16
- 博客继续阅读 按钮 HOT 4
- 部署到AWS ec2 ubuntu 上出现了问题
- blueprint/front/blog.py", line 404, in load_one return jsonify({'one': one.content}) AttributeError: 'NoneType' object has no attribute 'content'
- 相应文件缺失? HOT 1
- 请问怎么解决configparser.NoSectionError: No section: 'baidu' HOT 2
- 大佬,请问这是什么原因啊 HOT 8
- 个人博客云端部署问题 HOT 2
- AttributeError: 'Babel' object has no attribute 'localeselector' HOT 6
- 进首页显示404 HOT 13
- 请问FileNotFoundError: [Errno 2] No such file or directory: 'E:\\_Study_Record\\git_files\\m_blog/history/e29c91a7c65dfdd2b5bff4294f4a5138.txt'怎么解决啊 HOT 2
- 博客地址无法访问了 HOT 6
- 后台 博客编辑栏 操作按钮无法点击 HOT 10
- avatar文件路径的问题 HOT 1
- 初始化数据库命令失败 HOT 13
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from blogin.