Get the App
SLTechnology News&Howtos  ›  Development  › 

Analysis of Centos7.0 installation Redis instance

Shulou Source: shulou.com Published: 2022-06-01 00:38:03 10月22日 Update

This article mainly explains the "Centos7.0 installation Redis instance analysis", the article explains the content is simple and clear, easy to learn and understand, the following please follow the editor's ideas slowly in depth, together to study and learn "Centos7.0 installation Redis instance analysis" bar!

VM virtual machine / buy a server

Centos7.x+

Redis official website address

I have a version of redis-4.0.10.tar.gz that I installed here.

Link: https://pan.baidu.com/s/12qNGdoEFaZ0o-TOHB7KniA extraction code: W80y copy this content and open Baidu network disk mobile phone App, the operation is more convenient.

I uploaded it using Xftp

[root@Redis1~] # tar-zxvf redis-4.0.10.tar.gz

The decompressed redis is a source package, Redis is written in C, and the environment in which C must be installed

Yum install-y gcc

Be sure to enter the extracted redis directory to execute the command

Make MALLOC=libc

Or do the command execution in the redis directory extracted from redis?

Make install PREFIX=/usr/redis

. / redis-server

. / redis-cli-p 6379

Use the cp command to copy a copy of the redis.conf under redis to the / usr/redis/ directory

Cp / root/redis/redis.conf / usr/redis/

Modify the redis.conf file

Turn off the firewall

/ / View the current firewall status. Systemctl status firewalld// turns off the current firewall. The systemctl stop firewalld// boot firewall does not start. Permanently close systemctl disable firewalld

Windows client does not need to enter a password to test the connection

Thank you for your reading, the above is the content of "Centos7.0 installation Redis instance Analysis". After the study of this article, I believe you have a deeper understanding of the problem of Centos7.0 installation Redis instance analysis, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

Tags: Examples case analysis analysis firewall fire prevention content commands directories learning no addresses clients clients passwords that is ideas situations mobile phones files articles Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Tech Info Microsoft vpn MariaDB Apple