nsqd -http-address -max-body-size -tcp-address -mem-queue-size
curl -d 'hello world 2' 'http://127.0.0.1:4151/pub?topic=test'
nsqd 默认tcp 4150 http 4151
nsqadmin.exe -nsqd-http-address=127.0.0.1:4151 默认 http 4171
get
/ping - liveness
/info - version
/stats - comprehensive runtime telemetry
/pub - publish a message to a topic
/mpub - publish multiple messages to a topic
/config - configure nsqd
/debug/pprof - pprof debugging portal
/debug/pprof/profile - generate pprof CPU profile
/debug/pprof/goroutine - generate pprof goroutine profile
/debug/pprof/heap - generate pprof heap profile
/debug/pprof/block - generate pprof blocking profile
/debug/pprof/threadcreate - generate pprof OS thread profile
v1 namespace (as of nsqd v0.2.29+):
post
/topic/create - create a new topic
curl -X POST http://127.0.0.1:4151/topic/create?topic=nam
/topic/delete - delete a topic
curl -X POST http://127.0.0.1:4151/topic/delete?topic=name
/topic/empty - empty a topic
curl -X POST http://127.0.0.1:4151/topic/empty?topic=name
/topic/pause - pause message flow for a topic
curl -X POST http://127.0.0.1:4151/topic/pause?topic=name
/topic/unpause 恢复消息流到现有的、暂停的、主题的通道
curl -X POST http://127.0.0.1:4151/topic/unpause?topic=name
/channel/create - create a new channel
curl -X POST http://127.0.0.1:4151/channel/create?topic=name&channel=name
/channel/delete - delete a channel
curl -X POST http://127.0.0.1:4151/channel/delete?topic=name&channel=name
/channel/empty - empty a channel
curl -X POST http://127.0.0.1:4151/channel/empty?topic=name&channel=name
/channel/pause - pause message flow for a channel
curl -X POST http://127.0.0.1:4151/channel/pause?topic=name&channel=name
/channel/unpause - unpause message flow for a channel
curl -X POST http://127.0.0.1:4151/channel/unpause?topic=name&channel=name
nsq
最新推荐文章于 2022-01-06 14:10:01 发布