First of all, I personally recommend centos for the installation platform. I have tried both Fedora and Ubuntu but failed to install. It should be because of my poor technology.
Centos recommends installing the latest.
Installation platform preparation: see this for details
Then go to the redis official website to download a redis, and use the latest version 6.0.
If you don’t want to move, then I’m ready here too.
Extraction code: w6ms
If there are warnings during compilation, that's okay.
If there is an error in the compilation process, you have to find out if something is missing.
Not that, my Centos is the latest installation, there is no configuration, even gcc is temporarily installed.
If you are new to Centos, you still need to install the gcc environment.
yum install gcc-c++
See the link above for details, if you read it.
tar -zxvf redis-6.0.6.tar.gz
cp -r redis-6.0.6/usr/local/src/redis
cd /usr/local/src/redis/deps
make hiredis lua jemalloc linenoise
cd /usr/local/src/redis
make
mkdir /usr/local/redis
make install PREFIX=/usr/local/redis
Go in and you will see a bunch of files.
Catalog customization.
mkdir /root/myredis
cp /usr/redis/local/redis/redis.conf /root/myredis
cd /usr/local/redis/bin
. /redis-server /root/myredis/redis.conf
Recommended Posts