解决Laravel在phpstudy下使用redis报错Please make sure the PHP Redis extension is installed and enabled.

浏览1352

博主在用使用laravel8过程中使用redis报如下错误:

Please make sure the PHP Redis extension is installed and enabled.

image.png

出现这个原因是phpstudy面板PHP默认没有开启redis默认缓存组件,解决方法如下,打开phpstudy面板,点击软件管理,找到项目对应的PHP版本,点击设置,切换到扩展组件,开启redis缓存组件即可。

image.png

image.png


  • 暂无任何回答