centos安装redis

一、安装redis

yum install redis -y

二、安装php-redis拓展

1.搜索下载redis拓展

下载合适版本

https://pecl.php.net/package/redis

解压进入目录

phpize

./configure –enable-redis –with-php-config=/usr/bin/php-config

make && meke install

增加配置

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注