rabbitMQ安装
安装yum源
yum list | grep epel-release yum -y install epel-release.noarch
安装rabbitmq-server
#安装 yum -y install rabbitmq-server #启动 systemctl start rabbitmq-server.service #查看 systemctl status rabbitmq-server.service
启用管理插件
#查看 rabbitmq-plugins list #开启管理后台 rabbitmq-plugins enable rabbitmq_management #重启 systemctl restart rabbitmq-server.service #查看端口 netstat -tunlp |grep 15672 #防火墙端口放开 iptables -A INPUT -p tcp -m state --state NEW -m tcp --dport 15672 -j ACCEPT iptables-save > /etc/sysconfig/iptables
登录管理后台
账号:guest 密码:guest
安装AMQP插件
#安装PHP编译环境 yum -y install php-devel #安装依赖数据包 yum -y install librabbitmq-devel #安装amqp pecl install amqp #修改php配置文件 vim /usr/local/php/etc/php.ini 添加 extension=amqp.so #重启php-fpm service php-fpm restart
最后查看插件是否安装成功
相关推荐
waitzkj 2020-06-04
zhuxue 2020-10-14
shenzhenzsw 2020-10-09
shyoldboy 2020-09-27
leihui00 2020-09-16
lishijian 2020-08-17
程序员伊成 2020-08-06
ljcsdn 2020-07-27
waitzkj 2020-07-25
powrexly 2020-07-20
liym 2020-07-20
zhoucheng0 2020-07-19
shenzhenzsw 2020-07-18
woaishanguosha 2020-07-18
waitzkj 2020-07-18
zhoucheng0 2020-07-08
json0000 2020-07-04