在“Elastic Beanstalk EC2”上安装 redis 时出现错误中断

问题描述 投票:0回答:1

我使用 AWS Elastic Beanstalk + github 操作进行 CI/CD, 尝试安装 redis 时出错停止进度..

https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/nodes-connecting.html

我正在参考这篇文章并继续进行。如果您在“EC2 redis-cli”安装阶段执行“make”命令

如下图,执行停止,不再继续进行..

stopped execution image

由于这种停止现象,EB 也会更改为错误状态。

EB also changes to an error state

我想要一些关于如何解决它的建议。谢谢你。

amazon-web-services installation redis
1个回答
0
投票

昨天根据别人的建议,分享一下我是如何解决的!

您不必直接在 EC2 服务器上安装 redis-cli。

制作ElastiCache Redis后即可连接到项目!

在本地运行时,据说无法与 Elasticache Redis 主机地址链接(-> 我不知道这一点..)

参考:https://kth990303.tistory.com/450(-> 这是韩语。)

因此,您将 ElastiCache 端点作为“redishost”值,

+)示例图像

Aws ElastiCache redis endpoint

Write redis endpoint to Spirngboot project's 'application.yml'

Add values to aws Elastic Beanstalk Environment Variables

如果我在本地运行它,它将无法工作...如果我将其部署为 EB 然后测试它,它运行良好!

+)本地运行时,只能在本地Redis服务器上测试

我分享这个是因为我认为像我这样刚接触 Redis 设置的人可能会迷路!

© www.soinside.com 2019 - 2024. All rights reserved.