cd 扩展源文件钾 sudo phpize sudo ./configure --with-php-config=/usr/local/php/bin/php-config sudo make sudo make install
并在php.ini中添加。
extension = redis.so