{{tag>redis compile hosting }} {{howhard>1}}
====== Redis v4 ======
This guide assumes you are switched to su - . This guide assumes you are using the eSG provided installation image.

===== Goal =====
Compile redis v4.

===== Steps =====
==== Library Prerequisites ====
<sxh>
yum groupinstall 'Development Tools'
yum install tcl</sxh>

==== EXPORTS used to set versions ====
You can change the values here to change compiled version.
<sxh>REDIS_VERSION=4.0.8</sxh>

==== Fetch Redis ====
<sxh>wget http://download.redis.io/releases/redis-${REDIS_VERSION}.tar.gz
tar zxfv redis-${REDIS_VERSION}.tar.gz</sxh>

==== Build Redis ====
<sxh>
cd redis-${REDIS_VERSION}
make</sxh>

==== Install Redis ====
<sxh>make install</sxh>

==== Setup the systemd service =====
[[systems:redis.service|Create the systemd service]]