Skip to content

Instantly share code, notes, and snippets.

@Dayof
Last active March 21, 2018 00:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Dayof/04a81ed798b00159fff851bc1db6ce45 to your computer and use it in GitHub Desktop.
Save Dayof/04a81ed798b00159fff851bc1db6ce45 to your computer and use it in GitHub Desktop.
  • setup services
 $ curl -u couchbase:couchbase -v X POST http://localhost:8091/node/controller/setupServices -d 'services=kv%2Cindex%2Cn1ql'
  • init cluster
$ curl -u couchbase:couchbase -v -X POST http://localhost:8091/nodes/self/controller/settings -d \
  && 'data_path=%2Fopt%2Fcouchbase%2Fvar%2Flib%2Fcouchbase%2Fdata& index_path=%2Fopt%2Fcouchbase%2Fvar%2Flib%2Fcouchbase%2Fdata'
  • setup password and adm
$ curl -u couchbase:couchbase -v X POST http://localhost:8091/settings/web -d \
  && 'password=couchbase&username=couchbase&port=SAME'
  • setup buckets
$ curl -u couchbase:couchbase -v X POST http://localhost:8091/pools/default/buckets -d 'name=raise&ramQuotaMB=2048'
$ curl -u couchbase:couchbase -v X POST http://localhost:8091/pools/default -d \
  && 'memoryQuota=2048' -d 'indexMemoryQuota=512'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment