Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

added 1.8.1 coummunity installation scirpt

  • Loading branch information...
commit a2274ff23ef9d9bc99682e971f80c97db602be00 1 parent ef8edd8
@ronniedada ronniedada authored
Showing with 30 additions and 0 deletions.
  1. +30 −0 couchbase-server-community_x86_64_1.8.1.rpm.install
View
30 couchbase-server-community_x86_64_1.8.1.rpm.install
@@ -0,0 +1,30 @@
+#!/bin/bash -ex
+
+COUCHBASE_REST_PASSWORD=password
+COUCHBASE_MAX_RAM_MB_PER_SERVER=500
+COUCHBASE_MAX_RAM_MB_FOR_DEFAULT_BUCKET=500
+COUCHBASE_REPLICAS_FOR_DEFAULT_BUCKET=1
+
+yum -y install openssl098e
+
+wget http://packages.couchbase.com/releases/1.8.1/couchbase-server-community_x86_64_1.8.1.rpm
+
+rpm -i couchbase-server-*.rpm
+
+sleep 5
+
+/opt/couchbase/bin/couchbase-cli cluster-init -c 127.0.0.1 \
+ --cluster-init-username=Administrator \
+ --cluster-init-password=${COUCHBASE_REST_PASSWORD} \
+ --cluster-init-ramsize=${COUCHBASE_MAX_RAM_MB_PER_SERVER}
+
+/opt/couchbase/bin/couchbase-cli bucket-create -c 127.0.0.1 \
+ -u Administrator -p ${COUCHBASE_REST_PASSWORD} \
+ --bucket=default \
+ --bucket-type=couchbase \
+ --bucket-password= \
+ --bucket-ramsize=${COUCHBASE_MAX_RAM_MB_FOR_DEFAULT_BUCKET} \
+ --bucket-replica=${COUCHBASE_REPLICAS_FOR_DEFAULT_BUCKET}
+
+# At this point, visit http://$HOST:8091 for the Couchbase web console.
+
Please sign in to comment.
Something went wrong with that request. Please try again.