下载redis
http://download.redis.io/releases/
下载我们需要的版本redis


cd到reids目录
执行 make && make install
修改端口号,如果不修改默认6379

前台启动./redis-server …/redis.conf

后台启动
编辑redis.conf

再次启动
./redis-server …/redis.conf
#停止firewall
systemctl stop firewalld.service
#禁止firewall开机启动
systemctl disable firewalld.service
#打开端口的对外访问
firewall-cmd --zone=public --add-port=7001/tcp --permanent
查看防火墙状态:firewall-cmd --state
linux命令行连接

window桌面管理连接

如果window连接不上虚拟机的redis
在redis的配置文件中,配置自己所绑定的ip为linux机器的Ip
bind 127.0.0.1 192.168.56.103

本文详细介绍如何从官网下载Redis,并在Linux环境下进行安装与配置。包括修改端口号、启动与停止服务、配置防火墙及跨系统连接等关键步骤。
1114

被折叠的 条评论
为什么被折叠?



