1

我只想整理一些微实例并安装一些 gem。

4

1 回答 1

0

I recommend you just start an instance of a clean base AMI running the Linux distro of your preference from a trusted source. Then run the standard commands (e.g., apt-get, yum) to install the standard Ruby provided by the distro and go from there.

You don't need to find an AMI that has exactly the set of packages you want to run. Modern Linux makes it easy to install these cleanly.

With AMIs like the official Ubuntu or Amazon Linux you can even pass in a script as user-data and it will run it on first boot. You can use this to make sure that your desired packages and gems are installed when the instance runs.

于 2012-08-15T23:07:04.687 回答