Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

[zeromq] installation of zeromq+jzmq under unix

2025-04-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/03 Report--

Centos 6.5 environment

1. Zeromq version 3.2.5

Reference: http://zeromq.org/area:download#toc1

$wget http://download.zeromq.org/zeromq-3.2.5.tar.gz

$tar zxvf zeromq-3.2.5.tar.gz

$cd zeromq-3.2.5

$. / configure

$make

$make install

Error:

(1) unbale to find a working C++ compiler

Yum install gcc gcc-c++ kernel-devel

Reference: http://www.centoscn.com/p_w_picpath-text/install/2015/1012/6281.html

2. Jzmq installation

Download: https://github.com/zeromq/jzmq

(1) copy jzmq-master.zip to the zeromq directory.

Unzip jzmq-master.zip

(2)

Cd jzmq-jni/

. / autogen.sh

. / configure

Make

Make install

Cd..

Mvn package

Error:

(1) could not find libtool

Sudo yum install libtool

3. Install JDK1.7 under CentOS

Reference: http://www.centoscn.com/p_w_picpath-text/install/2014/0827/3585.html

4. / etc/profile file configuration

Export JAVA_HOME=/usr/local/java/jdk1.7.0_79

Export JRE_HOME=/usr/local/java/jdk1.7.0_79/jre

Export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar:/usr/local/share/java/zmq.jar:$JRE_HOME/lib:$CLASSPATH

Export PATH=$JAVA_HOME/bin:$PATH

Export LD_LIBRARY_PATH=/usr/local/lib

Test:

Java-Djava.library.path=/usr/local/lib-cp.: / usr/local/share/java/zmq.jar:/usr/local/share/perf/zmq-perf.jar local_lat tcp://192.168.2.200:5555 1 100

Java-Djava.library.path=/usr/local/lib-cp.: / usr/local/share/java/zmq.jar:/usr/local/share/perf/zmq-perf.jar remote_lat tcp://192.168.2.200:5555 1 100

References:

Http://shiyanjun.cn/archives/241.html "Storm installation and configuration in CentOS 6.4stand-alone environment"

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report