Setup Redis on ubuntu

Redis is a software project that implements data structure servers. It is open-source, networked, in-memory, and stores keys with optional durability.

This Technical document contains configuration used for deployment of Redis.

Todo

  • Create instance Redis config.
  • Install development tools on Instance.
  • Download redis source from official page.
  • Compile redis and install.

Configuration Redis

Installing Development Tools on Instance.

$ sudo apt-get update
$ sudo apt-get install build-essential tcl8.5

Download Redis Source from official page and extract.

$ wget http://download.redis.io/releases/redis-3.2.6.tar.gz
$ tar -xvf redis-3.2.6.tar.gz

Change Directory to redis directory and compile.

$ cd redis-3.2.6
$ make && make test
$ make install

After we compile we must install to server or redis server

$ cd tools
$ ./install_server

Edit redis config
ubuntu@ip-10-10-1-81:~$ sudo vi /etc/redis/redis.conf

Change and follow Configuration like below

bind 10.10.1.81
maxmemory 14gb
maxmemory-policy allkeys-lru
dir /opt/redis/data

Save and restart service

$ /etc/init.d/redis restart

well redis now ready in your box.

You may also like

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.