美文网首页
NSQ安装使用

NSQ安装使用

作者: forecho | 来源:发表于2015-05-05 23:21 被阅读3659次

NSQ安装使用
本文档重点描述NSQ安装和使用,大部分资料来自网上,但会经过自己的实践。

安装

安装godep

go get github.com/kr/godep

安装assert

go get github.com/bmizerany/assert

安装nsq

godep get github.com/bitly/nsq/...

使用

使用NSQ总共需要打开5个进程。

启动nsqlookup

nsqlookupd

启动nsqd

nsqd --lookupd-tcp-address=127.0.0.1:4160

客户端写入消息

curl -d "hello world 1" "http://127.0.0.1:4151/put?topic=test"

启动nsq_to_file

nsq_to_file --topic=test --output-dir=./ --lookupd-http-address=127.0.0.1:4161

启动管理服务器

浏览器访问:http://127.0.0.1:4171/

相关文章

  • NSQ安装使用

    NSQ安装使用本文档重点描述NSQ安装和使用,大部分资料来自网上,但会经过自己的实践。 安装 安装godep go...

  • golang操作nsq

    windows 安装 nsq https://nsq.io/deployment/installing.html[...

  • nsq - 安装和运行

    1. nsq安装 下载地址: http://nsq.io/deployment/installing.html 目...

  • Mac本地安装和调试NSQ流程

    1、brew安装nsq brew install nsq 2、在命令行窗口1启动 nsqlookupd 服务 ns...

  • NSQ 安装

    下载安装文件 http://nsq.io/deployment/installing.htmllinux :htt...

  • NSQ安装

    环境 系统:CentOS 6.8软件:nsq-1.2.0.linux-amd64.go1.12.9.tar.gz ...

  • nsq消息队列

    一、安装nsq: 安装godepgo get github.com/kr/godep 安装assertgo get...

  • nsq 使用

    安装 https://nsq.io/deployment/installing.html 启动服务nsqlooku...

  • 使用go-svc安全退出程序

    阅读 NSQ 源码时,看到NSQ使用了 go-svc 来启动nsq的相关程序,使得在程序退出的时候可以做一些释放资...

  • Mac Nsq 安装

    执行命令brew install nsq 效果如下 安装成功

网友评论

      本文标题:NSQ安装使用

      本文链接:https://www.haomeiwen.com/subject/gguifttx.html