EC2 Instance with Ubuntu, Node, Nginx and MongoDB

The future is here. Tis Javascript ladies and gents. I got into it after my teach Jones started showing my how capable it is. It fits the bill for all things modern including scalable performance from a high powered database, web sockets, and serverside javascript in the form of NodeJS.

Let’s get it all set up!

  1. Follow the tutorial here: http://www.robertsosinski.com/2008/01/26/starting-amazon-ec2-with-mac-os-x/ and here if you can’t connect via ssh: http://paulstamatiou.com/how-to-getting-started-with-amazon-ec2
  2. Then here: http://cuppster.com/2011/05/12/diy-node-js-server-on-amazon-ec2
  3. Finally, install Mongo here: http://brilliantcorners.org/2010/12/a-better-way-to-install-mongodb/

If you can’t figure it out, give me a shout and I’ll make a little installation video.

Also, you might run into trouble on the step where your supposed to curl the supervisor script, don’t worry, git is just redirecting you. Just go to the URI and copy + paste the script into the file the curl command created and you’re all good.

curl https://gist.github.com/raw/176149/88d0d68c4af22a7474ad1d011659ea2d27e35b8d/supervisord.sh > supervisord

That’s it!

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.