Installing as non-root, non-sudo

Installing on RHEL as a non-root, non-sudo user on a single machine.
This installation method is intended only for development purposes and is not supported in production.

A non-sudo, non-root installation still runs Couchbase Server and all Couchbase command-line tools.

  1. After downloading the Couchbase Server RPM, go to the directory where it is located and extract it:

    rpm2cpio couchbase-server-enterprise_version.rpm
    | cpio --extract --make-directories --no-absolute-filenames

    In the directory where the files were extracted, the opt and etc subdirectories are available.

  2. If you need to separately provide openssl098e, put the contents of this library into /opt/couchbase/lib:

    • Download openssl098e-0.9.8e-17.el6.centos.2.x86_64.rpm.

    • Go to the directory where you extracted the Couchbase Server:

      cd opt/couchbase.
    • Extract openssl098e RPM:

      rpm2cpio openssl098e-0.9.8e-17.el6.centos.2.x86_64.rpm
      | cpio --extract --make-directories --no-absolute-filenames
    • Move the extracted files to the /lib directory for Couchbase Server:

       mv /usr/lib64/* lib/
  3. After you extract the Couchbase Server installation files, go to the subdirectory:

    cd opt/couchbase
  4. Run the following script to relocate the Couchbase Server installation to the present working directory (PWD):

     ./bin/install/ `pwd`

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

  5. To run the server, use

     ./bin/couchbase-server \-- -noinput -detached
  6. To stop the server, use

    ./bin/couchbase-server -k