Skip to content

Installing on Linux without package manager access

Traun Leyden edited this page Jul 28, 2015 · 4 revisions

This guide is specifically geared towards installing Sync Gateway to run as a Systemd service on a Red Had Enterprise Linux server.

Prepare tarball

  1. Download the latest Sync Gateway RPM file from here, at the time of this writing: wget http://packages.couchbase.com/releases/couchbase-sync-gateway/1.1.0/couchbase-sync-gateway-enterprise_1.1.0-28_x86_64.rpm

  2. Extract it: rpm2cpio couchbase-sync-gateway-enterprise_1.1.0-28_x86_64.rpm | cpio -idmv. NOTE: you will see several Permission denied errors, but you can safely ignore those since they are just the example configs.

  3. You should have a new subdirectory called opt with the following structure

  4. cd opt to go into the opt directory, and do any customization you need -- such as adding a Sync Gateway configuration JSON file that you may want to distribute in your tarball.

  5. tar cvfz couchbase-sync-gateway.tar.gz couchbase-sync-gateway to create the tarball

  6. Upload the tarball where you can access it from other machines. For example, to upload to Filebin, use curl -F file="@couchbase-sync-gateway.tar.gz" http://filebin.ca/upload.php

Run Sync Gateway from tarball

  1. Download the tarball wget http://filebin.ca/2AE20VG9M96u/couchbase-sync-gateway.tar.gz

  2. Extract it tar xvfz couchbase-sync-gateway.tar.gz && cd couchbase-sync-gateway

  3. Download an example config wget https://raw.githubusercontent.com/couchbase/sync_gateway/master/examples/basic-walrus-bucket.json -O config.json

  4. Run Sync Gateway ./bin/sync_gateway config.json -- you should see something like this output

Run Sync Gateway as a Systemd service (OPTIONAL -- NOT WORKING YET)

  1. Create the sync_gateway user sudo useradd -m sync_gateway

  2. Move to the /opt directory sudo mv couchbase-sync-gateway /opt

  3. Install it as a service cd /opt/couchbase-sync-gateway/service && sudo ./sync_gateway_service_install.sh

Clone this wiki locally