安装redis:
1.下载:
wget http://download.redis.io/releases/redis-3.2.8.tar.gz
-
step2:解压
tar -zxvf redis-3.2.8.tar.gz
-
step3:复制,放到usr/local?录下
sudo mv ./redis-3.2.8 /usr/local/redis
-
step4:进?redis?录
cd /usr/local/redis/
-
step5:生成
sudo make
-
step6:测试,这段运?时间会较?
sudo make test
-
step7:安装,将redis的命令安装到/usr/local/bin/?录
sudo make install
-
step8:安装完成后,我们进入目录/usr/local/bin中查看
cd /usr/local/bin
ls -all