Redis Cluster deployment

Source: Internet
Author: User
Tags download redis redis cluster

Download Redis-3.0.7.tar.gz Package

TAR-ZXVF redis-3.0.7.tar.gz

CD redis-3.0.7

Make


The first 3 steps should be no problem, the main problem is that when you execute make, an exception occurs.

Exception One:

MAKE[2]: Cc:command not found

Exception reason: GCC is not installed

Solution: Yum Install gcc-c++

Exception Two:

Zmalloc.h:51:31:error:jemalloc/jemalloc.h:no such file or directory

Exception reason: Some compiler dependencies or original compilation legacy problems

Solution: Make Distclean. Clean it up and make it again.


After make is successful, make test is required. An exception occurred in make test.

Exception One:

Couldn ' t execute "tclsh8.5": No such file or directory

Exception reason: Tcl not installed

Solution: Yum install-y tcl


After make succeeds, there are some more executables in the SRC directory: Redis-server,redis-cli and so on.

During the convenient period, the CP command is copied to the USR directory for operation.

CP redis-server/usr/local/bin/

CP redis-cli/usr/local/bin/

Then create a new directory, store the configuration file

Mkdir/etc/redis

Mkdir/var/redis

Mkdir/var/redis/log

Mkdir/var/redis/run

mkdir/var/redis/6379

Locate the profile template in the Redis solution directory and copy it to the following location.

CP redis.conf/etc/redis/6379.conf

Modify with vim command

Daemonize Yes

Pidfile/var/redis/run/redis_6379.pid

Logfile/var/redis/log/redis_6379.log

dir/var/redis/6379

Finally, run Redis:

$ redis-server/etc/redis/6379.conf






This article is from the "years, the Allure" blog, please be sure to keep this source http://alca0126.blog.51cto.com/7826974/1753588

Redis Cluster deployment

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.