debian9安装redis

下载
wget http://download.redis.io/releases/redis-4.0.9.tar.gz

创建redis配置目录
mkdir /etc/redis/conf -p

解压
tar xf redis-4.0.9.tar.gz
cd redis-4.0.9/

复制文件
cd /usr/local/redis-4.0.9/src
cp redis-cli /etc/redis/
cp redis-server /etc/redis/

cd /usr/local/redis-4.0.9
cp redis.conf /etc/redis/conf

启动
nohup ./redis-server redis.conf &

  

posted @ 2022-03-24 15:23  lucky_tomato  阅读(73)  评论(0编辑  收藏  举报