Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How php installs rabbitmq extensions

2025-03-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

This article mainly explains "php how to install rabbitmq extension", the content of the article is simple and clear, easy to learn and understand, the following please follow the editor's ideas slowly in depth, together to study and learn "php how to install rabbitmq extension" bar!

This article operating environment: centos 7, php7, thinkpad T480 computer.

The steps for PHP to install the rabbitmq extension are as follows:

Install related dependencies

Yum-y install gcc glibc-devel make ncurses-devel openssl-devel autoconf unixODBC unixODBC-devel socat

Install the erlang runtime environment

Wget https://www.rabbitmq.com/releases/erlang/erlang-19.0-1.el6.x86_64.rpmyum-y install erlang-19.0-1.el6.x86_64.rpm

Enter erl to test whether you successfully entered halt (). Quit

Install amqp-c

Wget https://github.com/alanxz/rabbitmq-c/releases/download/v0.8.0/rabbitmq-c-0.8.0.tar.gz tar-zxvf rabbitmq-c-0.8.0.tar.gz cd rabbitmq-c-0.8.0. / configure-- prefix=/usr/local/rabbitmq-c make & & make install

Install the amqp extension

Yum install epel-release yum install autoconf gcc gcc-c++ librabbitmq librabbitmq-devel wget https://pecl.php.net/get/amqp-1.9.4.tgz tar xf amqp-1.9.4.tgz cd amqp-1.9.4 phpize. / configure-- with-amqp-- with-librabbitmq-dir=/usr/local/rabbitmq-c make & & make install

Install the interface management component

Rabbitmq-plugins enable rabbitmq_management

Start the service

Service rabbitmq-server start

Create an administrator user

Rabbitmqctl add_user admin amqp123rabbitmqctl set_permissions-p / admin ". *" rabbitmqctl set_user_tags admin administrator

Open port 15672

Firewall-cmd-zone=public-add-port=15672/tcp-permanentfirewall-cmd-reload

Log in to the administrative backend

Log in using the account admin amqp123

Http://IP address: 15672

Thank you for reading, the above is the content of "php how to install rabbitmq extension", after the study of this article, I believe you have a deeper understanding of how to install rabbitmq extension on php, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report