Linux under the installation of Redis stepped pits

Source: Internet
Author: User

First step: TAR-ZXVF redis-4.0.10.tar.gz

Part II: CD redis-4.0.10 directory perform make compilation

Result Error:

     

Reason: Need to rely on three packages

FIX: Install in sequence: Yum install gcc

Yum Install gcc-c++

Yum install TCL

Make and error after installation

    

Workaround: Execute make MALLOC=LIBC to solve the problem perfectly

Specific reference: 64920124

Step three: Create a directory called Redis for easy administration:

Perform the make install Prefix=/user/redis in the redis-4.0.10 directory

Part fourth: CP redis.conf. /redis

Redis is installed successfully

Start Redis:./redis-server reception Start

If you want to start the background, you can change the redis.conf configuration file daemon No to daemon Yes

The command is started at this time./redis-server. /redis-conf

If you want to remotely connect to Redis, you need to modify the redis.conf two places:

1. Note Bind= 127.0.0.1

2. Change Protected-mode Yes to Protected-mode no

Installing Redis trampled pits 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.