centOS安装ZeroMQ

centOS安装ZeroMQ所需组件及工具:

yum install gcc

yum install gcc-c++

yum install make

yum install uuid-devel

yum install libuuid-devel

JZMQ安装过程中错误及所需组件:

错误:autogen.sh: error: could not find libtool.  libtool is required to run autogen.sh.

安装:yum install libtool

1.1.1 安装JZMQ

从官方网站下载最新稳定的JZMQ

git clone https://github.com/nathanmarz/jzmq.git

报错找不到git,

先安装git

apt-get install git

然后

git clone https://github.com/nathanmarz/jzmq.git

cd  jzmq

然后继续运行 ./autogen.sh

报错

autogen.sh: error: could not find pkg-config.  pkg-config is required to run autogen.sh.

需要安装pkg-config

安装 sudo apt-get install pkg-config

sudo apt-get install libtool

sudo apt-get install autoconf

再次安装./autogen.sh

安装成功后,继续./configure

运行make

报错

make[1]: *** No rule to make target `classdist_noinst.stamp', needed by `org/zeromq/ZMQ.class'.  Stop.

make: *** [all-recursive] Error 1

从网上找了下。

需要做如下的额外动作。

$ touch src/classdist_noinst.stamp

$ make

make[1]: *** No rule to make target `org/zeromq/ZMQException.class, needed by `all'.  Stop.

make: *** [all-recursive] Error 1

需要继续做

$ cd src/org/zeromq/

$ /jzmq/src/org/zeromq$ javac  *.java

$ cd ../../../

运行以上命令后,就可以make 和make install了

$ make

$ sudo make install

只要没报错,JZMQ安装成功

1.1.1 安装Storm

下载最新稳定版本 0.82

wget https://www.dropbox.com/s/fl4kr7w0oc8ihdw/storm-0.8.2.zip

unzip storm-0.8.2.zip

cd  /data/justfortest/stormsingle/storm-0.8.2/conf

vi storm.yaml

添加内容如下:

注意每个行头、冒号和-后面都要有空格

storm.zookeeper.servers:

- "xxx.xxx.xxx.xxx"

storm.zookeeper.port: 2181

nimbus.host: "xxx.xxx.xxx.xxx"

ui.port: "18080"

storm.local.dir: "/data/justfortest/stormsingle/storm-0.8.2/localdata"

supervisor.slots.ports:

- 6700

- 6701

- 6702

- 6703

1.1.1 启动Storm服务器

先启动zookeeper

cd  /data/justfortest/stormsingle/zookeeper-3.4.5/bin

./zkServer.sh start

启动nimbus进程

./storm nimbus &

启动supervisor进程

./storm supervisor  &

启动ui进程

./storm ui &

验证是否成功

通过  netstat -aon |grep 18080   查看ui是否正常启动

在浏览器输入

http://xxx.xxx.xxx.xxx:18080/

另外,通过jps命令,也可查看当前运行的进程

如果出错,可以查看相关日志

日志在 /data/justfortest/stormsingle/storm-0.8.2/logs

每个进程分别对应一个日志

1.1.1 启动Storm服务器

直接kill掉各个进程即可

Kill -9 5666

Kill -9 5171

Kill -9 8839

停止zookeeper

cd  /data/justfortest/stormsingle/zookeeper-3.4.5/bin

./zkServer.sh stop

centos下安装storm的更多相关文章

  1. CentOS下安装hadoop

    CentOS下安装hadoop 用户配置 添加用户 adduser hadoop passwd hadoop 权限配置 chmod u+w /etc/sudoers vi /etc/sudoers 在 ...

  2. CentOS下安装使用start-stop-daemon

    CentOS下安装使用start-stop-daemon 在centos下下了个自启动的服务器脚本 执行的时候发现找不到start-stop-daemon命令 好吧 执行手动编译一下 加上这个命令 w ...

  3. 从零开始学 Java - CentOS 下安装 Tomcat

    生活以痛吻我,我仍报之以歌 昨天晚上看到那个冯大辉老师的微信公众号,「小道消息」上的一篇文章,<生活以痛吻我,我仍报之以歌>.知乎一篇匿名回答,主题为<冯大辉到底是不是技术大牛,一个 ...

  4. CentOS 下安装

    2016年12月5日15:25:58 ----------------------------------- 通常情况下在centos下安装软件就用yum. 关键是,使用yum你要知道安装包的名字是什 ...

  5. [Linux]CentOS下安装和使用tmux

    前天随意点开博客园,看到了一篇关于tmux的文章 Tmux - Linux从业者必备利器,特意还点进去看了.毕竟Linux对于做游戏服务端开发的我来说,太熟悉不过了.不过我就粗略地看了一眼,就关掉了. ...

  6. CentOS下安装JDK7 转载

    转载地址:http://www.cnblogs.com/rilley/archive/2012/02/02/2335395.html CentOS下安装JDK7 下载地址:http://www.ora ...

  7. Centos下安装mysql 总结

    一.MySQL安装 Centos下安装mysql 请点开:http://www.centoscn.com/CentosServer/sql/2013/0817/1285.html 二.MySQL的几个 ...

  8. 在centos下安装django

    这里有一个不错的Django的学习资料.先收藏一下,以备后用.谢谢 http://www.ziqiangxuetang.com/django/django-install.html 在centos下安 ...

  9. centos下安装php环境

    centos下安装php环境 安装apache yum install httpd-devel 启动apache /etc/init.d/httpd start 安装mysql yum install ...

随机推荐

  1. JDBC注册驱动程序的三种方式

    1. Class.forName("com.mysql.jdbc.Driver");//加载数据库驱动 Class.forName("com.mysql.jdbc.Dri ...

  2. Manacher专题

    1.POJ 3974 Palindrome 题意:求一个长字符串的最长回文子串. 思路:Manacher模板. #include<iostream> #include<algorit ...

  3. 深度学习1--ubuntu14.04+win10双系统

    相当多的内容参考的百度经验https://jingyan.baidu.com/article/eb9f7b6d79a7b4869364e885.html?qq-pf-to=pcqq.group 还可以 ...

  4. 面向服务体系架构(SOA)和数据仓库(DW)的思考

    摘要: 当前业界对面向服务体系架构(SOA)和数据仓库(Data Warehouse,DW)都介绍的很多,提出了很多优秀的解决方案,但是一般是把 SOA 和 DW 单独考虑,SOA 和 DW 有着共同 ...

  5. webpack基础配置

    webpack运行规则: Webpack 会给每个模块分配一个唯一的id并通过这个id索引和访问模块.在页面启动时,会先执行入口文件中的代码,其它模块会在运行 require 的时候再执行. 运行时主 ...

  6. Redis的分布式配置

    Redis存在三种级别的分布式部署:主从复制.主从切换.集群配置,推荐使用主从切换模式. 主从复制 启动主服务:端口6379 启动从服务:端口6380, 配置文件中加上 slaveof 127.0.0 ...

  7. java中类名.class, class.forName(), getClass()区别

    Class对象的生成方式如下: 1.类名.class           说明: JVM将使用类装载器, 将类装入内存(前提是:类还没有装入内存),不做类的初始化工作.返回Class的对象 2.Cla ...

  8. 【HackerRank】 Sherlock and The Beast

    Sherlock and The Beast Sherlock Holmes is getting paranoid about Professor Moriarty, his archenemy. ...

  9. 通过调节坐标进行jfree图的放大缩小

    http://blog.csdn.net/lt1983lt/article/details/5665085 import Java.awt.BorderLayout;import java.awt.C ...

  10. 谈谈 cci 与 i2c

    cci的名字叫, camera control interface, 他由两部分组成,一是i2c ,而另一个部分是 gpio.也就是说,cci 包含i2c.一般情况下,我们只是用到了i2c 部分,没有 ...