Analysis of Centos7.0 installation Redis instance
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!