redis安装

cd /usr/local
sudo wget http://download.redis.io/releases/redis-4.0.11.tar.gz
sudo tar xf redis-4.0.11.tar.gz
cd redis-4.0.11/
sudo make
sudo ln -s /usr/local/redis/src/redis-cli /usr/local/bin/
sudo ln -s /usr/local/redis/src/redis-server /usr/local/bin/
echo 'alias redis_start="/usr/local/bin/redis-server /usr/local/redis/redis.conf"' >> ~/.bashrc
posted @ 2019-06-15 17:34  roverliang  阅读(123)  评论(0编辑  收藏  举报