linux系统

Find out the instance id from an ec2 machine

How to find out the instance-id on an ec2 server?Let’s do it, just two step

First, on ubuntu ec2 instance

sudo apt-get install cloud-utils

Second, run the following command

You can get most of the metadata associated with the instance this way

 

 

© 2016, 深夜的蚊子. 版权所有. 如转载,请注明:转载自 蚊子空间站[http://www.wenzizone.com]

Leave a Reply

Your email address will not be published. Required fields are marked *