links for 2009-08-24

August 25, 2009
  • <pre>
    Pre-requisites:

    * An EC2 account. Click on the sign-up for ec2 button.
    * Download the ec2 tools.
    * Generated an ec2 keypair.

    to build an EC2 LAMP Server.
    cd .ec2

    a lot of ec2 stuff happens in the .ec2 directory.

    To list the possible servers that you can set up run:
    ec2-describe-images -a

    I ran
    ec2-describe-images -a | wc -l

    and got 1477 possible servers. Some are Windows.

    Let’s say we see this listing:
    IMAGE ami-1539dc7c level22-ec2-images/ubuntu-8.04-hardy-20080205a.manifest.xml

    to start up the ubuntu server listed above type:
    ec2-run-instances ami-5647a33f -k ec2-keypair

    run this command:
    ec2-describe-instances

    We should see either “pending” or the actual instance running with its FQDN listed in the 4th column. An example FQDN is this:

    ec2-173-33-159-95.compute-1.amazonaws.com

    go to:
    http://ec2-173-33-159-95.compute-1.amazonaws.com/

    we should see a webserver.

    ssh:
    ssh -i ec2-keypair ec2-173-33-159-95.compute-1.amazonaws.com

    we’ll get the root prompt:
    #~

    </pre>

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: