Note: Redis 4 is not stable yet so if you know what are you doing put your gloves on.
As you might guess we have to install Redis 4 from source so we have to install some dependencies first:
yum groupinstall 'Development Tools'
yum install tcl wget
For Debian and Ubuntu
apt-get install build-essential
apt-get install tcl wget
Download and Compile Redis 4
You can easily download the Redis 4 source with the command below:
Extract the file you just downloaded with the command below:
tar xvzf 4.0-rc3
Enter the Redis directory:
Run the command below before start compiling:
Now we can start compiling:
If everything was ok, run the following command:
Install your Redis-server Service:
Now you can start and test your Redis service.
systemctl start redis_6379
systemctl status redis_6379
For testing your Redis-server you can follow the below instructions:
set test 'HugeServer'