Installing Couchbase on AWS and Ubuntu

Couchbase is a nosql database built upon memcache technology with persistence and flexibility in both scaling up and down.

Here is how to install on AWS. (If you are just installing on ubuntu locally or on your own server then just follow from step 5 onwards).

  1. Launch AWS instance (64 bit Ubuntu 12.04LTS) (personally I use dedicated hardware for production but a M1 medium box will do for testing)
  2. Ensure that for now your aws security group has port 8091 open to your ip
  3. In the future when using the couchbase sdk's ensure that the following ports are open Couchbase Ports
  4. Ssh onto the machine using the keyfile you created with ssh -i YOUR-PEM-FILE.pem ubuntu@INSTANCE-PUBLIC-DNS
  5. sudo wget http://packages.couchbase.com/releases/2.2.0/couchbase-server-enterprise_2.2.0_x86_64.deb
  6. sudo dpkg -i couchbase-server-enterprise_2.2.0_x86_64.deb
  7. sudo service couchbase-server status
  8. Visit INSTANCE_IP:8091
  9. Start a new cluster
  10. Turn replicas off and enable flush
  11. Delete default bucket
  12. Create new bucket with 1GB of ram

comments powered by Disqus