Installing as non-root, non-sudo

Installing as non-root, non-sudo

Installing on RHEL as a non-root, non-sudo user is used only for development purposes.

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

  1. After downloading the Couchbase RPM, go to the directory where it is located and extract it:
    
    rpm2cpio couchbase-server-enterprise_x86_64_3.0.0-1767-rel.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 :
    1. Download openssl098e-0.9.8e-17.el6.centos.2.x86_64.rpm .
    2. Go to the directory where you extracted the Couchbase Server: cd opt/couchbase.
    3. Extract openssl098e RPM:
      rpm2cpio
      openssl098e-0.9.8e-17.el6.centos.2.x86_64.rpm | cpio --extract
      --make-directories --no-absolute-filenames
    4. 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 password-related script: ./bin/install/reloc.sh `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 .