zoukankan      html  css  js  c++  java
  • mac部署PHP RabbitMQ环境

    一、安装rabbitmq

    brew install rabbitmq

    二、安装rabbitmq-c

    git clone git://github.com/alanxz/rabbitmq-c.git

    cd rabbitmq-c
    mkdir build && cd build 
    cmake -DCMAKE_INSTALL_PREFIX=/usr/local .. 
    cmake --build . --target install

    出现错误:

    -- Could NOT find POPT (missing:  POPT_INCLUDE_DIR POPT_LIBRARY)
    -- Could NOT find XMLTO (missing:  XMLTO_EXECUTABLE)
    -- Could NOT find Doxygen (missing:  DOXYGEN_EXECUTABLE)
    CMake Error at /usr/local/Cellar/cmake/3.6.1/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:148 (message):
      Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the
      system variable OPENSSL_ROOT_DIR (missing: OPENSSL_INCLUDE_DIR) (Required
      is at least version "0.9.8")
    Call Stack (most recent call first):
      /usr/local/Cellar/cmake/3.6.1/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:388 (_FPHSA_FAILURE_MESSAGE)
      /usr/local/Cellar/cmake/3.6.1/share/cmake/Modules/FindOpenSSL.cmake:380 (find_package_handle_standard_args)
      CMakeLists.txt:273 (find_package)

    brew install popt xmlto doxygen openssl

    cmake -DCMAKE_INSTALL_PREFIX=/usr/local -DOPENSSL_ROOT_DIR=/usr/local/opt/openssl -DOPENSSL_INCLUDE_DIR=/usr/local/opt/openssl/include  ..

    上面增加的变量要在前面加-D,含义是设置常量

    输出:

    -- Found OpenSSL: /usr/lib/libssl.dylib;/usr/lib/libcrypto.dylib (found suitable version "1.0.2h", minimum required is "0.9.8")
    -- Building rabbitmq as a shared library - yes
    -- Building rabbitmq as a static library - yes
    -- Configuring done
    -- Generating done
    -- Build files have been written to: /Users/baidu/Public/study/amq/rabbitmq-c/build

     三、安装php amqp扩展

    通过brew search amqp来搜索当前php版本对应的amqp扩展,我是php 5.5,所以通过

    brew install homebrew/php/php55-amqp 

    安装

  • 相关阅读:
    window.location.Reload()和window.location.href 区别
    PHP substr(),mb_substr()及mb_strcut的区别和用法
    jstree节点展开设置
    关于Jquery中ajax方法data参数用法
    HTML相对路径(Relative Path)和绝对路径(Absolute Path)
    Win32基础编程了解窗口类
    Visual C++ ActiveX 开发指南:第一章 什么是ActiveX
    分粥
    蛙蛙推荐:ASP实现自定义标签模板
    蛙蛙请教:如何利用委托实现多个方法同时调用.
  • 原文地址:https://www.cnblogs.com/hifelix/p/5783504.html
Copyright © 2011-2022 走看看