October 8, 2012
While you can download Ruby directly from here or from repositories (though you may not find latest version in it). I preferred using the awesome Ruby version manager tool (rvm) for this purpose. Our setup was in requirement of latest Ruby, Gems and Passenger with Apache2 module and that setup seems to be straightforward but I faced lots of smaller issues and hence thought of collecting and putting final commands here so that next time it would be a quick setup without all that digging.
These commands are tested successfully in Ubuntu 12.04 ec2 instance.
This is a preview of
Quickly setup rvm, Ruby, RubyGems and Apache with Passenger in aws ec2 ubuntu instance
.
Read the full post (363 words, estimated 1:27 mins reading time)
Read the full article →
September 10, 2012
Installation and configuration of MongoDB is relatively very easy. There are different ways you can run MongoDB, be it running single server, master-slave, replica-set or running in sharded/cluster way. By default, MongoDB installation doesn’t provide secure environment where clients should authenticate themselves before accesssing database.
My setup consists 2 small instances running as normal MongoDB servers and 1 micro instance running as arbiter. An arbiter is special member in replica-set which takes part in voting/selection of primary but doesn’t store any data in it. Its perfectly fine to host your arbiter server within an existing server running for some other service like load balancer (haproxy) etc because of its lighweight resource utilization. To make setup secure, clients must use username/password to connect to MongoDB and also members of replica-set must have shared key file.
This is a preview of
create secure mongodb replica-set in amazon aws ec2 instances
.
Read the full post (776 words, estimated 3:06 mins reading time)
Read the full article →