【发布时间】:2017-10-04 17:12:21
【问题描述】:
我已经使用 composer 命令安装了 Lumen。我在启动服务器时遇到错误,命令是php artisan serve
错误:
[Symfony\Component\Debug\Exception\FatalErrorException]
Class 'Memcached' not found
我仍然安装了 Memcached,它无法正常工作。
【问题讨论】:
-
你安装了memcached pecl 包吗?它在 Laravel 文档中被声明为该缓存驱动程序的要求。 lumen 文档声明 lumen 使用 Laravel 缓存代码。
-
我是按照教程安装的,那里没有提到pecl。你能分享博客链接或其他我可以获得在 mac os x 上安装 Memcached 的所有必要信息吗?
标签: php laravel memcached lumen laravel-artisan