linux redis 安装部署介绍
1.下载文件
去redis官网下载linux版本软件包或者其他途径
2.上传LINUX
上传到你要安装的目录
3.解压
tar -zxvf 软件包名
4.编译
进入解压好的包根目录进行执行该命令
make
5.安装
make install
6.启动
cd /src
./redis-server ../redis.conf
7.测试
./redis-cli
set test hello
ok
get test
hello
8.注意事项
1.linux有gccg++环境/安装redis6,保证gcc 版本为7
查看gcc版本
gcc -v
安装gcc环境
yum install gcc-g++
2.后台启动redis,需要进行修改redis.conf 配置文件
vi redis.conf
daemonize yes
3.telnet redis 端口不通
查看防火墙是否关闭
systemctl status firewalld
修改redis.conf配置文件
bind 0.0.0.0