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

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

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

解决Laravel在phpstudy下使用redis报错Please make sure the PHP Redis extension is installed and enabled._第1张图片

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

解决Laravel在phpstudy下使用redis报错Please make sure the PHP Redis extension is installed and enabled._第2张图片

解决Laravel在phpstudy下使用redis报错Please make sure the PHP Redis extension is installed and enabled._第3张图片

你可能感兴趣的:(php,laravel,redis)