官網(wǎng) https://redis.io/
下載解壓后進(jìn)入目錄 make
mkdir /usr/local/redis
cp redis.conf src/redis-server src/redis-cli /usr/local/redis/
cd /usr/local/redis
vi redis.conf修改配置锋勺,使redis服務(wù)在后臺運行:
redis.conf#
daemonize yes
phpredis安裝
git clone https://github.com/phpredis/phpredis.git
/usr/local/php/bin/phpize(在這里有可能出現(xiàn)autoconf沒有扔罪,直接使用yum安裝即可)
./configure --with-php-config = /usr/local/php/bin/php-config
make && make install