我认为在客户端使用Moxi非常复杂
我让moxi用这个命令运行
./ moxi -vvv -p 11311 并检查/etc/init.d/moxi-server状态并返回moxi服务器正在运行
我用libcouchbase制作了测试代码 创建实例(127.0.0.1:11311作为主机,NULL作为其余参数) 似乎创建了Instance并且正常设置了回调。然而,这个过程似乎陷入了困境。我想这是因为我没有设置正确的moxi设置(让moxi看到我的couchbase集群)。
请您深入解释一下这个客户端moxi设置程序吗?手册并没有真正帮助大家。
磨溪屏幕:
2012-03-28 11:41:46:(memcached.c.3457)52:drive_machine conn_listening
2012-03-28 11:41:46:(memcached.c.403)< 53新的自动协商客户端连接
2012-03-28 11:41:46:(cproxy.c.524)< 53分配到第一个桶
2012-03-28 11:41:46:(memcached.c.3457)53:drive_machine conn_new_cmd
2012-03-28 11:41:46:(memcached.c.670)53:从conn_new_cmd转到conn_waiting
2012-03-28 11:41:46:(memcached.c.3457)53:drive_machine conn_waiting
2012-03-28 11:41:46:(memcached.c.670)53:从conn_waiting转到conn_read
2012-03-28 11:41:46:(memcached.c.3457)53:drive_machine conn_read
2012-03-28 11:41:46:(memcached.c.670)53:从conn_read转到conn_parse_cmd
2012-03-28 11:41:46:(memcached.c.3457)53:drive_machine conn_parse_cmd
2012-03-28 11:41:46:(memcached.c.3125)53:客户端使用proxy-upstream-ascii协议
2012-03-28 11:41:46:(cproxy_protocol_a.c.34)< 53 cproxy_process_upstream_ascii GET / pools / default / bucketsStreaming / test HTTP / 1.1
2012-03-28 11:41:46:(memcached.c.821)> 53错误
2012-03-28 11:41:46:(memcached.c.670)53:从conn_parse_cmd转到conn_write
2012-03-28 11:41:46:(memcached.c.3457)53:drive_machine conn_write
2012-03-28 11:41:46:(memcached.c.3457)53:drive_machine conn_write
2012-03-28 11:41:46:(memcached.c.670)53:从conn_write转到conn_new_cmd
2012-03-28 11:41:46:(memcached.c.3457)53:drive_machine conn_new_cmd
2012-03-28 11:41:46:(memcached.c.670)53:从conn_new_cmd转到conn_parse_cmd
2012-03-28 11:41:46:(memcached.c.3457)53:drive_machine conn_parse_cmd
2012-03-28 11:41:46:(cproxy_protocol_a.c.34)< 53 cproxy_process_upstream_ascii
2012-03-28 11:41:46:(memcached.c.821)> 53错误
2012-03-28 11:41:46:(memcached.c.670)53:从conn_parse_cmd转到conn_write
2012-03-28 11:41:46:(memcached.c.3457)53:drive_machine conn_write
2012-03-28 11:41:46:(memcached.c.3457)53:drive_machine conn_write
2012-03-28 11:41:46:(memcached.c.670)53:从conn_write转到conn_new_cmd
2012-03-28 11:41:46:(memcached.c.3457)53:drive_machine conn_new_cmd
2012-03-28 11:41:46:(memcached.c.670)53:从conn_new_cmd转到conn_waiting
2012-03-28 11:41:46:(memcached.c.3457)53:drive_machine conn_waiting
2012-03-28 11:41:46:(memcached.c.670)53:从conn_waiting转到conn_read
答案 0 :(得分:1)
使用2.0,我们增加了更多智能客户端支持,因此使用Moxi的原因越来越少。看看您的开发环境是否有SDK:
http://www.couchbase.com/develop
使用智能客户端SDK会更简单,更高效。