数据库

 首页 > 数据库 > MongoDB > CentOS系统下安装mongodb 1.7.5数据库

CentOS系统下安装mongodb 1.7.5数据库

分享到:
【字体:
导读:
         摘要:一,使用官方编译好的BIN来执行$cd/usr/local/src$wgethttp://downloads.mongodb.org/linux/mongodb-linux-x86_64-1.7.5.tgz#mkdir-p/data/db/#chownhoge/data/db/#ln-s/usr/local/src/m...

CentOS系统下安装mongodb 1.7.5数据库
一,使用官方编译好的BIN来执行
$ cd /usr/local/src
$ wget http://downloads.mongodb.org/linux/mongodb-linux-x86_64-1.7.5.tgz 
# 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 http://downloads.mongodb.org/src/mongodb-src-r1.7.5.tar.gz 
$ tar zxvf xxx.tar.gz
$ cd xxx
$ scons all # scons --prefix=/opt/mongosrc install 需要安装的依赖库
boost_1_42_0
js-1.7.0
pcre-7.4
scons-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. Targets
Run scons .
scons .
scons all
scons mongod build mongod
scons 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
Troubleshooting
scons generates a config.log file. See this file when there are problems building.
CentOS系统下安装mongodb 1.7.5数据库
分享到:
CentOS 6系统使用yum方式安装配置mongodb...
CentOS 6系统使用yum方式安装配置mongodb服务器 安装MongoDB的方法有很多种,可以源代码安装,在Centos也可以用yum源安装的方法。由于MongoDB更新得比较快,我比较喜欢用yum源安装的方法。 64位Centos下的安装步骤如下: 1、准备工作 运行yum命令查看MongoDB的包信息  [root@server110.com~]# yum info mongo-...
centos 5.7下安装 mongodb php 扩展
centos 5.7下安装 mongodb php 扩展 查看官方文档,CentOS 5.7下安装 MongoDB PHP 扩展只需要执行如下命令即可: sudo pecl install mongo 但在我的机器上,这种方法无法执行成功。出现了以下错误: pecl install mongo downloading mongo-1.2.10.tgz ... Starting to download mongo-1.2.10.tgz (86,4...
  •         php迷,一个php技术的分享社区,专属您自己的技术摘抄本、收藏夹。
  • 在这里……