How to install Redis 3.x on new CentOS 6.6 server
Installing Redis on clean CentOS.
Pre installation Redis
1 2 3 4 5 6 7 8 9 10 |
#update and upgrade the linux yum -y update yum -y upgrade #I like nano yum install -y nano #Install gcc & tcl, needed for compilation yum install -y gcc* yum install -y tcl |
Install Redis
1 2 3 4 5 6 7 8 9 10 |
wget http://download.redis.io/releases/redis-3.0.1.tar.gz tar xzf redis-3.0.1.tar.gz cd redis-3.0.1 make make test make install cd utils chmod +x install_server.sh ./install_server.sh sudo chkconfig --level 2345 redis on |
Check Redis status/start/stop
1 2 |
service redis_6379 status service redis_6379 start |
Set a password (Very Important)
1 2 3 4 5 |
nano /etc/redis/6379.conf # find # requirepass foobared #replace it with your password requirepass somePassword service redis_6379 restart |
#make sure to have custom firewall permissions with the password, you can use iptables.
Thank you! I’d forgotten about make install.
You’re welcome, I’m glad it helped… with installations sometimes we forget small details… thats why i made my own documentations that i come back to every now and than.
redis_6379: unrecognized service Please helpme
How about when the server is rebooted?
sudo chkconfig –level 2345 redis on