1. First, you can download http://pecl.php.net/package/redis After decompressing the expansion package, it enters the first level for execution
/opt/homebrew/opt/ [email protected] /bin/phpize && amp; \
./configure –with-php-config=/opt/homebrew/opt/ [email protected] /bin/php-config
Please modify it according to your PHP version and the location of phpize.
2. If an error is reported in the first step as follows:
Available for download: https://github.com/phpredis/phpredis/archive/develop.zip
Then proceed to step 1