前往perl找到对应php版本的的拓展 并下载
http://pecl.php.net/package/amqp.
将amqp.dll放到php拓展,rabbitmq.4.dll放到php执行文件所在目录
开启php.ini上的拓展
apache或者nginx载入 rabbitmq.4.dll
如下:
nginx:
worker_rlimit_nofile 100000;
load "D:\phpstudy_pro\Extensions\php\php7.3.4nts\rabbitmq.4.dll"
apache:
LoadFile "D:\phpstudy_pro\Extensions\php\php7.3.4nts\rabbitmq.4.dll"
通过phpinfo信息 查看是否安装成功
Configuration
amqp
Version 1.10.2
Revision release
Compiled Apr 5 2020 @ 18:58:55
AMQP protocol version 0-9-1
librabbitmq version 0.9.0
Default max channels per connection 256
Default max frame size 131072
Default heartbeats interval 0