XAMPP 7.3已经安装并正常运行,本地主机也正常工作。现在我想安装PHP-Redis来测试Redis的效果。
我一直遵循这里的说明:https://www.9lessons.info/2016/12/install-xampp-70-on-ubuntu-and-mac-osx.html 所以,我已经安装了PHP-Redis:
在重新启动XAMPP后,
我还在
然而,Redis插件似乎没有加载,我在安装中出了什么问题?
我一直遵循这里的说明:https://www.9lessons.info/2016/12/install-xampp-70-on-ubuntu-and-mac-osx.html 所以,我已经安装了PHP-Redis:
$ brew install homebrew/php/php70
$ brew install homebrew/php/php70-redis
我接着编辑了XAMPP目录(/Applications/XAMPP/xamppfiles/etc/php.ini)下的php.ini
文件,并添加了以下行:
extension="redis.so"
在重新启动XAMPP后,
phpinfo()
中无法识别 Redis,并且尝试设置 Redis 类会导致 Fatal error: Uncaught Error: Class 'Redis' not found in /Applications/XAMPP/xamppfiles/htdocs/test/redis_cache_test.php
。我还在
php.ini
中进行了尝试:extension=/usr/local/Cellar/php70/7.0.19_11/lib/php/extensions/no-debug-non-zts-20151012/redis.so
然而,Redis插件似乎没有加载,我在安装中出了什么问题?
brew install php@7.0
...这是一个旧教程!) - ceejayoz