mongodb相关

安装及基本概念参见  菜鸟教程 http://www.runoob.com/mongodb/mongodb-intro.html

以守护进程的方式启动

mongod-3.4.2 --dbpath /data/h5show/ --port 27067 --fork --syslog

查看进程 ps -ef | grep mongo

使用kill PID -2来关闭mongodb服务器(不要使用-9参数,会导致数据库文件损坏)

 

mongo 命令行 登录数据库

--port --host  指定端口和主机

 

官方文档

https://docs.mongodb.com/manual/tutorial/access-mongo-shell-help/

 

mongodb node链接mongo原始工具

https://github.com/mongodb/node-mongodb-native

 

mongoose node链接mongo的库

http://mongoosejs.com/docs/guide.html

posted @ 2018-01-18 16:46  杨博客  阅读(108)  评论(0编辑  收藏  举报