码迷,mamicode.com
首页 > 其他好文 > 详细

#redis 安装命令

时间:2019-06-15 20:06:17      阅读:76      评论:0      收藏:0      [点我收藏+]

标签:down   bash   config   lease   conf   include   download   predis   clu   

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
sudo mv redis-4.0.11 redis
cd redis/
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


cd /usr/local/php/include/php/ext/
sudo wget https://github.com/phpredis/phpredis/archive/4.3.0.tar.gz
sudo tar xf 4.3.0.tar.gz
cd phpredis-4.3.0/
sudo phpize
sudo ./configure --with-php-config=/usr/local/php/bin/php-config

#redis 安装命令

标签:down   bash   config   lease   conf   include   download   predis   clu   

原文地址:https://www.cnblogs.com/roverliang/p/11028631.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!