Installing as non-root, non-sudo

Installation on Ubuntu as non-root, non-sudo user is used only for development purposes.

If you perform a non-sudo, non-root installation you will still be able to run Couchbase Server and all Couchbase command-line tools.

  1. After downloading the Couchbase DEB package, go to the directory where it is located and extract it:
     > dpkg-deb -x couchbase-server-community_x86_64_2.0.0-1767-rel.deb $HOME

    In the directory where you extracted the files, you will see /opt and /etc subdirectories.

  2. After you extract the Couchbase Server installation files, go to the subdirectory:
      cd opt/couchbase
  3. Run this password-related script:
    ./bin/install/reloc.sh `pwd`

    This allows you to continue the installation as a non-root, non-sudo user.

  4. To run the server use
    ./bin/couchbase-server -- -noinput -detached
  5. To stop the server use
    ./bin/couchbase-server -k