CentOS 5下安装MongoDB 1.7.5

首页 → Linux教程

背景:

阅读新闻

CentOS 5下安装MongoDB 1.7.5

[日期:2011-03-02]来源:Linux社区作者:niitlcj[字体:]

一,使用官方编译好的BIN来执行

$ cd /usr/local/src$ wget

# mkdir -p /data/db/ # chown hoge /data/db/ # ln -s /usr/local/src/mongodb-linux-x86_64-1.7.5/ /opt/mongobin

// 起动 # /opt/mongobin/bin/mongod &

// 测试 $ /opt/mongobin/bin/mongo> db.foo.save( { a : 1 } ) > db.foo.find()

二,使用源代码编译

$ wget $ tar zxvf xxx.tar.gz$ cd xxx$ scons all # scons –prefix=/opt/mongosrc install

需要安装的依赖库

boost_1_42_0js-1.7.0pcre-7.4scons-2.1.0

scons Use scons to build MongoDB and related utilities and libraries. See the SConstruct file for details.Run scons –help to see all options.

TargetsRun scons <target>.scons .scons allscons mongod build mongodscons mongo build the shell scons shell generate (just) the shell .cpp files (from .js files)scons mongoclient build just the client library (builds libmongoclient.a on unix)scons test build the unit test binary test

Options–d debug build–dd debug build with _DEBUG defined (extra asserts etc.)–release–32 force 32 bit–64 force 64 bit–clean

Troubleshootingscons generates a config.log file. See this file when there are problems building.

0

Sysbench 0.4.12安装以及测试

CentOS 下安装7-Zip 以及常用的解压命令

相关资讯 CentOS

图片资讯

本文评论  查看全部评论 (0)

评论声明

最新资讯

本周热门

Linux公社简介 – 广告服务 – 网站地图 – 帮助信息 – 联系我们本站(LinuxIDC)所刊载文章不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。Copyright © 2006-2011 Linux公社 All rights reserved 浙ICP备06018118号

,要纠正别人之前,先反省自己有没有犯错

CentOS 5下安装MongoDB 1.7.5

相关文章:

你感兴趣的文章:

标签云: