CredisException Error: Apache Bigcommerce Hello World

CredisException Error: Apache Bigcommerce Hello World

我正在尝试 运行 Apache 上的 BigCommerce Hello World 应用程序。它安装正常,但是当我启动它时,出现错误。

Client.php 第 447 行中的 CredisException: 与 Redis 的连接在 1 failures.Last 错误后失败:(10061) 无法建立连接,因为目标机器主动拒绝它。

我尝试禁用 Windows 防火墙但没有帮助。

我查看了Client.php第447行,但它只是显示错误消息的代码。

我已经搜索了 10 多个小时的解决方案,但我无法解决这个问题。

这是由于 Redis 导致的错误,Redis 是此应用在其示例中使用的键值数据库存储。特别是因为您的程序无法连接到它(很可能在端口 6379,它的默认端口上)。

我相信您实际上需要先在您的机器上安装 运行 Redis 才能让这个应用程序运行,然后您才能通过 Credis 连接它,一个 php Redis 客户端(即PHP 基于程序,允许您连接到您的 Redis 数据库)。

同样,如果您的计算机上未安装 MySQL,您将无法使用 MySQL 客户端。

以下是在 Windows 机器上安装和 运行ning Redis 的说明:

How do I run Redis on Windows?

一定要使用默认端口6379。