下载地址:http://pecl.php.net/package/amqp/1.4.0/windows
1.复制php_amqp.dll到php/ext目录下
2.php.ini中添加如下代码
[PHP_AMQP]
extension=php_amqp.dll
3.修改apache配置文件httpd.conf添加入
LoadFile rabbitmq.1.dll文件路径
php官网配置选项如下http://cn2.php.net/manual/zh/amqp.configuration.php
Version | 1.4.0 |
---|---|
Revision | $Revision: 327551 $ |
Compiled | May 22 2014 @ 17:13:18 |
AMQP protocol version | 0-9-1 |
librabbitmq version | 0.5.0 |
Directive | Local Value | Master Value |
---|---|---|
amqp.auto_ack | 0 | 0 |
amqp.connect_timeout | 0 | 0 |
amqp.host | localhost | localhost |
amqp.login | guest | guest |
amqp.password | guest | guest |
amqp.port | 5672 | 5672 |
amqp.prefetch_count | 3 | 3 |
amqp.read_timeout | 0 | 0 |
amqp.timeout | no value | no value |
amqp.vhost | / | / |
amqp.write_timeout | 0 | 0 |