前往小程序,Get更优阅读体验!
立即前往
发布
社区首页 >专栏 >RabbitMQ 监控2

RabbitMQ 监控2

作者头像
franket
发布2022-02-09 19:48:18
发布2022-02-09 19:48:18
17200
代码可运行
举报
文章被收录于专栏:技术杂记技术杂记
运行总次数:0
代码可运行

打开防火墙

打开本地(RabbitMQ Server)防火墙

代码语言:javascript
代码运行次数:0
复制
[root@rabbitmq ~]# netstat  -ant | grep 15672
tcp        0      0 0.0.0.0:15672               0.0.0.0:*                   LISTEN      
[root@rabbitmq ~]# iptables -L -nv | grep 15672
[root@rabbitmq ~]# grep 15672 /etc/sysconfig/iptables
[root@rabbitmq ~]# vim /etc/sysconfig/iptables
[root@rabbitmq ~]# grep 15672 /etc/sysconfig/iptables
-A INPUT -m state --state NEW -m tcp -p tcp --dport 15672 -j ACCEPT
[root@rabbitmq ~]# /etc/init.d/iptables reload 
iptables: Trying to reload firewall rules:                 [  OK  ]
[root@rabbitmq ~]# iptables -L -nv | grep 15672
    0     0 ACCEPT     tcp  --  *      *       0.0.0.0/0            0.0.0.0/0           state NEW tcp dpt:15672 
[root@rabbitmq ~]# 

打开nginx server防火墙

代码语言:javascript
代码运行次数:0
复制
[root@new-mq-node nginx]# iptables -L -nv | grep 1443
[root@new-mq-node nginx]# vim /etc/sysconfig/iptables
[root@new-mq-node nginx]# grep 1443 /etc/sysconfig/iptables
-A INPUT -m state --state NEW -m tcp -p tcp --dport 1443 -j ACCEPT
[root@new-mq-node nginx]# /etc/init.d/iptables  reload
iptables: Trying to reload firewall rules:                 [  OK  ]
[root@new-mq-node nginx]# iptables -L -nv | grep 1443
    0     0 ACCEPT     tcp  --  *      *       0.0.0.0/0            0.0.0.0/0           state NEW tcp dpt:1443 
[root@new-mq-node nginx]# 

检查和重载nginx服务

代码语言:javascript
代码运行次数:0
复制
[root@new-mq-node nginx]# netstat  -ant | grep 1443
[root@new-mq-node nginx]# sbin/nginx -t -c conf/nginx.conf
the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok
configuration file /usr/local/nginx/conf/nginx.conf test is successful
[root@new-mq-node nginx]# ps faux | grep nginx | grep -v grep 
root      4623  0.0  0.0  46460  3632 ?        Ss   Jan07   0:00 nginx: master process sbin/nginx -c conf/nginx.conf
nginx    15681  0.0  0.0  46956  2028 ?        S    10:16   0:00  \_ nginx: worker process        
[root@new-mq-node nginx]# kill -HUP 4623
[root@new-mq-node nginx]# netstat  -ant | grep 1443
tcp        0      0 0.0.0.0:1443                0.0.0.0:*                   LISTEN      
[root@new-mq-node nginx]# 

本文系转载,前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文系转载前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • 打开防火墙
  • 检查和重载nginx服务
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档