当前位置:网站首页>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
边栏推荐
- MySQL索引优化之分页探索详细介绍
- Mba-day5 Mathematics - application problems - engineering problems
- QT信号量 无法解析的错误的总结
- MySQL sorting feature details
- After the MySQL router is reinstalled, it reconnects to the cluster for boot - a problem that has been configured in this host before
- mysql插入datetime类型字段不加单引号插入不成功
- CUMCM 2021-B:乙醇偶合制備C4烯烴(2)
- 小程序 支付
- MySQL failed to insert the datetime type field without single quotation marks
- MySQL分区表实现按月份归类
猜你喜欢
随机推荐
Difference between pregnancy box and delivery box
CUMCM 2021-b: preparation of C4 olefins by ethanol coupling (2)
SVN的使用:
Learning website materials
Learn go language 0x07: stringer exercise code in go language journey
Implementation of inserting millions of data into MySQL database in 10 seconds
26. Delete duplicates in ordered array
实践数据湖iceberg 第三十课 mysql->iceberg,不同客户端有时区问题
Cygwin 中的 rename 用法
MySQL数据库10秒内插入百万条数据的实现
学习 Go 语言 0x07:《Go 语言之旅》中 Stringer 练习题代码
Three web components (servlet, filter, listener)
MySQL分区表实现按月份归类
学习 Go 语言 0x06:《Go 语言之旅》中 斐波纳契闭包 练习题代码
Database management software sqlpro for SQLite for Mac 2022.30
解读机器人编程课程的生物认知度
Detailed explanation of writing sequence and execution sequence of MySQL series SQL query statements
Write console script by laravel
Alarm scene recognition
An interesting interview question









