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)