redis 安装

2020-04-11  本文已影响0人  AGEGG

预装软件: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
上一篇 下一篇

猜你喜欢

热点阅读