如何从EC2机器上查看 ec2服务器本机相关的信息呢?

想一下当前ec2服务器的instance-di是多少只要在
ec2机器上运行 wget -q -O - http://169.254.169.254/latest/meta-data/instance-id

如果要查看其它信息只要看下这个url目录下列出的内容 http://169.254.169.254/latest/meta-data
ami-id
ami-launch-index
ami-manifest-path
ancestor-ami-ids
block-device-mapping/
hostname
instance-action
instance-id
instance-type
kernel-id
local-hostname
local-ipv4
mac
network/
placement/
profile
public-hostname
public-ipv4
public-keys/
reservation-id
security-groups

你可能感兴趣的:(服务器,url)