install ejabberd on amazon
I app-get and success install ejabberd on amazon , mounted esb drive as /dev/sda , but then, i terminated the image and fire any new 's开发者_运维问答ame image', attached my esb drive , all my previous installation was lost. anyway to persist my installation or files i added to the os?
when my instance is running and i right click and see 'bundled to ami' is grey out
Did you save your modified OS configuration as a new AMI? You'll need ec2-bundle-vol
, ec2-upload-bundle
(both from the ec2-ami
tools) and ec2-register
(from the ec2-api
tools). The User Guide from the documentation on Amazon's site is particularly informative and useful.
Donal's answer is a good one. An alternative way -- which may or may not be better depending on your needs -- would be to mount an Elastic Block Storage device to your EC2 instance. It basically acts like a mounted storage device (appears in /mnt) and persists independently of any particular instance. In fact, you can mount an EBS volume, write to it on one instance, unmount it, and attach it to a totally different instance.
Whether creating custom AMIs or using EBS is preferable is up to your particular use case.
精彩评论