How-To Install Redis from Source

  • Last Created On Dec 10, 2024
  • 6
0 0

Introduction

Redis is often referred to as a data structures server. This means that Redis provides access to mutable data structures via a set of commands, which are sent by using a client/server model with TCP sockets. Different processes can query and modify the same data structures in a shared way. (from the official git repo)

Installing Redis

First, your Linux server must be equipped with git. To install git, use the following command.

For Ubuntu:

apt-get update; apt-get install -y git

For CentOS:

yum update; yum install git

After the installation of the git, download the source code of Redis.

git clone http://github.com/antirez/redis/

Before compiling the source code, you should have the build-essential package installed.

For Ubuntu:

apt-get install build-essential

For CentOS:

yum groupinstall "Development Tools"

Once this package is installed, make and install Redis.

sudo make; sudo make install

Using Redis

Congrats, you now have the Redis server installed! You can type redis-cli to query/insert data or type redis-benchmark to test out the performance of your VPS.

Views: 6

Recent Articles

  • How to Install JAX with ROCm Acceleratio...
    96
  • Deploy a PyTorch Workspace on a Vultr Cl...
    71
  • Managing Backup Storage
    82
  • Automating FTP Backups in Windows Server
    71
  • Automating FTP Backups in Linux
    75

Popular Articles

  • Our General Terms & Conditions
    2631
  • Our Privacy Policy
    2477
  • Our Cookies Policy
    275
  • Our Terms of Use
    152
  • How to Install JAX with ROCm Acceleratio...
    96