Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 31 lines (21 sloc) 0.903 kb
e2db9cb @steveyen Membase install scripts
steveyen authored
1 #!/bin/bash -ex
2
c2aef16 @steveyen Better variable names
steveyen authored
3 MEMBASE_REST_PASSWORD=password
4 MEMBASE_MAX_RAM_MB_PER_SERVER=500
5 MEMBASE_MAX_RAM_MB_FOR_DEFAULT_BUCKET=500
6 MEMBASE_REPLICAS_FOR_DEFAULT_BUCKET=1
e2db9cb @steveyen Membase install scripts
steveyen authored
7
8 yum -y install openssl098e
9
10 wget http://packages.couchbase.com/releases/1.7.0/membase-server-community_x86_64_1.7.0.rpm
11
12 rpm -i membase-server-community*.rpm
13
c2aef16 @steveyen Better variable names
steveyen authored
14 sleep 5
15
e2db9cb @steveyen Membase install scripts
steveyen authored
16 /opt/membase/bin/membase cluster-init -c 127.0.0.1 \
17 --cluster-init-username=Administrator \
c2aef16 @steveyen Better variable names
steveyen authored
18 --cluster-init-password=${MEMBASE_REST_PASSWORD} \
19 --cluster-init-ramsize=${MEMBASE_MAX_RAM_MB_PER_SERVER}
e2db9cb @steveyen Membase install scripts
steveyen authored
20
21 /opt/membase/bin/membase bucket-create -c 127.0.0.1 \
c2aef16 @steveyen Better variable names
steveyen authored
22 -u Administrator -p ${MEMBASE_REST_PASSWORD} \
e2db9cb @steveyen Membase install scripts
steveyen authored
23 --bucket=default \
24 --bucket-type=membase \
25 --bucket-password= \
c2aef16 @steveyen Better variable names
steveyen authored
26 --bucket-ramsize=${MEMBASE_MAX_RAM_MB_FOR_DEFAULT_BUCKET} \
27 --bucket-replica=${MEMBASE_REPLICAS_FOR_DEFAULT_BUCKET}
28
29 # At this point, visit http://$HOST:8091 for the Membase web console.
e2db9cb @steveyen Membase install scripts
steveyen authored
30
Something went wrong with that request. Please try again.