How to install Redis 3.2.8 Database on Ubuntu 17.04 & Linux Mint

28/12/2020
Chưa phân loại

Redis 3.2.8 recently released, is an open source, in-memory data structure store, used as a database to cache and message broker. It supports data structures such as strings, hashes, lists, sets, sorted sets with range queries, bitmaps, hyperloglogs and geospatial indexes with radius queries. Redis has built-in replication, as well as Lua scripting, LRU eviction, transactions and different levels of on-disk persistence, and provides high availability via Redis Sentinel and automatic partitioning with Redis Cluster. Before we look into how to install Redis on Ubuntu, lets take a quick look at its properties.

Redis Features

  • Supports trivial-to-setup master-slave asynchronous replication, with very fast non-blocking first synchronization. As well as auto-reconnection with partial resynchronization on net split
  • Transactions – allows redis to execute a group of commands in a single step
  • Pub/Sub – Messages sent by other clients to these channels will be pushed by Redis to all the subscribed clients
  • Lua scripting – EVAL and EVALSHA are used to evaluate scripts using the Lua interpreter built into Redis starting from version 2.6.0.
  • Keys with a limited time-to-live – Set a timeout on key. After the timeout has expired, the key will automatically be deleted
  • LRU eviction of keys – When Redis is used as a cache, often it expected to let it automatically evict old data as you add new one. Hence LRU is one of the supported eviction methods
  • Automatic failover – Redis Sentinel provides high availability for Redis
  • Furthermore, you can use Redis from most programming languages out there
  • Its written in ANSI C and works in most POSIX systems like Linux, *BSD, as well as OS X without external dependencies.

Redis 3.2.8 Changelog

This release comes with two important bug fixes, the first of one is critical:

  • Apparently Jemalloc 4.4.0 may contain a deadlock under particular conditions. Previously used Jemalloc versions was reverted back to.
  • MIGRATE could crash the server after a socket error

How to install Redis 3.2.8 on Ubuntu 17.04, Ubuntu 16.10, Ubuntu 16.04, Ubuntu 14.04

sudo add-apt-repository ppa:chris-lea/redis-server  sudo apt-get update && sudo apt-get install redis

How to uninstall Redis from Ubuntu

sudo apt-get remove redis
ONET IDC thành lập vào năm 2012, là công ty chuyên nghiệp tại Việt Nam trong lĩnh vực cung cấp dịch vụ Hosting, VPS, máy chủ vật lý, dịch vụ Firewall Anti DDoS, SSL… Với 10 năm xây dựng và phát triển, ứng dụng nhiều công nghệ hiện đại, ONET IDC đã giúp hàng ngàn khách hàng tin tưởng lựa chọn, mang lại sự ổn định tuyệt đối cho website của khách hàng để thúc đẩy việc kinh doanh đạt được hiệu quả và thành công.
Bài viết liên quan

How to Use rsync Command to Copy Files on Ubuntu

rsync is a tool for copying files. rsync is used to copy files from your computer to a remote machine, from a remote machine...
29/12/2020

Python SYS Module

In this lesson on Python sys module, we will study how this module allows us to interact with the interpreter and the host...
28/12/2020

Install Linux Mint MATE

Linux Mint is definitely one of the finest Linux distros out there. It’s suitable for both newbies and veterans. In fact,...
29/12/2020