下面是应用于 EC2 实例的安全组(第一个)。

此安全组的规则是:

但是 ssh 命令给出以下错误:
$ ssh -i ./xyz.pem ec2-user@ec2-xx-xx-xx-xx.ca-central-1.compute.amazonaws.com
Connection closed by xx.xx.xx.xx port 22
Run Code Online (Sandbox Code Playgroud)
为什么ssh客户端无法连接到ubuntu实例类型?
我是亚马逊网络服务的新手.我创建了一个ec2实例,并希望在其上安装Java.我已下载rpm文件但无法执行它.下面是root下的文件夹/文件列表.
root@ip-172-31-6-12:~# ls
install.sh jdk1.8_1.8.0171-1_amd64.deb node_modules node-v8.11.3.tar.gz
jdk-10.0.1 jdk-8u171-linux-x64.rpm node-v8.11.3 survey
Run Code Online (Sandbox Code Playgroud)
当我跑步的时候
dpkg -i jdk1.8_1.8.0171-1_amd64.deb
Run Code Online (Sandbox Code Playgroud)
我收到了这条消息.
dpkg: warning: 'ldconfig' not found in PATH or not executable
dpkg: warning: 'start-stop-daemon' not found in PATH or not executable
dpkg: error: 2 expected programs not found in PATH or not executable
Note: root's PATH should usually contain /usr/local/sbin, /usr/sbin and /sbin
Run Code Online (Sandbox Code Playgroud)
请让我知道,我在这里缺少什么.
我在亚马逊的教育中获得了75美元和1年的免费等级用途.它被称为amazon aws学生初学者包.我在免费套餐中只创建了一个ec2实例和一个rds.但亚马逊每天收费75美元.即使我不能发出支持票.因为学生帐户无法创建支持服务单. https://aws.amazon.com/premiumsupport/knowledge-center/educate-starter-account/
请让我知道以下问题的答案:
在查看您的应用程序的自动缩放事件时,您注意到应用程序在同一小时内多次向上和向下扩展。您采用什么设计来优化成本同时保持弹性?
A.Modify Autoscaling group termination polict to terminate old Oldinstance first
B..Modify Autoscaling group termination polict to terminate old new instance first
C.Modify Cloud watch alarm period that triggers Autoscaling down policy
D.Modify auto scaling group cool down timers.
E.Modify the Autoscaling policy to use scheduled scaling Actions.
Run Code Online (Sandbox Code Playgroud)
我猜 D&E ..请建议!!
我想测试它们是如何工作的。我部署了 2 个站点,想了解什么是负载平衡等。
CloudWatch 下有事件和日志。为什么需要将日志从ec2发送到cloudWatch?