Created
September 30, 2016 19:02
-
-
Save emresaracoglu/596813b450251818e79505b390cd8836 to your computer and use it in GitHub Desktop.
Redis 3.x Installation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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