Recent research on the RABBITMQ queue, Linux installation such software has always been very convenient, but Windows may be more troublesome, so the installation of Windows to make a record.
The PHP extension used on Windows for DLL files, first to download DLL files, I downloaded is amqp1.4, for http://pecl.php.net/package/amqp/1.4.0/windows, please download according to your own PHP version, PHP version should be read (phpinfo), the inside of the two DLL files copied out
1. Place the Php_amqp.dll in the PHP ext directory, then modify the php.ini file to add two lines to the last side of the file
<textarea class="crayon-plain print-no" style="-moz-tab-size: 4; font-size: 12px ! important; line-height: 15px ! important; z-index: 0; opacity: 0; overflow: hidden;" readonly="" data-settings="dblclick">[Amqp]extension=php_amqp.dll</textarea>
12 |
[amqp] extension=php_amqp. DLL |
2. Place the Rabbitmq.1.dll file in the root directory of PHP (that is, the parent directory of the EXT directory) and modify the Apache Httpd.con file to add a line at the end of the file
<textarea class="crayon-plain print-no" style="-moz-tab-size: 4; font-size: 12px ! important; line-height: 15px ! important; z-index: 0; opacity: 0; overflow: hidden;" readonly="" data-settings="dblclick">LoadFile "D:/xampp/php/rabbitmq.1.dll"</textarea>
1 |
LoadFile "D:/xampp/php/rabbitmq.1.dll" |
3. Restart Apache and view the phpinfo information. Just see the AMQP word.
Installing RABBITMQ PHP extensions AMQP in Windows