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