首先,我非常确定riak使用命令设置正常:riak-admin status
但我无法进入水桶测试:
curl -v -X PUT -d 'This is really cool' -H "Content-Type: text/plain" http://markson.hk:8098/buckets/test/1234
< HTTP/1.1 404 Object Not Found
< Server: MochiWeb/1.1 WebMachine/1.9.0 (participate in the frantic)
< Date: Fri, 18 Nov 2011 12:13:03 GMT
< Content-Type: text/html
< Content-Length: 193
新铲斗测试会导致错误吗?我应该先创建吗?
答案 0 :(得分:0)
看一下Basic Riak API Operations,基本的PUT请求如下:
PUT /riak/bucket/key
因此,您的卷曲示例应类似于:
curl -v -X PUT -d 'The is so cool' -H "Content-Type: text/plain" http://markson.hk:8098/riak/test/1234
但话说回来,似乎有人已经为你存了一个测试密钥: