美文网首页
redis 安装

redis 安装

作者: AGEGG | 来源:发表于2020-04-11 13:40 被阅读0次

预装软件:gcc tcl
Redis :http://download.redis.io/releases/
tar -xf redis-2.8.13.tar.gz
cd redis-2.8.13
make
sudo make install
which redis-server
cp redis.conf /home/vagrant/config/redis/redis.conf
vim /home/vagrant/config/redis/redis.conf

//后台启动
doemonize yes

sudo redis-server /home/vagrant/config/redis/redis.conf

//redis 客户端
redis-cli

php redis拓展安装

//查看php拓展
php-m

phpize/php-config
(yum install php-devel)

wget http://github.com/phpredis/phpredis/archive/develop.zip

unzip develop.zip
cd phpredis-develop/
phpize
./configure --with-php-config=/usr/bin/php-config
make
make install
php.ini
vim php.ini
//添加
extension=redis.so

相关文章

网友评论

      本文标题:redis 安装

      本文链接:https://www.haomeiwen.com/subject/qctwphtx.html