- 
                Notifications
    You must be signed in to change notification settings 
- Fork 140
Installing on Linux without package manager access
This guide is specifically geared towards installing Sync Gateway to run as a Systemd service on a Red Had Enterprise Linux server.
- 
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
- 
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.
- 
You should have a new subdirectory called optwith the following structure
- 
cd optto 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.
- 
tar cvfz couchbase-sync-gateway.tar.gz couchbase-sync-gatewayto create the tarball
- 
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
- 
Download the tarball wget http://filebin.ca/2AE20VG9M96u/couchbase-sync-gateway.tar.gz
- 
Extract it tar xvfz couchbase-sync-gateway.tar.gz && cd couchbase-sync-gateway
- 
Download an example config wget https://raw.githubusercontent.com/couchbase/sync_gateway/master/examples/basic-walrus-bucket.json -O config.json
- 
Run Sync Gateway ./bin/sync_gateway config.json-- you should see something like this output
- 
Create the sync_gateway user sudo useradd -m sync_gateway
- 
Move to the /optdirectorysudo mv couchbase-sync-gateway /opt
- 
Install it as a service cd /opt/couchbase-sync-gateway/service && sudo ./sync_gateway_service_install.sh