当前位置:网站首页>MQ is easy to use in laravel
MQ is easy to use in laravel
2022-04-23 11:23:00 【Fields after dusk】
MQ stay laravel Easy to use :
The first method of installation
First installation php Expand amqp
about mac Upper integration environment MAMP install
/Applications/MAMP/bin/php/php7.3.29/bin/pecl install amqp
If you can't, you can try
/Applications/MAMP/bin/php/php7.3.29/bin/pecl install amqp-1.11.0beta
First installation rabbitmq-c
brew install rabbitmq-c
see rabbitmq-c The installation directory
/opt/homebrew/Cellar/rabbitmq-c/0.11.0
The installation process prompts :Set the path to librabbitmq install prefix [autodetect]
# Input rabbitmq-c Installation directory location (0.11.0) Is the installed version Directory
/opt/homebrew/Cellar/rabbitmq-c/0.11.0
php.ini add to extension=amqp.so
Check it out.
php -i | grep amqp
Link to the original text :https://blog.csdn.net/weixin_43881802/article/details/121392965
The second method of installation
Download package :
cd /Applications/MAMP/bin/php/php7.3.29/include/php/ext // Get into php Catalog
wget https://pecl.php.net/get/amqp-1.11.0.tgz Download expansion pack
cd amqp // Entry directory
/Applications/MAMP/bin/php/php7.3.29/bin/phpize // perform
Open a new window
brew install rebbitmq -c
Get the address
Want in the end m1 Successfully compiled in , Combined with the --enable-thread-context
./configure --with-amqp --with-librabbitmq-dir=/opt/homebrew/Cellar/rabbitmq-c/0.11.0 // perform
make // compiling
make install // add to amqp.so The file of
php.ini add to extension=amqp.so
版权声明
本文为[Fields after dusk]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204231119486022.html
边栏推荐
- CUMCM 2021-b: preparation of C4 olefins by ethanol coupling (2)
- 初探 Lambda Powertools TypeScript
- Learning go language 0x08: practice using error in go language journey
- 学习 Go 语言 0x06:《Go 语言之旅》中 斐波纳契闭包 练习题代码
- MySQL failed to insert the datetime type field without single quotation marks
- MQ的了解
- qt5.8 64 位静态库中想使用sqlite但静态库没有编译支持库的方法
- MySQL数据库事务transaction示例讲解教程
- 2022爱分析· 工业互联网厂商全景报告
- Learn go language 0x04: Code of exercises sliced in go language journey
猜你喜欢
解读2022机器人教育产业分析报告
Promise details
一道有趣的阿里面试题
After the MySQL router is reinstalled, it reconnects to the cluster for boot - a problem that has been configured in this host before
Usage of rename in cygwin
RebbitMQ的初步了解
学习 Go 语言 0x04:《Go 语言之旅》中切片的练习题代码
On lambda powertools typescript
Constraintlayout layout
解读机器人创造出来的艺术
随机推荐
Usage record of map < qstring, bool >
PyTorch 神经网络训练器
mysql创建存储过程及函数详解
Learn go language 0x07: stringer exercise code in go language journey
nacos基础(6):nacos配置管理模型
redis优化系列(二)Redis主从原理、主从常用配置
MySQL Router重装后重新连接集群进行引导出现的——此主机中之前已配置过的问题
Mysql系列SQL查询语句书写顺序及执行顺序详解
MySQL数据库10秒内插入百万条数据的实现
Pytorch neural network trainer
Study notes of C [8] SQL [1]
活动进行时! 点击链接加入直播间参与“AI真的能节能吗?”的讨论吧!
Difference between pregnancy box and delivery box
After the MySQL router is reinstalled, it reconnects to the cluster for boot - a problem that has been configured in this host before
创客教育中的统筹方案管理模式
How to quickly query 10 million pieces of data in MySQL
Understanding of fileprovider path configuration strategy
2022爱分析· 工业互联网厂商全景报告
Learn go language 0x05: the exercise code of map in go language journey
Share two practical shell scripts