Redis stand-alone installation

Please indicate the source of the original reprint: http://agilestyle.iteye.com/blog/2377898

 

wget http://download.redis.io/releases/redis-3.2.9.tar.gz

 

tar -zxvf redis-3.2.9.tar.gz -C ~

 

cd redis-3.2.9/

 

make


 

make install PREFIX=~/app/redis-3.2.9


 

Front-end startup

./redis-server


 

Start the backend, copy the redis.conf in the redis that was extracted from the original tar package to the redis installation directory

cp redis.conf /home/hadoop/app/redis-3.2.9/bin


 

Modify redis.conf and modify daemonize to yes


 

start up

./redis-server redis.conf


 

start redis-cli

./redis-cli -p port - h ip_address <-c> cluster

Default port: 6379

IP:localhost(127.0.0.1)


 

 

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326272797&siteId=291194637