Linux installation Redis (redis-3.0.2.tar.gz) and MongoDB (mongodb-linux-x86_64-rhel62-4.0.0)

Source: Internet
Author: User
Tags install mongodb mongodb install redis

1: First to download the two compressed packages

Note: If Liunx has installed GCC, install it first: Yum installs gcc-c++

2: Install redis:redis-3.0.2.tar.gz

(1): Extract to Directory: TAR-ZXF redis-3.0.2.tar.gz

(2): Execute: Make

(3): Execute: Make Prefix=/usr/redis Install (Note: prefix= installation path Install)

(4): execution: CP Redis.conf/usr/redis

(5): Execution: Note: The last step is to start up in two categories: front-end and background boot

Front End:/usr/redis/bin/redis-server (this method is not recommended)

Back end: vi/usr/redis/redis.conf

One of the behaviors: Daemonize No to: daemonize Yes after saving modify exit

After the boot:

Cd/usr/reids/bin

./redis-server./redis.conf

View: Whether to start:

Ps-ef | Grep-i Redis

3: Install mongodb:mongodb-linux-x86_64-rhel62-4.0.0

(1): Create a MongoDB folder

Mkdir/usr/mongodb

(2): Unzip to this folder: Tar-zxf mongodb-linux-x86_64-rhel62-4.0.0

After that, you can rename: MV mongodb-linux-x86_64-rhel62-4.0.0 mongodbserver (Note: The file name after the MV is extracted: MV filename new file name)

(3): Cd/usr/mongodb

mkdir data (Create Datastore)

(4): mkdir logs (store log)

(5): mkdir etc (configuration)

vi/usr/mongodb/etc/mongod.conf (edit config file)

Write the following configuration to

dbpath=/usr/mongodb/mongodbserver/data/db
Logpath=/usr/mongodb/mongodbserver/logs/mongodb.log
port=27017
Fork=true
Journal=false
Storageengine=mmapv1
Logappend=true
Noauth=true

  

(6):./mongod--config/usr/mongodb/mongodbserver/etc/mongodb.conf (start)

          

Linux installation Redis (redis-3.0.2.tar.gz) and MongoDB (mongodb-linux-x86_64-rhel62-4.0.0)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.