Installing as non-root, non-sudo
Installing on RHEL as non-root, non-sudo is used only for development purposes.
Attention: This installation is
for development purposes only.
There are cases when you want to install Couchbase Server as a non-root, non-sudo user. A non-sudo, non-root installation still runs Couchbase Server and all Couchbase command-line tools.
- After downloading the Couchbase RPM, go to the directory where it is located and extract
it:
In the directory where the files were extracted, the opt and etc subdirectories are available.rpm2cpio couchbase-server-community_x86_64_2.0.0-1767-rel.rpm | cpio --extract --make-directories \ --no-absolute-filenames
- 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 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/
- After you extract the Couchbase Server installation files, go to the subdirectory cd opt/couchbase.
- 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.
- To run the server, use ./bin/couchbase-server \-- -noinput -detached.
- To stop the server, use ./bin/couchbase-server -k .