wget https://download.redis.io/releases/redis-6.0.9.tar.gz tar xf redis-6.0.9.tar.gz
yum install gcc
#升级到 5.3及以上版本 yum -y install centos-release-scl yum -y install devtoolset-9-gcc devtoolset-9-gcc-c++ devtoolset-9-binutilsscl enable devtoolset-9 bash
make make install
export REDIS_HOME=/user/local/redis-6.0.9 export PATH=$PATH:$REDIS_HOME/src source /etc/profile
cd utils./install_server.sh
#if [ "${_pid_1_exe##*/}" = systemd ] #then # echo "This systems seems to use systemd." # echo "Please take a look at the provided example service unit files in this directory, and adapt and install them. Sorry!" # exit 1 #fi
service redis_6379 start/stop/status