安装/配置
PHP Manual

安装

To install the AMQP PHP extension, you must first install the » librabbitmq library. You will need the 0-9-1 version of the rabbitmq-c client library, linked to the rabbitmq-codegen version that corresponds to the version of the broker you are using. Use the following steps to download and install the library:

# Download the rabbitmq-c library @ version 0-9-1
  git clone git://github.com/alanxz/rabbitmq-c.git
  cd rabbitmq-c
  # Enable and update the codegen git submodule
  git submodule init
  git submodule update
  # Configure, compile and install
  autoreconf -i && ./configure && make && sudo make install

安装此 PECL 扩展相关的信息可在手册中标题为 PECL 扩展的安装 章节中找到。另外的信息,如新的发行版本、下载、源文件、 Additional information such as new releases,维护人员信息及变更日志等,都在此处: » http://pecl.php.net/package/amqp.

Note to Windows users: This extension does not currently support Windows since the librabbitmq library does not yet support Windows.


安装/配置
PHP Manual