Monday, 25 January 2016

Install redis 3 on Debian 7

The easiest way to install a Redis server is to just run
apt-get install redis-server -y  
Unfortunately, this will only install version 2.8.17 which doesn't have the features in 3.0+.

Manually Install Redis 3+

Redis 3.0 introduces Redis Cluster, a distributed implementation of Redis with automatic data sharding and fault tolerance, important speed improvements under certain workloads, improved AOF rewriting, and more.
Here's how to manually install the latest version.
apt-get update
apt-get install build-essential -y

tar xzf redis-stable.tar.gz
cd redis-stable
apt-get install tcl8.5 -y
# optionally run "make test" to check everything is ok
make install
Redis is now installed. To configure redis to run as a background daemon run a script that came bundled with the files
cd utils
bash ./
You will be prompted for configuration values, but you may want to just press return to accept the defaults.


Check Version

redis-server --version  

Manage The Service

service redis_6379 [start | stop | restart]  

Start the Management Console


No comments:

Post a Comment