PHP中文网2017-04-24 09:12:45
Installing the redis extension requires compiling it yourself
https://github.com/phpredis/phpredis This is the project address. After you download the source code, unzip it and go to its directory
The command is probably the following one, there are a lot of them in Baidu
phpize
./configure
make
sudo make install
Please note that the php related items in /usr/bin are soft-linked to the php program under xampp. Otherwise, the default is the php that comes with mac
You may also need the source code of php and some packages such as autoconf need to be installed