当前位置:网站首页>MQ在laravel中简单使用
MQ在laravel中简单使用
2022-04-23 11:20:00 【黄昏后的田野】
MQ在laravel中简单使用:
第一种安装方法
首先安装php 扩展 amqp
对于mac 上集成环境MAMP安装
/Applications/MAMP/bin/php/php7.3.29/bin/pecl install amqp
如果不行可以试一下
/Applications/MAMP/bin/php/php7.3.29/bin/pecl install amqp-1.11.0beta
首先安装rabbitmq-c
brew install rabbitmq-c

查看rabbitmq-c安装目录
/opt/homebrew/Cellar/rabbitmq-c/0.11.0
安装过程提示:Set the path to librabbitmq install prefix [autodetect]
# 输入rabbitmq-c安装目录位置 (0.11.0)是安装的版本目录
/opt/homebrew/Cellar/rabbitmq-c/0.11.0
php.ini 添加 extension=amqp.so
查看一下
php -i | grep amqp
原文链接:https://blog.csdn.net/weixin_43881802/article/details/121392965
第二种安装方法
下载包:
cd /Applications/MAMP/bin/php/php7.3.29/include/php/ext //进入php 目录
wget https://pecl.php.net/get/amqp-1.11.0.tgz 下载拓展包


cd amqp //进入目录
/Applications/MAMP/bin/php/php7.3.29/bin/phpize //执行
新开一个窗口
brew install rebbitmq -c

拿到地址
最后想要在m1里编译成功,加上了 --enable-thread-context
./configure --with-amqp --with-librabbitmq-dir=/opt/homebrew/Cellar/rabbitmq-c/0.11.0 //执行
make //执行编译
make install //添加amqp.so的文件

php.ini 添加 extension=amqp.so
版权声明
本文为[黄昏后的田野]所创,转载请带上原文链接,感谢
https://blog.csdn.net/m0_50593634/article/details/124328124
边栏推荐
- PyTorch 神经网络训练器
- 采用百度飞桨EasyDL完成指定目标识别
- 讯飞2021年营收183亿:同比增41% 净利为15.56亿
- Mysql中一千万条数据怎么快速查询
- laravel-admin表单验证
- Solve the problem of "suncertpathbuilderexception: unable to find valid certification path to requested target"
- Redis optimization series (II) redis master-slave principle and master-slave common configuration
- CUMCM 2021-B:乙醇偶合制備C4烯烴(2)
- Learn go language 0x06: Fibonacci closure exercise code in go language journey
- Canvas详解
猜你喜欢
随机推荐
nacos基础(8):登录管理
Learning go language 0x02: understanding slice
讯飞2021年营收183亿:同比增41% 净利为15.56亿
laravel-admin时间范围选择器dateRange默认值问题
Laravel admin time range selector daterange default value problem
C#的学习笔记【八】SQL【一】
oh-my-lotto
SVN的使用:
MySQL failed to insert the datetime type field without single quotation marks
Excel·VBA数组冒泡排序函数
得物技术网络优化-CDN资源请求优化实践
Explain in detail the pitfalls encountered in DTS due to the time zone problems of timestamp and datetime in MySQL
MySQL Router重装后重新连接集群进行引导出现的——此主机中之前已配置过的问题
Jupyter lab top ten high productivity plug-ins
Cumcm 2021 - B: préparation d'oléfines C4 par couplage éthanol (2)
Detailed explanation of writing sequence and execution sequence of MySQL series SQL query statements
CUMCM 2021-B:乙醇偶合制备C4烯烃(2)
年度最尴尬的社死瞬间,是Siri给的
nacos基础(9):nacos配置管理之从单体架构到微服务
Redis optimization series (II) redis master-slave principle and master-slave common configuration








