To get 2.5.0 with multiple instances run rpm2cpio as this
- rpm2cpio couchbase-server-enterprise_2.5.0_x86_64.rpm | cpio --extract --make-directories --no-absolute-filenames
- Copy the extracted directory to /opt/couchbaseX
Create each instance here.
- Instance 1 = /opt/couchbase and is default install and default files
- Instance 2 = /opt/couchbaseX
Modified the following files
- /etc/init.d/couchbase-server to /etc/init.d/couchbase-serverX linked to /opt/couchbaseX/bin/couchbase-server
- /opt/couchbaseX/bin/couchbase-server and change the paths inside this file
- /opt/couchbaseX/etc/couchbase/static_config and change paths to /opt/couchbaseX and add user-defined ports
- /opt/couchbaseX/etc/couchbase_init.d file and change paths to /opt/couchbaseX
Change the ROOTDIR variable in this directory /opt/couchbaseX/lib/erlang/bin for ‘erl’ and ‘start’ files.
- erl:ROOTDIR=/opt/couchbaseb/lib/erlang
- start:ROOTDIR=/opt/couchbaseb/lib/erlang
Start
- cd /opt/couchbaseX/bin/
- ./couchbase-server start
No comments:
Post a Comment