VM virtual machine/Buy a server
Centos7.x
Redis official website address
I put here my installed version redis-4.0.10.tar.gz
链接:https://pan.baidu.com/s/12qNGdoEFaZ0o-TOHB7KniA 提取码:w80y 复制这段内容后打开百度网盘手机App,操作更方便哦
I used Xftp to upload
[root@Redis1~]# tar -zxvf redis-4.0.10.tar.gz
The decompressed redis is the source code package, Redis is written in C,The C environment must be installed
yum install -y gcc
Be sure to enter the decompressed redis directory to execute the command
make MALLOC=libc
Or execute the command in the redis directory where redis is decompressed
make install PREFIX=/usr/redis
./redis-server
./redis-cli –p 6379##10. External connection to access Redis operations
cp /root/redis/redis.conf /usr/redis/
//查看当前防火墙状态。 systemctl status firewalld//关闭当前防火墙。 systemctl stop firewalld//开机防火墙不启动。永久关闭systemctl disable firewalld
The above is the detailed content of Centos7.0 installation Redis instance analysis. For more information, please follow other related articles on the PHP Chinese website!