Installing Redis under Linux

Source: Internet
Author: User
Tags benchmark

(Redishttp://redis.io/download)

Installation steps:

1, first need to install GCC, put the downloaded redis-3.0.0-rc2.tar.gz into the linux/usr/local folder

2, the decompression TAR-ZXVF redis-3.0.0-rc2.tar.gz, after decompression will appear the following directory

3. Go to the redis-3.0.0 directory and compile make

4, into the SRC under the installation make install verify (ll view the directory under SRC, with Redis-server, Redis-cil can)

5. Set up two folders to hold Redis commands and configuration files
Mkdir-p/usr/local/redis/etc
Mkdir-p/usr/local/redis/bin

6, the redis-3.0.0 under the redis.conf moved to/USR/LOCAL/REDIS/ETC under,
cp/usr/local/redis-3.0.0-rc2/redis.conf/usr/local/redis/etc/

7, the redis-3.0.0/src in the

mkreleasehdr.sh, Redis-benchmark, redis-check-aof, Redis-check-dump, REDIS-CLI, Redis-server

To move the file to the bin, command:
mv/usr/local/redis-3.0.0-rc2/src/mkreleasehdr.sh

/usr/local/redis-3.0.0-rc2/src/redis-benchmark

/usr/local/redis-3.0.0-rc2/src/redis-check-aof

/usr/local/redis-3.0.0-rc2/src/redis-check-dump

/usr/local/redis-3.0.0-rc2/src/redis-cli

/usr/local/redis-3.0.0-rc2/src/redis-server

/usr/local/redis/bin

8, start and specify the configuration file:/usr/local/redis/bin/redis-server/usr/local/redis/etc/redis.conf (note to use background boot, so modify the redis.conf in the Daemonize Change to Yes)

9. Verify the boot success: PS-EF | grep redis to see if there is a Redis service or view port: NETSTAT-TUNPL | grep 6379

10. Go to Redis client:/usr/local/redis/bin/redis-cli quit client quit command

11. Opt-Out of Redis services

(1) Pkill redis-server,
(2) Kill process number,
(3)/USR/LOCAL/REDIS/BIN/REDIS-CLI shutdown

Installing Redis under Linux

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.