命令下载:wget https://download.redis.io/releases/redis-6.2.6.tar.gz
安装gcc:yum -y install gcc automake autoconf libtool make;
进入src下make编译:make;
·make MALLOC=libc(报错时执行)
make install
新建文件夹
相关文件复制
·cp redis.conf /u01/softs/redis/redis-6.2.6/etc
· cd src/
· cp mkreleasehdr.sh redis-benchmark redis-check-aof redis-check-rdb redis-cli redis-server redis-sentinel /u01/softs/redis/redis-6.2.6/bin/
进入bin 启动(但这种启动方式不能退出控制台,如果退出,那么redis服务也会停止)
·cd /u01/softs/redis/redis-6.2.6/bin
·./redis-server /u01/softs/redis/redis-6.2.6/etc/redis.conf
·查看进程: ps -ef |grep redis
7.1、开启守护进程模式
daemonize yes
进入进程,退出进程,关闭进程