在RedHatEnterpriseServer 6.1下安装mongodb(一)
来源:互联网 发布:交换机ge端口是什么 编辑:程序博客网 时间:2024/05/17 08:47
操作系统信息如下:
LSB Version: :core-4.0-ia32:core-4.0-noarch:graphics-4.0-ia32:graphics-4.0-noarch:printing-4.0-ia32:printing-4.0-noarch
Distributor ID: RedHatEnterpriseServerDescription: Red Hat Enterprise Linux Server release 6.1 (Santiago)
Release: 6.1
Codename: Santiago
首先下载安装程序
wget http://fastdl.mongodb.org/linux/mongodb-linux-i686-2.4.9.tgz
然后解压到当前目录:
tar zxvf mongodb-linux-i686-2.4.9.tgz
[test@rh6t133 opensource]$ ls
mongodb-linux-i686-2.4.9 mongodb-linux-i686-2.4.9.tgz
[test@rh6t133 opensource]$ cd mongodb-linux-i686-2.4.9
[test@rh6t133 mongodb-linux-i686-2.4.9]$ ls
bin GNU-AGPL-3.0 README THIRD-PARTY-NOTICES
[test@rh6t133 mongodb-linux-i686-2.4.9]$ ll
total 64
drwxrwxr-x 2 test test 4096 Feb 25 17:27 bin
-rw------- 1 test test 34520 Mar 8 2013 GNU-AGPL-3.0
-rw------- 1 test test 1359 Mar 8 2013 README
-rw------- 1 test test 18436 Mar 8 2013 THIRD-PARTY-NOTICES
[test@rh6t133 mongodb-linux-i686-2.4.9]$ cd bin/
[test@rh6t133 bin]$ ls
bsondump mongo mongod mongodump mongoexport mongofiles mongoimport mongooplog mongoperf mongorestore mongos mongosniff mongostat mongotop
在上一级目录下建立存放数据的目录
mkdir -p ../data/db
启动mongodb进程:
./mongod --dbpath=../data/db/ --rest
输出日志最后几行如下:
Tue Feb 25 17:48:27.544 [initandlisten] allocator: system
Tue Feb 25 17:48:27.544 [initandlisten] options: { dbpath: "../data/db/", rest: true }
Tue Feb 25 17:48:27.589 [initandlisten] waiting for connections on port 27017
Tue Feb 25 17:48:27.589 [websvr] admin web console waiting for connections on port 28017
在浏览器中输入http://ip:28017/即可访问mongodb的web管理界面。
- 在RedHatEnterpriseServer 6.1下安装mongodb(一)
- MongoDB(一)在CentOS7下安装和运行MongoDB
- mongodb学习(一):centos下安装mongodb
- 在Linux下安装MongoDB
- 在Linux下安装mongodb
- 在ubuntu下安装mongoDB
- MongoDB在Linux下安装
- 在 Win8 下安装 MongoDB
- Mongodb 在windwos下安装
- 在centos下安装mongodb
- 在ubuntu下安装mongodb
- 在Windows下安装MongoDB
- 在Ubuntu下安装mongodb
- 在linux下安装MongoDB
- Linux下MongoDB安装和配置详解(一)
- Linux下mongodb(一):安装与使用
- Mongodb在Ubuntu下的安装配置(单机)
- mongoDb学习整理(一)--Mongodb安装
- tomcat 安全设置
- 编译原理 消除左递归
- 递归算法例子
- 编辑文章 - 博客频道 - CSDN.NET
- Makefile经典教程(掌握这些足够)
- 在RedHatEnterpriseServer 6.1下安装mongodb(一)
- hdu 1241 搜索!!!
- mysql实现高效分页
- Tweened animations 动画原理简单分析
- ffmpeg所有发布版本下载地址
- java.sql.SQLException: Before start of result set解决方法
- dpkg
- 未来职业:数据科学家
- oracle 性能优化建议小结