Debian 8 - Install Redis Server
The easiest way to install a Redis server is to just run
sudo 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.
sudo apt-get update sudo apt-get install build-essential -y wget http://download.redis.io/releases/redis-stable.tar.gz tar xzf redis-stable.tar.gz cd redis-stable make sudo apt-get install tcl8.5 -y # optionally run "make test" to check everything is ok sudo 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 sudo ./install_server.sh
You will be prompted for configuration values, but you may want to just press return to accept the defaults.
Manage The Service
sudo service redis_6379 [start | stop | restart]
Start the Management Console