安装redis
安装依赖环境
yum install -y gcc
cd /opt
tar -xf redis-5.0.7.tar
cd redis-5.0.7/
make && make install PREFIX=/usr/local/redis install
vim /opt/redis-5.0.7/utils/install_server.sh
cd /opt/redis-5.0.7/utils
./install_server.sh
Please select the redis executable path [] /usr/local/redis/bin/redis-server
redis-cli