设为首页 加入收藏

TOP

mongo install on linux(centos\redhat\)
2014-11-23 22:37:38 来源: 作者: 【 】 浏览:8
Tags:mongo install linux centosredhat
mongodb yum source install
1:create mongodb.repo
cd /etc/yum.repos.d/
If you are running a 64-bit system, use the following configuration:
[mongodb]
name=MongoDB Repository
baseurl=http://downloads-distro.mongodb.org/repo/redhat/os/x86_64/
gpgcheck=0
enabled=1
If you are running a 32-bit system which is not recommended
for production deployments, use the following configuration
[mongodb]
name=MongoDB Repository
baseurl=http://downloads-distro.mongodb.org/repo/redhat/os/i686/
gpgcheck=0
enabled=1
2:InstallPackages
yum install mongo-10gen mongo-10gen-server
3:start\stop service
1:service mongod start\restart\stop
2: 或是进入安装目录下的bin目录 执行 服务端 ./mongod --datapath /adkfw --port 27017 客户端 : ./mongo localhost:27017
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
分享到: 
上一篇mongoDB的学习笔记(2) 下一篇mongoDB的学习笔记

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容: