001. Redis stand-alone installation

Source: Internet
Author: User

One. Compile and install

#将redis解压到/opt tar zxvf redis-3.0.7.tar.gz-c/opt# into the Redis directory and compile cd/opt/redis-3.0.7 && make malloc=libc# Installing Redismake Install


Two. Modify the configuration

Create a configuration file #创建目录mkdir/usr/local/etc/redis-cluster/redis-7000/usr/local/etc/redis-cluster/redis-7001# cp/opt/ redis-3.0.7/redis.conf mkdir/usr/local/etc/redis-cluster/redis-7000/#修改配置文件vim/opt/redis-3.0.7/redis.conf/usr/       local/etc/redis-cluster/redis-7000/redis.conf Modify the following configuration: Port 7000daemonize yescluster-enabled Yescluster-config-file nodes.confcluster-node-timeout 5000appendonly Yes port number needs to be changed according to actual;


Three. Start Redis

/usr/local/bin/redis-server/opt/redis/cluster/redis-7000.conf


This article is from "Luo old Three's Yun-Dimensional Road" blog, reprint please contact the author!

001. Redis stand-alone installation

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.