安装完phpredis 后重启nginx和php-fpm 重启方法: service nginx restart // 重启nginx /etc/init.d/php-fpm restart // 重启 php-fpm 重启后可在 phpinfo 中查看到安装了的redis 世事洞明皆学问