Install Redis on Ubuntu 16.04 LTS
Redis -A NO-SQL database
Redis is an open source in-memory data-structure memory that can be used as a database, cache, and message broker. Supported are data structures such as strings, hashes, lists, sets, sorted sets with range queries, bitmaps, hyperlogs, as well as geodata indexes with radius queries.
Redis provides built-in replication, Lua scripting, LRU eviction, transactions, and various levels of on-disk persistence, providing both high availability via Redis Sentinel and automatic partitioning with Redis clusters.
How to install Redis on an Ubuntu 16.04 LTS Server is explained in this article.
Prepare the server
As before each installation, the server should be updated. The following order is sufficient:
apt -y update && apt -y upgrade && apt -y dist-upgrade
In addition, a few packages must be installed before the actual installation.
apt -y install build-essential tcl8.5
After installing these packages, the server is ready and you can proceed with the installation.
In contrast to the already installed packages, one cannot install Redis over APT. This makes the installation somewhat more complicated.
First, the Redis package must be downloaded using wget:
The archive can then be unpacked:
tar xzf redis-stable.tar.gz
You should then change to the folder that contains the new directory:
Then it is installed with the help of make Redis:
make && make test && make install
Then switch to the utils directory…
… And run the install_server.sh file.
The installation is now complete. The following command is enough to start Redis:
service redis_6379 start
The following command is enough to access the program:
To return to the normal console, press Ctrl + C.
To terminate the Redis service, use the following command:
service resis_6379 stop
Since its release, Redis has quickly gained popularity and is used by github, flickr, Disqus and Craigslist. In addition, Redis can be used with most programming languages.
With these few steps, Redis can be installed on an Ubuntu 16.04 LTS server.
For more information about additional NoSQL databases such as RethinkDB and MongoDB, and their installations, please take a look at the following articles:
Install RethinkDB on Ubuntu
Install MongoDB on Ubuntu
Redis -A NO-SQL database Redis is an open source in-memory data-structure memory that can be used as a database, cache, and message broker. Supported are data structures such as strings, hashes, lists, sets, sorted sets with range queries, bitmaps, hyperlogs, as well as geodata indexes with radius queries. Redis provides built-in replication, Lua scripting, LRU […]
Thank you for your feedback!
We will get back to you as soon as the article is finished.