Sunday, October 12, 2014

Exploring Couchbase Via Command Line

Exploring Couchbase

Few links to get familiarize with :
1. You can get the complete information on the Couchbase tools and CLI @
http://docs.couchbase.com/couchbase-manual-2.5/cb-cli/
2. Fab
http://docs.fabfile.org/en/latest/usage/fab.html


DAEMON=/opt/couchbase/bin/couchbase-server
PIDFILE=/opt/couchbase/var/lib/couchbase/couchbase-server.pid
NODEFILE=/opt/couchbase/var/lib/couchbase/couchbase-server.node
COOKIEFILE=/opt/couchbase/var/lib/couchbase/couchbase-server.cookie





How to Un-Install Couchbase ?
If you have used rpms, then follow the below (of course every firm has its own way)

1. Check the status of the couchbase and stop if it is running..
 service couchbase status
 service couchbase stop
2. Check the Rpms installed
 rmp -qa | grep couchbase
3. Remove the Rpms
 rmp -e couchbase-server-2.5-1083.x86_64
4. Clean up the related directories (if you have different ones, then proceed accordingly)
NOTE: Becareful, below are destructive (if you have other files, then just remove couchbase related files)
 cd /opt
 rm -rf *
 cd /data/couchbase
 rm -rf *
 ls -ltr /etc/init.d/couch* -- shouldn't see anything

Change the couch base user password ?

Note: Point to remember is : Nothing goes wrong when you change the password, but at the same time you should change the password on all the nodes in a cluster.

 pwd
/opt/couchbase/bin
[root@cbhostraj bin]# ./cbreset_password

Please enter the new administrative password (or <Enter> for system generated password):

Running this command will reset administrative password.
Do you really want to do it? (yes/no)yes
Resetting administrative password...
Password for user admin was successfully replaced.

No comments: