Install Redis from Source
OS: RHEL Community Minimal
- AlmaLinux 8.x
- RockyLinux 8.x
- CentOS 7.9
prepare
dependencies:
$sudo dnf group install 'Development Tools'
$sudo dnf install tcl wget
v6+
Just to clarify:
there is no way this issue will be fixed, Redis >= 6 will require a C11 compiler.
- RHEL7
sudo dnf install centos-release-scl
sudo dnf install devtoolset-8
scl enable devtoolset-8 bash
verification
$gcc -v
$make -v
$echo 'puts [info patchlevel];exit 0' | tclsh
installation
$wget https://download.redis.io/redis-stable.tar.gz
$tar xzvf redis-stable.tar.gz
$cd redis-stable
$make
## Single Core
$taskset -c 0 make test
## sudo
$sudo make install
configure
$sudo mkdir /etc/redis
$sudo mkdir -p /var/redis
$sudo cp /home/tdtc/redis-stable/redis.conf /etc/redis
/etc/redis/redis.conf:
»