Install MongoDB on Linux Systems 速记
下载mongodb最新版本:
下载链接:http://pan.baidu.com/s/1kTDnkyz
curl -O http://downloads.mongodb.org/linux/mongodb-linux-x86_64-2.4.8.tgz
解包mongodb:
tar -zxvf mongodb-linux-x86_64-2.4..tgz
复制mongodb至预定安装文件夹下:
mkdir -p mongodb
cp -R -n mongodb-linux-x86_64-2.4./ mongodb
一般来说,你需要配置系统"PATH"变量,将mongod命令程序的路径加入"PATH"变量中,或者创建mongod等命令的指向 /usr/local/bin符号链接.
创建mongdodb运行所需的用户组及用户
groupadd mongodb
useradd -g mongodb mongodb
创建数据存储目录
mkdir -p /data/db
chown mongodb /data/db
mongod 默认使用/data/db作为其数据存储目录,如果不使用任何参数,MongoDB就会将数据写这个目录(/data/db).
如需要特别指定一个目录作为数据存储地址,可以使用--dbpath选项,作为mongod启动参数:
mongod --dbpath /data/db
停掉MongoDB
为了停止mongod,可以在mongod运行的终端上,直接按Control+C键,终止mongod的运行.
MongoDb web 用户界面 在比MongoDB服务的端口多1000的端口上,
你可以访问到MondoDB的web用户界面。
如:如果你的MongoDB运行端口使用默认的27017,你可以在端口号为28017访问web用户界面。
附Mongodb学习教程: http://www.w3cschool.cc/mongodb/mongodb-tutorial.html
Install MongoDB on Linux Systems 速记的更多相关文章
- Install MongoDB on Red Hat Enterprise, CentOS, Fedora, or Amazon Linux
Install MongoDB on Red Hat Enterprise, CentOS, Fedora, or Amazon Linux¶ Overview Use this tutorial t ...
- Install MongoDB Community Edition on Ubuntu
Install MongoDB > Install MongoDB Community Edition > Install MongoDB Community Edition on Lin ...
- install sublime for linux
Download Your Free eBooks NOW - 10 Free Linux eBooks for Administrators Python API, that available f ...
- Install MongoDB on Windows
Overview Use this tutorial to install MongoDB on a Windows systems. PLATFORM SUPPORT Starting in ver ...
- Install MongoDB on Windows (Windows下安装MongoDB)
Install MongoDB on Windows Overview Use this tutorial to install MongoDB on a Windows systems. PLATF ...
- 02. Install redis on Linux
安装下载redis,参考官方文档:https://redis.io/download 下载: shell>wget http://download.redis.io/releases/redis ...
- Virtualization solutions on Linux systems - KVM and VirtualBox
Introduction Virtualization packages are means for users to run various operating systems without &q ...
- 转: How to Install MongoDB 3.2 on CentOS/RHEL & Fedora (简单易懂)
from: http://tecadmin.net/install-mongodb-on-centos-rhel-and-fedora/ MongoDB (named from “huMONGOus ...
- Mongodb在Linux下的安装和启动和配置
第一步:下载mongodb安装包,下载版本:2.0.2-rc2 下载链接: http://fastdl.mongodb.org/linux/mongodb-linux-i686-2.0.1.tgz 第 ...
随机推荐
- CSS3中first-child、last-child、nth-child、nth-last-child
1.单独指定第一个子元素.最后一个子元素的样式 <style type="text/css"> li:first-child{ background:yellow; } ...
- sql针对某一字段去重,并且保留其他字段
今天客户提了一个小需求,希望我能提供一条sql语句,帮助他对数据中 _field 这个字段的值去重,并且保留其他字段的数据.第一反应是select distinct,但这种语句在对某个字段去重时,无法 ...
- HDU 1013 Digital Roots【字符串,水】
Digital Roots Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Tot ...
- CodeForces798-B. Mike and strings-string中的find()函数
好久好久好久之前的一个题,今天翻cf,发现这个题没过,补一下. B. Mike and strings time limit per test 2 seconds memory limit per t ...
- A. Two Bases
A. Two Bases time limit per test 1 second memory limit per test 256 megabytes input standard input o ...
- HDU_5563Clarke and five-pointed star
Clarke and five-pointed star Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K ( ...
- Ajax 案例之三级联动
每次在博客园网站写博客,格式真的好难搞,还望好心人告知更好的编辑工具.接下来进入正题:三级联动(其效果演示可看我的博文Ajax 学习总结 末尾). 数据表设计(Oracle) 新建数据表 Employ ...
- slice、splice与split傻傻分不清
每每看到这几个,就蒙圈了,这都是啥呀? 既然这么容易混淆,我还是来做个小笔记吧,以便日后查阅: 1.slice(数组) 定义:slice() 方法可从已有的数组中返回选定的元素. 用法:array ...
- Spark算子--SortByKey
转载请标明出处http://www.cnblogs.com/haozhengfei/p/076a31e7caab1316b07990c02ac65e9c.html SortByKey--Transf ...
- dedecms 图集标签{dede:productimagelist} {dede:field name='imgurls'}&nbs
1.{dede:productimagelist}{/dede:productimagelist} 2.{dede:field name='imgurls'}{/dede:field} 这两个图集标签 ...