Red Hat Enterprise Linux Server release 5.6 安装 MongoDB 2.6.4
1:下载
[jifeng@jifeng04 ~]$ wget http://downloads.mongodb.org/linux/mongodb-linux-x86_64-2.6.4.tgz
--2014-09-03 12:39:31-- http://downloads.mongodb.org/linux/mongodb-linux-x86_64-2.6.4.tgz
正在解析主机 downloads.mongodb.org... 54.231.10.212
Connecting to downloads.mongodb.org|54.231.10.212|:80... 已连接。
已发出 HTTP 请求,正在等待回应... 200 OK
长度:115652018 (110M) [application/x-gzip]
Saving to: `mongodb-linux-x86_64-2.6.4.tgz'100%[==============================================================>] 115,652,018 155K/s in 22m 19s 2014-09-03 13:01:51 (84.3 KB/s) - `mongodb-linux-x86_64-2.6.4.tgz' saved [115652018/115652018][jifeng@jifeng04 ~]$ ls
Desktop hadoop jdk1.7.0_45 mongodb-linux-x86_64-2.6.4.tgz
2:解压
[jifeng@jifeng04 ~]$ tar zxf mongodb-linux-x86_64-2.6.4.tgz
[jifeng@jifeng04 ~]$ ls
Desktop hadoop jdk1.7.0_45 mongodb-linux-x86_64-2.6.4 mongodb-linux-x86_64-2.6.4.tgz
3:配置环境变量
[jifeng@jifeng04 ~]$ cat .bash_profile
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:$HOME/bin
export PATH
export JAVA_HOME=$HOME/jdk1.7.0_45
export PATH=$JAVA_HOME/bin:$PATH
export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
export HADOOP_HOME=$HOME/hadoop/hadoop-1.2.1
export ANT_HOME=$HOME/apache-ant-1.9.4
export MONGODB_HOME=$HOME/mongodb-linux-x86_64-2.6.4
export PATH=$PATH:$ANT_HOME/bin:$HADOOP_HOME/bin:$MONGODB_HOME/bin
[jifeng@jifeng04 ~]$ source .bash_profile
4:验证
[jifeng@jifeng04 ~]$ mongod -version
db version v2.6.4
2014-09-03T14:20:30.547+0800 git version: 3a830be0eb92d772aa855ebb711ac91d658ee910
5:运行
创建数据目录
[jifeng@jifeng04 ~]$ cd mongodb-linux-x86_64-2.6.4
[jifeng@jifeng04 mongodb-linux-x86_64-2.6.4]$ ls
bin GNU-AGPL-3.0 README THIRD-PARTY-NOTICES
[jifeng@jifeng04 mongodb-linux-x86_64-2.6.4]$ mkdir data
启动:mongod -dbpath /home/jifeng/mongodb-linux-x86_64-2.6.4/data
<span style="font-family: Arial, Helvetica, sans-serif;">[jifeng@jifeng04 mongodb-linux-x86_64-2.6.4]$ mongod -dbpath /home/jifeng/mongodb-linux-x86_64-2.6.4/data</span>
启动后的提示
2014-09-03T14:23:17.046+0800 [initandlisten] MongoDB starting : pid=15418 port=27017 dbpath=/home/jifeng/mongodb-linux-x86_64-2.6.4/data 64-bit host=jifeng04
2014-09-03T14:23:17.046+0800 [initandlisten] db version v2.6.4
2014-09-03T14:23:17.047+0800 [initandlisten] git version: 3a830be0eb92d772aa855ebb711ac91d658ee910
2014-09-03T14:23:17.047+0800 [initandlisten] build info: Linux build7.nj1.10gen.cc 2.6.32-431.3.1.el6.x86_64 #1 SMP Fri Jan 3 21:39:27 UTC 2014 x86_64 BOOST_LIB_VERSION=1_49
2014-09-03T14:23:17.047+0800 [initandlisten] allocator: tcmalloc
2014-09-03T14:23:17.048+0800 [initandlisten] options: { storage: { dbPath: "/home/jifeng/mongodb-linux-x86_64-2.6.4/data" } }
2014-09-03T14:23:17.052+0800 [initandlisten] journal dir=/home/jifeng/mongodb-linux-x86_64-2.6.4/data/journal
2014-09-03T14:23:17.052+0800 [initandlisten] recover : no journal files present, no recovery needed
2014-09-03T14:23:17.572+0800 [initandlisten] preallocateIsFaster=true 5.7
2014-09-03T14:23:18.044+0800 [initandlisten] preallocateIsFaster=true 7.48
2014-09-03T14:23:19.477+0800 [initandlisten] preallocateIsFaster=true 8.14
2014-09-03T14:23:19.477+0800 [initandlisten] preallocating a journal file /home/jifeng/mongodb-linux-x86_64-2.6.4/data/journal/prealloc.0
2014-09-03T14:23:22.012+0800 [initandlisten] File Preallocator Progress: 912261120/107374182484%
2014-09-03T14:23:23.949+0800 [initandlisten] preallocating a journal file /home/jifeng/mongodb-linux-x86_64-2.6.4/data/journal/prealloc.1
2014-09-03T14:23:26.009+0800 [initandlisten] File Preallocator Progress: 650117120/107374182460%
2014-09-03T14:23:28.220+0800 [initandlisten] preallocating a journal file /home/jifeng/mongodb-linux-x86_64-2.6.4/data/journal/prealloc.2
2014-09-03T14:23:31.019+0800 [initandlisten] File Preallocator Progress: 996147200/1073741824 92%
2014-09-03T14:23:31.937+0800 [FileAllocator] allocating new datafile /home/jifeng/mongodb-linux-x86_64-2.6.4/data/local.ns, filling with zeroes...
2014-09-03T14:23:31.937+0800 [FileAllocator] creating directory /home/jifeng/mongodb-linux-x86_64-2.6.4/data/_tmp
2014-09-03T14:23:32.040+0800 [FileAllocator] done allocating datafile /home/jifeng/mongodb-linux-x86_64-2.6.4/data/local.ns, size: 16MB, took 0.099 secs
2014-09-03T14:23:32.053+0800 [FileAllocator] allocating new datafile /home/jifeng/mongodb-linux-x86_64-2.6.4/data/local.0, filling with zeroes...
2014-09-03T14:23:32.234+0800 [FileAllocator] done allocating datafile /home/jifeng/mongodb-linux-x86_64-2.6.4/data/local.0, size: 64MB, took 0.18 secs
2014-09-03T14:23:32.258+0800 [initandlisten] build index on: local.startup_log properties: { v: 1, key: { _id: 1 }, name: "_id_", ns: "local.startup_log" }
2014-09-03T14:23:32.260+0800 [initandlisten] added index to empty collection
2014-09-03T14:23:32.263+0800 [initandlisten] command local.$cmd command: create { create: "startup_log", size: 10485760, capped: true } ntoreturn:1 keyUpdates:0 numYields:0 reslen:37 328ms
2014-09-03T14:23:32.264+0800 [initandlisten] waiting for connections on port 27017
6:客户端连接
[jifeng@jifeng04 ~]$ mongo
MongoDB shell version: 2.6.4
connecting to: test
Welcome to the MongoDB shell.
For interactive help, type "help".
For more comprehensive documentation, seehttp://docs.mongodb.org/
Questions? Try the support grouphttp://groups.google.com/group/mongodb-user
> show databases;show databases;
admin (empty)
local 0.078GB
服务端的变化:
2014-09-03T14:24:05.853+0800 [initandlisten] connection accepted from 127.0.0.1:51719 #1 (1 connection now open)
2014-09-03T14:24:31.912+0800 [PeriodicTaskRunner] task: WriteBackManager::cleaner took: 34ms
2014-09-03T14:24:31.913+0800 [clientcursormon] mem (MB) res:36 virt:416
2014-09-03T14:24:31.913+0800 [clientcursormon] mapped (incl journal view):160
2014-09-03T14:24:31.913+0800 [clientcursormon] connections:1
2014-09-03T14:29:32.033+0800 [clientcursormon] mem (MB) res:36 virt:416
2014-09-03T14:29:32.034+0800 [clientcursormon] mapped (incl journal view):160
2014-09-03T14:29:32.034+0800 [clientcursormon] connections:1
Red Hat Enterprise Linux Server release 5.6 安装 MongoDB 2.6.4相关推荐
- Red Hat Enterprise Linux Server release 6.3下ganglia监控系统的搭建
ganglia 是分布式的监控系统,有两个Daemon, 分别是:客户端Ganglia Monitoring Daemon (gmond)和服务端Ganglia Meta Daemon (gmetad ...
- Red Hat Enterprise Linux Server release 7.0双系统安装
2019独角兽企业重金招聘Python工程师标准>>> Red Hat Enterprise Linux Server release 7.0双系统安装 1.RedHat 公司的企业 ...
- Red Hat Enterprise Linux Server release 7.4 (Maipo) 安装mysql5.7.36
1. 版本 [root@localhost mysql]# cat /etc/redhat-release Red Hat Enterprise Linux Server release 7.4 (M ...
- Red Hat Enterprise Linux Server release 7.1 (Maipo) 安装gcc 的几种方式
linux中没有默认安装的gcc,折腾了一番,终于搞好,记录备忘. [root@localhost local]# gcc bash: gcc: command not found... 查看系统版本 ...
- zzw原创_Red Hat Enterprise Linux Server release 6.5 安装mysql5.5.28版本
1.查看系统版本 [root@ip12189 ~]# more /etc/issue Red Hat Enterprise Linux Server release 6.5 (Santiago) K ...
- Red Hat Enterprise Linux Server 7.3 离线安装Podman
Background 上次Ubuntu离线安装Podman,今天在RHEL 7上再离线安装下. http://rpmfind.net/linux/rpm2html/search.php?query=p ...
- 1-4-RHEL6.3-用户及组管理(Red Hat Enterprise Linux Server release 6.3)@树袋飘零
本节介绍内容: 1.账户和组的概念 2.账户和组文件阐述与解析 3.管理账户和组(创建删除和修改) 4.案例分析-用户管理和组管理 5.暴力破解RHEL5 shadow 1.账户和组的概念 用户和组的 ...
- AWS EC2 云服务器 Red Hat Enterprise Linux Server release 7.4 (Maipo) vnc远程连接教程
1.AWS亚马逊云端设置完全访问组TCP连接端口 2.使用xshell登录隧道转发5901端口 选择私有认证秘钥 点击隧道进行配置 3.下载安装redhat 7.4 gnome及配置 #yum up ...
- Red Hat Enterprise Linux 7 Release Candidate Now Publicly Available
2014年4月23日 The Red Hat Enterprise Linux Team As mentioned during Red Hat Summit 2014 last week, we a ...
最新文章
- RDL/RDLC批量单据打印 [转]
- 遮挡摄像头 判断_长治一学校门口树枝遮挡信号灯,危险!
- boost::mp11::mp_valid相关用法的测试程序
- 解决MySQL事务未提交导致死锁报错 避免死锁的方法
- Python(28)-文件,os模块
- 《Python Cookbook 3rd》笔记(5.4):读写字节数据
- 分库分表学习总结(4)——分布式事务常见应用场景总结
- php floor,ceil,round,intval函数
- paip.提升效率----几款任务栏软件
- 使用U盘全新安装Mac OS X EI Capitan
- MATLAB如何调用百度云文字识别API
- SAP-ML物料账报错处理>ML4HMASTER113/ML4HRUN053>2021-01-09
- html页面pc端显示正常,手机端页面整体偏左(兼容性处理)
- 强化学习 原理与Python实现(四)
- linux制作 引导盘,制作Linux引导盘的四种方法
- oracle减法函数mius_Oracle 基础知识习题175道
- 墨言教育:看过很多配色理论还是学不会?来看这里!
- BZOJ1930: [Shoi2003]pacman 吃豆豆
- 3ds max 2020贴图通道
- java jbutton边框颜色_在Java Swing中更改JButton的边框颜色,以保留插图
热门文章
- linux的write是线程安全的吗,socket的write/send还是是否是线程安全?
- 0-1背包动态规划c语言,动态规划解决0-1背包问题程序看不懂,请大家看看帮忙解决下...
- linux下写sql语言,如何写这个sql语句?
- java 线程同时启动_java多个线程同时启动的两种方式
- 服务器能安装ios系统吗,想给iPhone重装iOS,怎能不用iMazing
- 计算机与数学文化论文参考文献,数学文化与人类文明论文.doc
- 百度是php写的,百度大秘密,百度也是PHP写的!有证据!千真万确!
- 超大规模智能模型相关工作总结:编程实现框架、算法模型、微调技术和应用...
- 为节约而生:从标准Attention到稀疏Attention
- POJ3348 Cows【凸包+多边形求面积】