filmov
tv
How to Install Redis 6.0.6 on Ubuntu 20.04 LTS Server

Показать описание
Straightforward instructions on how to setup Redis on an Ubuntu Server.
Install Redis 6.0.6 on Ubuntu Linux 20.04 LTS server.
5 Easy Steps:
Step 1: Install pre-requisites.
$ sudo apt install build-essential tcl
Step 2: Download and Unpack Redis Source
a. Create a working directory to download the source.
$ mkdir -p ~/sources/redis && cd ~/sources/redis
b. Download the source
c. Unpack the source
d. Change to extracted folder
$ cd redis-6.0.6/
Step 3: Compile and Copy Executables
a. Compile the source
$ sudo make
b. Copy the compiled executables
$ sudo make install
c. Test the installation
$ sudo make test
Step 4: Install Redis as a Service
a. Edit the install script
$ cd utils/
(look for #bail if this system is managed by systemd)
b. Comment out the block
(append '#' at the start of the line to comment out the block in the script)
save and exit nano
c. Run the script
(press 'Enter' to set default configurations. You should see a "Installation successful!")
Step 5: Test your Installation!
$ redis-cli (hit Enter)
127.0.0.1:6379 ping (hit Enter)
PONG
127.0.0.1:6379 exit
$ redis-benchmark (check how your setup is doing!)
Congratulations on your new Redis!
Credits:
Install Redis 6.0.6 on Ubuntu Linux 20.04 LTS server.
5 Easy Steps:
Step 1: Install pre-requisites.
$ sudo apt install build-essential tcl
Step 2: Download and Unpack Redis Source
a. Create a working directory to download the source.
$ mkdir -p ~/sources/redis && cd ~/sources/redis
b. Download the source
c. Unpack the source
d. Change to extracted folder
$ cd redis-6.0.6/
Step 3: Compile and Copy Executables
a. Compile the source
$ sudo make
b. Copy the compiled executables
$ sudo make install
c. Test the installation
$ sudo make test
Step 4: Install Redis as a Service
a. Edit the install script
$ cd utils/
(look for #bail if this system is managed by systemd)
b. Comment out the block
(append '#' at the start of the line to comment out the block in the script)
save and exit nano
c. Run the script
(press 'Enter' to set default configurations. You should see a "Installation successful!")
Step 5: Test your Installation!
$ redis-cli (hit Enter)
127.0.0.1:6379 ping (hit Enter)
PONG
127.0.0.1:6379 exit
$ redis-benchmark (check how your setup is doing!)
Congratulations on your new Redis!
Credits: