PHP official website of the AMQP module introduced here, I do not introduce more. Below to enter the focus of the installation process.
http://www.php.net/manual/en/book.amqp.php
The default source for Ubuntu is not PHP5-AMQP this package, so use the AMQP Test manual compilation.
Preparatory work:
# Install PHP compiler tool
sudo apt-get install Php5-dev
#
Installation and installation of the Linux rabbitmq amqp php plugin, RABBITMQAMQP
RABBITMQ is a message agent. Its core principle is very simple: to receive and send messages. You can think of it as a post office: If you put the letter in your mailbox, the postman will post the letter to your recipient. In this analogy, RABBITMQ is a mailbox, post Office, postman. The main difference between RABBITMQ and the post office is that it handles not paper,
Because you want to go to the message queue, you need to install the AMPQ extension locally, and in the process of loading, the following error is reported:
Configure:error:Please Reinstall the LIBRABBITMQ distribution itself or (re) install LIBRABBITMQ development Package if I T available in your system
Looking over the network, the following article is the perfect solution to my problem, reproduced in this copy of a spare.
The reason for this error is that because there is no
Configure:error:Please Reinstall the LIBRABBITMQ distribution itself or (re) install LIBRABBITMQ development Package if I T available in your systemI didn't find a solution on the Internet.While watching someone install AMQP, I found that there was less installation of a rabbitmq-cShare the normal installation process below① installation rabbitmq-c-0.7.1No installation will prompt the above error: https://github.com/alanxz/rabbitmq-cI chose the latest
Two years ago, I published an article "Try RabbitMQ with Python". I did not expect that today, two years later, the amqp data based on PHP is still poor, and several extensions are also discarded one by one, only amqp remains healthy and is indexed by PECL. Although it is included, the information in the official manual is still slightly thin.To put it bluntly, there is not much to say about the installatio
Problem Description:CENTOS7 When installing multi-node Opentack, Nova-compute always fails, and the Nova-compute log of the compute nodes is as follows: -- .- the -: -:48.565 16036INFO Nova.virt.driver [-] Loading COMPUTE driver' Libvirt. Libvirtdriver ' -- .- the -: -:48.571 16036INFO Nova.openstack.common.periodic_task [-] Skipping periodic task _periodic_update_dns because its interval is negative -- .- the -: -:48.625 16036INFO Oslo_messaging._drivers.impl_rabbit [req- thea14e35-5e44- the
This article describes how to use Python's Zato to send AMQP messages. it is mainly based on some Zato graphical interfaces, for more information about how to use Zato to send AMQP messages, see the help topic. zato is an enterprise service bus (ESB) based on Python for SOA, cloud integration, and backend services ).
Code demo
The following code is required: From zato. server. service import Service Class
Tutorial on sending AMQP messages using Python Zato, zatoamqp
This help topic shows the content required to use Zato to send AMQP messages. Zato is an enterprise service bus (ESB) for SOA, cloud integration, and backend services based on Python ).Code demo
The following code is required:From zato. server. service import ServiceClass MyService (Service ):Def handle (self ):Msg = 'my message'Conn_name = 'my C
When using RABBITMQ Message Queuing in PHP development, you need to install the PHP extension AMQP, which is the following installation steps:Install the AMQP extension directly using the PECL/usr/local/php/bin/pecl Install AMQPIf the LIBRABBITMQ library file is missing, you need to install LIBRABBITMQ first, the following steps:1 wget https://GITHUB.COM/ALANXZ/RABBITMQ-C/RELEASES/DOWNLOAD/V0.7.1/ rabbitmq-
listen to the message queue, and the process that obtains the message is responsible for processing. Next, let's look at the code of the Start function, as shown below:
Nova/service. py
Service类:def start(self): ... self.manager.pre_start_hook() if self.backdoor_port is not None: self.manager.backdoor_port = self.backdoor_port """创建AMQP连接,方便后面创建Consumer""" self.conn = rpc.create_connection(new=True) LOG.debug(_("Creating C
fundamental problem in software engineering, and different people and organizations are proposing different approaches. I will introduce the three most successful asynchronous messaging technologies that are widely used in enterprise IT systems.Java Messaging Services (Java Messaging Service (JMS))JMS is one of the most successful asynchronous messaging technologies. As Java is used in many large enterprise applications, JMS becomes the first choice for enterprise systems. It defines the API fo
1. apt-get install rabbitmq-server2. service rabbitmq-server restart3. wget https://github.com/alanxz/rabbitmq-c/tarball/0.24. tar zxf 0.25. wget https://github.com/rabbitmq/rabbitmq-codegen/tarball/master6. tar zxf master
7. Music rabbitmq-rabbitmq-codegen-0a95a69/alanxz-rabbitmq-c-f8f4fc7/codegen8. cd alanxz-rabbitmq-c-f8f4fc7/9. autoreconf-I ./configure make install
10. wget http://pecl.php.net/get/amqp-1.0.4.tgz11. tar zxf
Need to use the installation package please go to my Baidu cloud self-download
Http://pan.baidu.com/s/1qXgFVNQ
Installing the AMQP (RABBITMQ) extension for PHP requires that you first install Rabbitmq-c
Installing rabbitmq-c-0.4.1Tar zxvf rabbitmq-c-0.4.1.tar.gzCD rabbitmq-c-0.4.1./configure--prefix=/usr/local/rabbitmq-c-0.4.1
Installing the PHP amqp extensionTar zxvf
Http://activemq.apache.org/how-does-activemq-compare-to-amqp.html
Amqp (Advanced Message Queue Protocol) Is the specification for the interaction between a message client and a broker. It is a specification for wire-level protocol communication between client and Message Broker. Unlike activemq, activemq is a message system, but a message protocol.
Activemq aims to eventually support amqp 1.0 specification
Wolfram Hempel is the co-founder of Deepstreamio. Deepstreamio is a German-based technology start-up company that provides high-performance, secure, and scalable real-time communication services for mobile clients, as well as IoT devices. Text translated by Jiatong, please specify from the highly available architecture.
Want to send a request to the server and get a response? Use HTTP directly! Very simple. But when you need to communicate through a long-lasting two-way connection, such as
1. if an error is reported when the amqp plug-in is installed in PHP 7, it is returned to the php5 version. 1. If the amqp plug-in is installed in PHP 7, an error is returned. If the php5 version is normal
Reply content:
1. An error is reported when the amqp plug-in is installed for PHP 7. It is returned to the php5 version as normal.
PHP7 is supported. M
Some scattered knowledge points
Introduction
Amqp (Message Queue Protocol, Advanced Message Queuing Protocol) is a message protocol, equivalent to JMS, but JMS is only a Java platform solution, and amqp is a cross-language protocol.
Amqp, a language-independent platform, was initially developed from jpmorgon because of business needs and soon popularized from the
: This article describes how to install windows with the amqp extension of php. if you are interested in the PHP Tutorial, refer to it. Because RabbitMQ is implemented by the erlang language, the erlang environment must be installed first.
Erlang download installation http://www.erlang.org/download.html
Rabbitmq download installation https://www.rabbitmq.com/install-windows.html
Php amqp extension: http:
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.