当前位置:网站首页>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
边栏推荐
- Usage of rename in cygwin
- 创客教育中的统筹方案管理模式
- After the MySQL router is reinstalled, it reconnects to the cluster for boot - a problem that has been configured in this host before
- CUMCM 2021-B:乙醇偶合制备C4烯烃(2)
- Oracle连通性测试小工具
- Canvas详解
- Upgrade the functions available for cpolar intranet penetration
- 分享两个实用的shell脚本
- MySQL8.0升级的踩坑历险记
- Mysql database transaction example tutorial
猜你喜欢
Excel · VBA array bubble sorting function
An interesting interview question
探究机器人教育的器材与教学
解读2022机器人教育产业分析报告
数据库管理软件SQLPro for SQLite for Mac 2022.30
Cygwin 中的 rename 用法
Summary of the relationship among GPU, CUDA and cudnn
微型机器人的认知和研发技术
讯飞2021年营收183亿:同比增41% 净利为15.56亿
实践数据湖iceberg 第三十课 mysql->iceberg,不同客户端有时区问题
随机推荐
MySQL数据库10秒内插入百万条数据的实现
Jupyter Lab 十大高生产力插件
Three web components (servlet, filter, listener)
PyTorch 神经网络训练器
mysql分表之后如何平滑上线详解
R-Drop:更强大的Dropout正则方法
Get things technology network optimization - CDN resource request Optimization Practice
More reliable model art than deep learning
When the activity is in progress! Click the link to join the live studio to participate in "can AI really save energy?" Let's have a discussion!
Mysql database transaction example tutorial
Laravel admin form validation
stylecloud ,wordcloud 库学习及使用例子
Learn go language 0x05: the exercise code of map in go language journey
Usage of rename in cygwin
MySQL面试题讲解之如何设置Hash索引
Constraintlayout layout
Mysql排序的特性详情
分享两个实用的shell脚本
Share two practical shell scripts
Mysql8.0安装指南