Install MongoDB on Linux Systems 速记

Download the Latest Release

>> curl -O http://downloads.mongodb.org/linux/mongodb-linux-x86_64-2.4.8.tgz

Extract MongoDB From Archive

>> tar -zxvf mongodb-linux-x86_64-2.4.8.tgz

Optional. Copy MongoDB to Target Directory

>> mkdir -p mongodb
>> cp -R -n mongodb-linux-x86_64-2.4.8/ mongodb

Optional. Configure Search Path To ensure that the downloaded binaries are in your PATH, you can modify your PATH and/or create symbolic links to the MongoDB binaries in your /usr/local/bin directory (/usr/local/bin is already in your PATH). You can find the MongoDB binaries in the bin/ directory within the archive.   Create mongodb user >> groupadd mongodb >> useradd -g mongodb mongodb   Create dbpath

>> mkdir -p /data/db

>> chown mongodb /data/db Starting mongod without any arguments starts a MongoDB instance that writes data to the /data/db directory. To specify an alternate data directory, start mongod with the--dbpath option: >> mongod --dbpath /data/db   Stop MongoDB   To stop the mongod instance, press Control+C in the terminal where the mongod instance is running   MongoDb web 用户界面 在比MongoDB服务的端口多1000的端口上,你可以访问到MondoDB的web用户界面。 如:如果你的MongoDB运行端口使用默认的27017,你可以在端口号为28017访问web用户界面。   附Mongodb学习教程: http://www.w3cschool.cc/mongodb/mongodb-tutorial.html

Install MongoDB on Linux Systems 速记

时间: 2024-08-06 06:22:15

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 to install MongoDB on Red Hat Enterprise Linux, CentOS Linux, Fedora Linux, or a related system. The tutorial uses .rpm packages to install. While some

Install MongoDB on Windows

Overview Use this tutorial to install MongoDB on a Windows systems. PLATFORM SUPPORT Starting in version 2.2, MongoDB does not support Windows XP. Please use a more recent version of Windows to use more recent releases of MongoDB. IMPORTANT If you ar

install sublime for linux

Download Your Free eBooks NOW - 10 Free Linux eBooks for Administrators Python API, that available for Windows and C, C#, HTML, JavaScript, Groovy, LaTeX and the list goes on. The user interface is much similar to most famous editor called “vim“. Ins

Install MongoDB on Windows (Windows下安装MongoDB)

Install MongoDB on Windows Overview Use this tutorial to install MongoDB on a Windows systems. PLATFORM SUPPORT Starting in version 2.2, MongoDB does not support Windows XP. Please use a more recent version of Windows to use more recent releases of M

转: 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“) is a full flexible index support and rich queries database. Its is a NoSQL database. MongoDB provides large media storage with GridFS. Clickhere fo

Install MongoDB on Centos 7

#!/bin/bash ####################### #mongodb简介 #mongodb是个非关系型数据库,但操作跟关系型数据最类似.mysql是关系型数据库 #mongodb是面向文档存储的非关系型数据库,数据以json的格式进行存储 #mongodb可用来永久存储,也可用来缓存数据 #mongodb提供副本集和分片集群功能,操作简单 ############################# if [ `whoami` != root ] then echo "Plea

mongodb之linux通用二进制包安装

MonfoDB是开源文档数据库,提供共性能.高可用.自动扩展等 MongoDB中记录是文档,其是字段和值组成的对结构.mongodb文档类似JSON对象,字段的值可以包含其它文档.数组.文档的数组.记录组织成collection,相当于表.参考下图: 使用文档的优点是: 文档对应很多编程语言的内生数据对象 内嵌文档和数组减少了join的开销 动态schema支持顺畅多态 关键功能: 高性能: mongodb提供高性能数据持久.特别是: 支持内嵌数据模型减少了数据库系统的I/O 索引支持快速查询且

Install a new Linux Kernel (3.10.56) in Guest OS (Dom U)

These days I want to install a new Linux kernel in Guest Operating System. The original version of Guest OS is 2.6.32, but I need a kernel version 3.10. I have tried several ways and following steps is just one of methods which can work: 1. We should

Install MongoDB driver for PHP on XAMPP for Mac OSX

试了不少方法,最后还是这个最有效. [转自:http://thatsimplecode.com/install-mongodb-driver-for-php-on-xampp-for-mac-osx] You need to have the following installed in your Mac: MongoDB XAMPP for Mac OSX Homebrew Package Manager Type the following in your terminal : brew i