随笔分类 - RabbitMQ
rabbitmq
摘要:#connect to AMQP broker at example.comuse PhpAmqpLib\Connection\AMQPStreamConnection;$amqp = new AMQPStreamConnection('example.com', 5672, 'user', 'pw
阅读全文
摘要:生产者代码: $conConfig = [ 'host' => '127.0.0.1', 'port' => '5672', 'login' => 'sblack', 'password' => '123456', 'vhost' => '/', ]; //direct模式 try { $conne
阅读全文
摘要:RabbitMQ: 安装教程:https://rabbitmq.com/download.htmlPHP安装扩展: http://pecl.php.net/package/amqp主要模块提供方法:connection: isConnected() connect() pconnect() pdis
阅读全文