Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

初始化db出现问题 #2

Open
raingolee opened this issue Jun 3, 2016 · 1 comment
Open

初始化db出现问题 #2

raingolee opened this issue Jun 3, 2016 · 1 comment

Comments

@raingolee
Copy link

Traceback (most recent call last):
File "manage.py", line 5, in
from app import app
File "/Users/raingolee/github/flask_pure/app/init.py", line 15, in
db = MongoEngine(app) #实例化数据库
File "/Users/raingolee/github/flask_pure/pure/lib/python3.5/site-packages/flask_mongoengine/init.py", line 33, in init
self.init_app(app)
File "/Users/raingolee/github/flask_pure/pure/lib/python3.5/site-packages/flask_mongoengine/init.py", line 66, in init_app
self.connection = mongoengine.connect(**conn_settings)
File "/Users/raingolee/github/flask_pure/pure/lib/python3.5/site-packages/mongoengine/connection.py", line 164, in connect
return get_connection(alias)
File "/Users/raingolee/github/flask_pure/pure/lib/python3.5/site-packages/mongoengine/connection.py", line 126, in get_connection
raise ConnectionError("Cannot connect to database %s :\n%s" % (alias, e))
mongoengine.connection.ConnectionError: Cannot connect to database default :
[Errno 61] Connection refused


你好,是不是要启动Mongod 然后修改某个配置才能启动?

@Zhang21
Copy link

Zhang21 commented Dec 2, 2016

进不了/home 目录

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants