1
2
3
4
5
6
7
8
9
10
| curl -X POST -H "Content-Type: application/json" http://admin:8lab@127.0.0.1:15984/_cluster_setup -d '{"action": "enable_cluster", "bind_address":"0.0.0.0", "username": "admin", "password":"8lab", "node_count":"3"}'
curl -X POST -H "Content-Type: application/json" http://admin:8lab@127.0.0.1:15984/_cluster_setup -d '{"action": "enable_cluster", "bind_address":"0.0.0.0", "username": "admin", "password":"8lab", "port": 25984, "node_count": "3", "remote_node": "couchdb2", "remote_current_user": "admin", "remote_current_password": "8lab" }'
curl -X POST -H "Content-Type: application/json" http://admin:8lab@127.0.0.1:15984/_cluster_setup -d '{"action": "add_node", "host":"couchdb2", "port": "5984", "username": "admin", "password":"8lab"}'
curl -X POST -H "Content-Type: application/json" http://admin:8lab@127.0.0.1:15984/_cluster_setup -d '{"action": "enable_cluster", "bind_address":"0.0.0.0", "username": "admin", "password":"8lab", "port": 35984, "node_count": "3", "remote_node": "couchdb3", "remote_current_user": "admin", "remote_current_password": "8lab" }'
curl -X POST -H "Content-Type: application/json" http://admin:8lab@127.0.0.1:15984/_cluster_setup -d '{"action": "add_node", "host":"couchdb3", "port": "5984", "username": "admin", "password":"8lab"}'
curl -X POST -H "Content-Type: application/json" http://admin:8lab@127.0.0.1:15984/_cluster_setup -d '{"action": "finish_cluster"}'
|