Download redis from redis.io
#wget https://redis.googlecode.com/files/redis-2.4.17.tar.gz
#tar -xvf redis-2.4.17.tar.gz
#cd /opt/redis-2.4.17/src
#make install
#tar -xvf redis-2.4.17.tar.gz
#cd /opt/redis-2.4.17/src
#make install
now this copy redis-server, redis-cli and conf file to /usr/local/bin
open the port in firewall for redis
now make this service run on start up add the below line in rc.local
open the port in firewall for redis
now make this service run on start up add the below line in rc.local
#vim /etc/rc.local
nohup /usr/local/bin/redis-server &
Close the editor and now the server will start at boot, check by redis-cli
#cd /usr/local/bin
#./redis-cli
redis 127.0.0.1:6379>
It is installed and working now.
No comments:
Post a Comment