安装
wget https://download.redis.io/releases/redis-6.2.7.tar.gz
tar xf redis-6.2.7.tar.gz
mv redis-6.2.7 /usr/local
cd /usr/local/redis-6.2.7
make && make install
启动脚本
echo "/usr/local/redis-6.2.7/src/redis-server /usr/local/redis-6.2.7/redis.conf &" >> /usr/local/redis-start.sh
chmod +x /usr/local/redis-start.sh
echo "export PATH=\$PATH:/usr/local/redis-6.2.7/src" >> /etc/profile
source /etc/profile
评论区