How to install node.js, couchdb, and others on Amazon EC2? -


i diving deep end of server administration first time : ) fun times, know. i'm node.js developer, , i've used nodejitsu far. seeing prices rising, i'm taking stab @ setting own server aws.

on development machine, typically utilizes node.js, couchdb, redis, express.js, npm, git, vim, n (for node.js version management) , few other fun tools. i'm on ubuntu, use apt-get install things. how use yum install these things? and, if need update them later, mean apps need stopped in order me make updates?

any rock!

if want create node.js environment on ec2, @ time of writing have 3 options.

the first use amazon linux server (it sounds have tried this). under circumstances may prove advantageous reasons outside node.js requirements such price , how current image amazon.

however may have noticed there isn't pre-built node.js package available via yum package installer amazon linux. means have download source, compile , install - node js source available here : git clone git://github.com/joyent/node.git. then, in typical unix fashion : ./configure -> make -> make install. have same npm. i've done several times , without issue.

your second option, might not easiest newbie cloud system administrators use aws elastic beanstalk. elastic beanstalk has started supporting node provides automatically scaling node.js production environment out of tin. provides configuration management approach multiple environment deployments. if expect have large number of users , need implement scaled node architecture, approach you'll use put node application production. disclaimer : have tried , found quite difficult.

as others have suggested last option pick distribution of linux have pre-built node package installation.

with regards couchdb , redis, if going start writing node.js application may want consider migrating equivalent aws products. may want @ aws simpledb you'll find robust , useful module here https://github.com/rjrodger/simpledb , instead of using redis use elasticache http://aws.amazon.com/elasticache .

happy node hacking.


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -