• Skip to primary navigation
  • Skip to content
  • Skip to primary sidebar
Clean Programmer

Clean Programmer

Programming & DevOps Resources

  • Home
  • Library
  • About
  • Contact

Setting Up A Single Node Redis Server

October 31, 2018 Monzurul Haque Shimul

Redis is an open source (BSD licensed), in-memory data structure store, used as a database, cache and message broker. It supports data structures such as strings, hashes, lists, sets, sorted sets with range queries, bitmaps, hyperloglogs, geospatial indexes with radius queries and streams. In this article, I will demonstrate how to setup a single node redis server. I will use redis 5.0.0 which is the latest stable version.

Let’s download, extract and compile Redis with:

$ wget http://download.redis.io/releases/redis-5.0.0.tar.gz
$ tar xzf redis-5.0.0.tar.gz
$ cd redis-5.0.0
$ make

The binaries that are now compiled are available in the src directory. Run Redis with:

$ src/redis-server

When Redis is running, you can interact with it via redis-cli :

$ src/redis-cli -h localhost -p 6379
redis> ping 
PONG
redis> set hello world
OK
redis> get hello
"world"

If you are in a Mac, by using Homebrew, simply run:

$ brew install redis

And then start Redis by running:

$ redis-server /usr/local/etc/redis.conf

In Ubuntu, you can install using apt:

$ sudo apt install redis-server

That’s it. We have successfully installed a single node Redis server. In the next post, I will demonstrate how to setup a highly available Redis cluster.

Redis redis

Reader Interactions

Leave a Reply Cancel 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.

Primary Sidebar

Categories

  • Apache Kafka
  • Druid
  • Git
  • Java
  • Java EE
  • Redis
  • Spring
  • Uncategorized
  • Weblogic
  • Wildfly

Featured Posts

How to deploy applications to WildFly using jboss-cli

How To Configure Druid To Use MySQL As Metadata Storage

Making a GET request with request body using Spring RestTemplate

How to setup Zookeeper Cluster

How to Configure Druid to Use PostgreSQL as Metadata Storage

Tags

bash bitbucket cassandra cloudserver curl docker druid.io eclipselink ejb git imply.io java java-ee jaxws jboss jboss-cli jdbc jdk jms kafka maven minio mssql mysql ojdbc oracle postgresql redis rest rest-template S3 scality sdk sdkman soap spring sqlserver stream stream api weblogic web services wildfly wsdl zenko zookeeper

Archives

  • January 2019
  • December 2018
  • November 2018
  • October 2018
  • September 2018
  • August 2018
  • July 2018
  • June 2018
  • May 2018

Copyright © 2019 ยท CLEAN PROGRAMMER

  • Privacy Policy
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.OKNoRead more
Revoke Cookies