From c4ac81ea62938fc24ebc60a60cf8e7ce4ddd80a1 Mon Sep 17 00:00:00 2001 From: Xiang Li Date: Thu, 11 Jul 2013 22:08:41 -0700 Subject: [PATCH] Update README.md --- README.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 43df187ee..352149d4e 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,10 @@ etcd ### Setting up a node +```sh ./etcd +``` + This will bring up a node, which will be listening on internal port 7001 (for server communication) and external port 4001 (for client communication) Setting and Retrieving Values @@ -96,7 +99,9 @@ curl http://127.0.0.1:4001/v1/keys/foo ``` You can expect the ttl is counting down and after 5 seconds you should see this, +```html 404 page not found +``` which indicates the key has expired and was deleted. @@ -155,8 +160,9 @@ curl http://127.0.0.1:4001/v1/testAndSet/testAndSet -d prevValue=two -d value=th This will try to test if the previous of the key is two, it is change it to three. The response should be -status code 400 +```html Test one==two fails +``` which means testAndSet fails.