难道我的亚马逊EC 2上运行Linux的亚马逊或Ubuntu?亚马逊、我的、EC、Linux

2023-09-11 23:48:28 作者:半顆糖、也甜入心

我有点糊涂了这里。我创建了一个Amazon EC2实例在Ubuntu Linux 64位12.04 LTS,现在当我SSH到它,我得到以下

I am a little confused here. I created a Amazon EC2 instance with Ubuntu Linux 64-bit 12.04 LTS, now when I SSH into it I get the following

但在亚马逊管理控制台我得到以下

but on Amazon Management console I get the following

什么是错在这里?

推荐答案

这绝对是亚马逊的Linux操作系统(基于CentOS的),而不是Ubuntu的。另一个线索是,在亚马逊的Linux默认的用户名通常是EC2用户,而在Ubuntu是(至少如果你使用默认的股票AMI)Ubuntu的。我不知道怎么会这样,从当你创建它是你选择的不同,但我想这是任何一个人为错误或一个奇怪的问题。

This is definitely Amazon Linux (CentOS based), not Ubuntu. Another hint is that the default username in Amazon Linux is usually "ec2-user" while in Ubuntu it is "ubuntu" (at least if you use the default stock AMI). I don't know how it can be different from what you selected when you created it, but I guess it's either a human error or a weird bug.

修改:为了记录在案,问题是,他使用的是旧EBS卷(其中有亚马逊AMI)作为根卷

Edit: For the record, the problem was that he was using an old EBS volume (which had Amazon AMI) as root volume.