Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

31 lines (21 sloc) 0.9 kb
#!/bin/bash -ex
MEMBASE_REST_PASSWORD=password
MEMBASE_MAX_RAM_MB_PER_SERVER=500
MEMBASE_MAX_RAM_MB_FOR_DEFAULT_BUCKET=500
MEMBASE_REPLICAS_FOR_DEFAULT_BUCKET=1
yum -y install openssl098e
wget http://packages.couchbase.com/releases/1.7.2/membase-server-community_x86_1.7.2.rpm
rpm -i membase-server-community*.rpm
sleep 5
/opt/membase/bin/membase cluster-init -c 127.0.0.1 \
--cluster-init-username=Administrator \
--cluster-init-password=${MEMBASE_REST_PASSWORD} \
--cluster-init-ramsize=${MEMBASE_MAX_RAM_MB_PER_SERVER}
/opt/membase/bin/membase bucket-create -c 127.0.0.1 \
-u Administrator -p ${MEMBASE_REST_PASSWORD} \
--bucket=default \
--bucket-type=membase \
--bucket-password= \
--bucket-ramsize=${MEMBASE_MAX_RAM_MB_FOR_DEFAULT_BUCKET} \
--bucket-replica=${MEMBASE_REPLICAS_FOR_DEFAULT_BUCKET}
# At this point, visit http://$HOST:8091 for the Membase web console.
Jump to Line
Something went wrong with that request. Please try again.