任何人都可以帮我在 MAC OSX 中安装 php-redis 吗?
brew install php-redis
不工作。
pecl install php-redis
也不起作用 -
无效的包名称/包文件“php-redis”。
自制错误:
自制错误 https://i.stack.imgur.com/jJgg7.png
git clone https://www.github.com/phpredis/phpredis.git
cd phpredis
phpize && ./configure && make && sudo make install
Add extension=redis.so
在你的 php.ini 中
brew services restart [email protected] /cdn-cgi/l/email-protection
make test
您可以检查是否工作
php -r "if (new Redis() == true){ echo \"\r\n OK \r\n\"; }"
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)