Chinaunix首页 | 论坛 | 博客
  • 博客访问: 23348
  • 博文数量: 16
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 150
  • 用 户 组: 普通用户
  • 注册时间: 2015-07-11 16:41
个人简介

运维工程师+DBA

文章分类

全部博文(16)

文章存档

2015年(16)

我的朋友

发布时间:2015-07-14 14:37:31

[root@localhost ~]# bin/mongo &nbsp; &nbsp; #连接mongo,默认为本机<br />MongoDB shell version: 2.6.10<br />connecting to: test<br />&gt; show dbs; &nbsp; #查看数据库<br />admin &nbsp;(empty)<br />local &nbsp;0.078GB<br />&gt; use local; #切换到local数据库<br />switched to db local<br />&gt; .........【阅读全文】

阅读(670) | 评论(0) | 转发(0)

发布时间:2015-07-13 12:36:23

一、编译安装MongoDB<br />1.下载mongodb二进制文件<br />#wget https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-2.6.10.tgz<br />2.解压<br />#tar zvxf mongodb-linux-x86_64-2.6.10.tgz<br />3.创建日志目录和数据目录<br />mkdir /data/mongo/logs /data/mongo/data<br />4.启动mongodb<br />#cd mongo.........【阅读全文】

阅读(1903) | 评论(0) | 转发(0)
给主人留下些什么吧!~~
留言热议
请登录后留言。

登录 注册