问题标签 [aws-ec2]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
30 浏览

.htaccess - How to setup domain category to AWS EC2

I have 2 server AWS EC2 (EC2-A, EC2-B).

Now, I have 1 domain http://my-domain.com call to website in EC2-A (/var/www/html/website1).

I want setup domain category http://my-domain.com/category call to website in EC2-B (/var/www/html/website2).

Can I do it?

0 投票
0 回答
239 浏览

amazon-web-services - AWS - Is it possible to create subnet specific ELB Listeners?

I would like to create an ELB the spans three subnets and then to somehow configure three listeners that will forward ELB traffic to only instances on each subnet. Is there a way to do this without layering ELBs (1 ELB -> 3 subnet specific ELBs -> instances)?

To be more descriptive, I want 3 RabbitMQ clusters in 3 different subnets. Messages should be able to be arbitrarily published to any of the RMQ instances through an ELB. However, I would also like to be able to access the admin web consoles for each individual cluster through the ELB where the cluster is specified by using a different ELB port. In the [disfavored] multi-tier ELB configuration I described above, the main ELB would be used to publish messages and then the 3 subnet specific ELBs would be accessed when viewing the admin console.

Here is an example Terraform ELB resource that I'm currently using that has one listener that will forward to any instance in any of the subnets but I would like to have 3 listeners with 3 different lb_ports that forward to only instances on one of the 3 subnets:

0 投票
1 回答
1716 浏览

amazon-web-services - AWS EC2 不显示实例使用情况报告。为什么?

我使用 AWS EC2 免费套餐和 Elastic Beanstalk。我还没有从 AWS 购买任何服务。

当我以 root 身份登录时,AWS 通知我将超出免费套餐使用限制:

在此处输入图像描述

我想看报告。我做了所有这些文档所说的https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/usage-reports-instance.html#viewing-instance-usage 但 AWS 没有向我显示报告。我正确设置了所有必要的过滤器:

在此处输入图像描述

为什么?如何让 AWS 显示报告?

0 投票
0 回答
81 浏览

aws-ec2 - 带有消息“SQLSTATE [HY000] [2003] 的异常“PDOException”无法连接到 MySQL 服务器

我正在为我们的数据库使用 AWS RDS 服务器。它工作正常,但有时它显示错误:

当我点击我的页面两到三次时,它就会消失。

任何人都建议我,当我们将 AWS RDS 与 EC2 实例一起使用时有什么问题。

0 投票
0 回答
82 浏览

mysql - 调整 EC2 实例大小后 MySQL 无法正常工作

我已将单独的 MySQL 生产服务器配置为 EC2- 。这是 ubuntu 服务器。MySQL 在这个实例上运行了 3 年。

但是现在我考虑降级服务器,因为使用较少。当我使用AWS 给出的步骤将服务器降级为时,我能够调整它的大小并通过重新分配我的原始弹性 IP 来启动它,我发现 MySQL 现在可以从任何地方连接。 调整大小后,我对连接 MYSQL 进行了故障排除,如下所示。 1.在同一实例上使用ssh登录连接并使用命令行连接。 2.从外部(工作台)尝试相同的配置..




3. 检查分配给实例的安全组。这些也到位..
4.但是当我再次使用原始(m2.xlarge)调整实例大小时,它可以工作

仍然没有成功。调整大小过程后我错过了什么?

0 投票
2 回答
3651 浏览

python - 如何监控networkx图创建的状态?

我有一个数据集,它是一个代表网络的 csv/txt 文件。文件中的每一行包含两个用逗号分隔的节点名称。我的数据文件联系了大约 330k 个节点和大约 550k 个边。我正在尝试使用以下代码创建一个非常基本的图表(是的,我知道它会非常混乱):

我在 AWS EC2 m4.4xlarge 实例上运行它,它与 100% 的 CPU 和只有 1% 的内存挂钩。

我对此持怀疑态度,因为我认为 networkx 是内存密集型的,而不是 CPU 占用。现在,它正在运行 nx.draw 命令。有什么方法可以监控它的图形生成有多远?

0 投票
1 回答
8264 浏览

amazon-web-services - 实例报废:实例停止

我们最近收到了有关我们的一个实例的以下通知:

停用:此实例计划在 2015 年 12 月 14 日晚上 7:00:00 UTC-5 之后停用。

计划停用的实例将在指定日期后关闭。我们建议您启动替换实例并开始迁移到它们。

进一步的细节表明事件类型是instance-stop。根据文档

实例停止:实例将停止并开始将其迁移到新的主机。仅适用于由 Amazon EBS 支持的实例。

实例退役:实例将被终止。

Reboot:实例将重新启动(实例重新启动)或实例的主机将重新启动(系统重新启动)。

系统维护:实例可能暂时受到网络维护或电源维护的影响。

实例停止。这是否意味着我们不必做任何事情?如果没有,我们应该怎么做才能避免服务中断?

0 投票
1 回答
22 浏览

amazon-web-services - 在 AWS 主机上打开连接?

在我的 EC2 实例上,我从未关闭数据库连接,这是我的错误。

  1. 关闭并重新启动我的应用程序会释放资源吗?

  2. 我在 AWS 实例上打开的连接会影响同一主机上的其他客户吗?如果是,亚马逊如何保护此类违规行为?

0 投票
1 回答
295 浏览

laravel-5.1 - Forge AWS Laravel 安装

有没有人在使用 forge 和 AWS 进行 laravel 项目时遇到任何问题?

我最近按照说明进行操作,但遇到了太多无法评论的各种错误。

打开与我的 AWS EC2 实例的 SSH 连接后,我运行了 Taylor 在 Forge 上提供的命令,但我得到了找不到文件夹错误等?

0 投票
1 回答
207 浏览

tomcat - EC2 tomcat应用程序停止后不断重启

我有运行 tomcat 8 的 EC2 应用程序,它可以在暂存环境中自动扩展 1-2。当我登录 AWS EC2 控制面板(右键单击要停止的实例 > 选择实例状态 > 停止)时,它会停止实例但会启动一个新实例。

我的问题 是否可以停止实例以使其不创建新实例?如果是这样,如何实现。