Installing Redis and FAQs

Source: Internet
Author: User
Tags redis

# # # Install #

Yum-y Install gcc gcc-c++ libstdc++-devel

sudo yum install Tcl

Tar xzf redis-2.8.8.tar.gz

CD redis-2.8.8.tar.gz

Make MALLOC=LIBC

Make Test

Q:cc:command not found

Yum-y Install gcc gcc-c++ libstdc++-devel


Q: Installing Redis Error

#make
CD src && make all
MAKE[1]: Entering directory '/SOFTWARE/REDIS-2.8.8/SRC '
CC ADLIST.O
In file included from adlist.c:34:
Zmalloc.h:50:31:error:jemalloc/jemalloc.h:no such file or directory
Zmalloc.h:55:2: Error: #error "Newer version of Jemalloc required"
MAKE[1]: * * * [ADLIST.O] Error 1
MAKE[1]: Leaving directory '/SOFTWARE/REDIS-2.8.8/SRC '
Make: * * * [ALL] Error 2

A:

Make MALLOC=LIBC (don't know why this is used.) )


References:

Http://www.klfy.net/linux-centos64-redis26-error.shtml

Http://www.cnblogs.com/la-isla-bonita/p/3582751.html


Q:

# Make Test
CD src && make test
MAKE[1]: Entering directory '/SOFTWARE/REDIS-2.8.8/SRC '
You need TCL 8.5 or newer in order to run the Redis test
MAKE[1]: * * * [Test] Error 1
MAKE[1]: Leaving directory '/SOFTWARE/REDIS-2.8.8/SRC '
Make: * * * [Test] Error 2

A. Modifying the configuration file directory

Mkdir/etc/redis
CP Redis.conf/etc/redis


A: Start Redis

Redis-server/etc/redis/redis.conf


A. Write-on-boot echo "redis-server/etc/redis/redis.conf" >>/etc/rc.local


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.