Skip to content

Instantly share code, notes, and snippets.

@emresaracoglu
Created September 30, 2016 19:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save emresaracoglu/596813b450251818e79505b390cd8836 to your computer and use it in GitHub Desktop.
Save emresaracoglu/596813b450251818e79505b390cd8836 to your computer and use it in GitHub Desktop.
Redis 3.x Installation
Installing Redis on clean CentOS.
Pre installation Redis
#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
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
Check Redis status/start/stop
service redis_6379 status
service redis_6379 start
service redis_6379 stop
Set a password (Very Important)
nano /etc/redis/6379.conf
# find # requirepass foobared
#replace it with your password
requirepass somePassword
service redis_6379 restart
Finish,
Thank you from Turkey
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment