zoukankan      html  css  js  c++  java
  • RocketMQ Py客户端


    #!/bin/bash yum install make cmake gcc-c++ python-devel zlib-devel cd /home/amy git clone https://github.com/apache/rocketmq-client-python.git #instll bootstrap wget -O boost_1_58_0.tar.gz http://127.0.0.1:8090/rocketmq_pyclient/boost_1_58_0.tar.gz tar -xzf boost_1_58_0.tar.gz cd boost_1_58_0 ./bootstrap.sh --prefix=/usr/local --with-libraries=python if [ $? -ne 0 ];then exit 1 fi echo "Install boost static library...." sudo ./b2 cflags="-fPIC" cxxflags="-fPIC -Wno-unused-local-typedefs -Wno-strict-aliasing" link=static runtime-link=static --with-python -a install if [ $? -ne 0 ];then exit 1 fi echo "Install boost dynamic library....." sudo ./b2 cflags="-fPIC" cxxflags="-fPIC -Wno-unused-local-typedefs -Wno-strict-aliasing" link=shared runtime-link=shared --with-python -a install if [ $? -ne 0 ];then exit 1 fi echo "Finish build boost library." #install pythonlib cd /home/amy mkdir rocketmqlib && cd rocketmqlib wget https://opensource-rocketmq-client.oss-cn-hangzhou.aliyuncs.com/cpp-client/linux/1.2.0/RHEL7.x/librocketmq.tar.gz tar -xzf librocketmq.tar.gz cp librocketmq.so librocketmq.a /usr/local/lib/ cp -r rocketmq /usr/local/include/ #install module cd cd /home/amy/rocketmq-client-python mkdir build && cd build cmake ../ -DBoost_USE_STATIC_LIBS=OFF -DROCKETMQ_USE_STATIC_LIBS=OFF make make install #verify version strings /usr/local/lib/librocketmqclientpython.so | grep PYTHON_CLIENT_VERSION #export LD_LIBRARY_PATH export LD_LIBRARY_PATH=/usr/local/lib

     参考地址:https://github.com/apache/rocketmq-client-python/blob/master/doc/Introduction.md

  • 相关阅读:
    事务1-JDBC事务管理
    Tomcat地址栏传中文参数乱码问题处理
    hibernate报错:org.hibernate.MappingException: No Dialect mapping for JDBC type: -1
    UVA12170 Easy Climb
    [POI2004]旅行问题
    [SCOI2010]股票交易
    [USACO11OPEN] Mowing the Lawn G
    查看文件个数 ls |wc -l
    【zombie】如何查看并杀死僵尸进程?
    [Windows] 屏幕截图
  • 原文地址:https://www.cnblogs.com/lwhctv/p/10862093.html
Copyright © 2011-2022 走看看