One-click installation of redis under linux

Resource download (don't divide): https://download.csdn.net/download/wanghaisheng/15878316

        Redis is a kind of in-memory database. It is called an in-memory dictionary. It can read and write on the network like a database, and it has a faster query speed than a database, so it is usually used for data transfer between the database and the application. Temporary cache processing. This can reduce the access pressure of the database and speed up the data acquisition speed of the application.

The REDIS service here is used by our streaming media system platform, such as chat module, WEB interaction, etc.

The installation of REDIS is relatively simple, I also made it into a script here, and the execution of a command is completed. After that, a system service is required to run.

installation method

1. The  installation file is tested in CentOS6 CENTOS7. Connect to the network before installation. Because there will be some system upgrade operations. Test other systems by themselves.

2. Download the resource and decompress it under LINUX. Note that after decompression, enter the Redis_offline directory, and then execute the command

     sh  Redis_install.sh

     Wait for the installation to complete.

3. After the  installation is complete, it does not start, you can execute the following command

     $ redis start

     Then it started. It will start automatically when the system starts in the future, because it has become a service

Configuration file

        Let's take a look at the Redis_offline directory. There is a redis.conf file. This is the configuration file after installation. If you want to configure it in advance, you can modify this configuration file first. During the installation process, this file will be copied as a redis configuration file.

The current port is 6379, we don't want to change it, because we want to be consistent with our WEB default value. Of course, if you use it for other purposes, you can also modify it.

 

 

Guess you like

Origin blog.csdn.net/wanghaisheng/article/details/114951010