这里是要将 Redis 安装到 Linux 系统中。
2.1Redis 的安装
2.1.1 克隆并配置主机
我这里面的虚拟机里面已经安装过CentOS7系统 在这个系统里面已经关闭了防火墙 已经安装过jdk tomcat maven mysql maven
现在我们克隆出来






修改名字

vim /etc/hostname

键盘输入i
改成redis

esc :wq
vim /etc/sysconfig/network-scripts/ifcfg-ens33

之前的

现在改成 把100改成101

esc :wq
reboot

完成修改名字

连接客户端
我这里面用的是FinalShell
现在我们采用主机名连接 不用IP连接
C:\Windows\System32\drivers\etc



修改完 保存
然后在把桌面的这个文件替换回去

现在我就可以用主机名 而不是用的IP


修改主机名:/etc/hostname
修改网络配置:/etc/sysconfig/network-scripts/ifcfg-ens33