Complete steps for Linux installation Redis

Source: Internet
Author: User

Installation:

1. Get Redis Resources

wget http://download.redis.io/releases/redis-4.0.8.tar.gz

2. Unzip

Tar xzvf redis-4.0.8.tar.gz

3. Installation

CD redis-4.0.8

Make

CD src

Make install Prefix=/usr/local/redis

4. Move the configuration file to the installation directory

Cd.. /

Mkdir/usr/local/redis/etc

MV Redis.conf/usr/local/redis/etc

5. Configure Redis for background boot

vi/usr/local/redis/etc/redis.conf//Change daemonize no to daemonize Yes

6. Add Redis to boot boot

Vi/etc/rc.local//Add content inside:/usr/local/redis/bin/redis-server/usr/local/redis/etc/redis.conf (meaning is to start calling this section of the command to open Redis )

7. Turn on Redis

/usr/local/redis/bin/redis-server/usr/local/redis/etc/redis.conf

Common commands

redis-server/usr/local/redis/etc/redis.conf//Start Redis

Pkill Redis//Stop Redis

To uninstall Redis:

Rm-rf/usr/local/redis//Delete the installation directory

rm-rf/usr/bin/redis-*//Delete all Redis-related command scripts

rm-rf/root/download/redis-4.0.4//Delete Redis Unzip folder

Complete steps for Linux installation Redis

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.