Skip to content
This repository has been archived by the owner on Jul 17, 2019. It is now read-only.

ubuntu中部署后如何导入数据库? #15

Open
mtgamew opened this issue Aug 12, 2016 · 4 comments
Open

ubuntu中部署后如何导入数据库? #15

mtgamew opened this issue Aug 12, 2016 · 4 comments

Comments

@mtgamew
Copy link

mtgamew commented Aug 12, 2016

No description provided.

@mtgamew
Copy link
Author

mtgamew commented Aug 12, 2016

请问下完整版虚拟机root账户密码是什么啊?

@hanc00l
Copy link
Owner

hanc00l commented Aug 12, 2016

虚拟机只有一个用户hancool,密码是qwe123,root没有设置密码,要启用root,请sudo passwd root。

数据分为两部份:一部份是mongodb的数据,可以通过mongodump和mongorestore进行导出和导入;二是离线的html文档和图片,将虚拟机的flask下的static目录复制到你的部署机器上。

数据部署完后,建议启用elasticsearch,将mongodb数据同步到elasticsearch后,全文搜索速度可以达到毫秒级。具体可以参见我的文档。

@mtgamew
Copy link
Author

mtgamew commented Aug 13, 2016

好的 我试试 谢谢~!

@grt1st
Copy link

grt1st commented Sep 4, 2016

32位mango数据库支持最大为2g,虚拟机为64位,数据库文件也将近6g,建议大家搭建在64位机器上

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

No branches or pull requests

3 participants