[Introduction to redis] Install redis under Centos

Material preparation##

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

Say in front

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.

Compile redis

1、 Install C++ Environment###

If you are new to Centos, you still need to install the gcc environment.

yum install gcc-c++

2、 Put the downloaded installation package on Centos###

See the link above for details, if you read it.

3、 Unzip###

tar -zxvf redis-6.0.6.tar.gz

4、 Copy the compressed file to /usr/local/src###

cp -r redis-6.0.6/usr/local/src/redis

5、 Open /usr/local/src/redis/deps to compile dependencies###

cd /usr/local/src/redis/deps
make hiredis lua jemalloc linenoise

6、 Open /usr/local/src/redis to compile###

cd /usr/local/src/redis
make

7、 Install the redis directory above into /usr/local/redis###

mkdir /usr/local/redis
make install PREFIX=/usr/local/redis

8、 Enter /usr/local/redis/bin

Go in and you will see a bunch of files.

9、 Move the configuration file to the /root/myredis directory###

Catalog customization.

mkdir /root/myredis
cp /usr/redis/local/redis/redis.conf /root/myredis

10、 Start the redis server###

cd /usr/local/redis/bin
. /redis-server /root/myredis/redis.conf

11、 Start the redis client###

Recommended Posts

[Introduction to redis] Install redis under Centos
Three ways to install JDK under CentOS
Install mysql5.7 under CentOS7
Install ActiveMQ under Centos7
Install PostgreSQL12 under CentOS7
Install CentOS under VMware
Install redis5.0 in CentOS7
Install mysql under Centos 7
Install Jenkins under Centos 7
Redis3 installation under Centos7
Install MariaDB under MariaDB Centos7
Install mysql5.1 under CentOS6.5
CentOS 7 install Redis 5.0.8 original
How to install and configure Redis on CentOS 8
Centos7.6 method to install Tomcat-8.5.39
Redis cluster installation under CentOS
Linux Centos7 install redis tutorial
Install Oracle11gR2 database under CentOS6.9
Install MySQL under Linux (CentOS 7)
Redis cluster installation under CentOS
Install Java JDK8 under CentOS6
Install MongoDB database under CentOS7
CentOS 6.8 under linux install mongodb
Install Mesos tutorial under CentOS7
How to install jdk1.8 on centOS7
How to install MySQL on CentOS 8
Install and configure keepalived under CentOS 5.9
Compile and install LAMP under Centos 5.2
How to install Memcached on CentOS 8
How to install R on CentOS 8
How to install FFmpeg on CentOS 8
How to install Virtualbox on CentOS 8
How to install TensorFlow on CentOS 8
How to install TeamViewer on CentOS 8
How to install Perl 5 on CentOS
How to install Git on CentOS 8
How to install PHP7.4 in CentOS
How to install Gradle on CentOS 8
How to install Elasticsearch on CentOS 8
How to install Jenkins on CentOS 8
How to install Java on CentOS 8
How to install Go on CentOS 8
How to install GCC on CentOS 8
How to install Yarn on CentOS 8
How to install Nginx on CentOS 8
How to install Asterisk on CentOS 7
How to install Jenkins on CentOS 8
How to install Vagrant on CentOS 8
How to install Python 3.8 on CentOS 8
How to install Tomcat 9 on CentOS 8
How to install Webmin on CentOS 8
Install Harbor mirror warehouse under CentOS
How to install Ruby on CentOS 8
How to install Skype on CentOS 8
How to install htop on CentOS 8
How to install Python on CentOS 8
Install Python3 and ansible under CentOS8
Install the latest OpenCV4.3 under Centos8
Install and use docker under CentOS 6.8
How to install Elasticsearch on CentOS 8
How to install HDP2.6 in Centos7.2