打开本地(RabbitMQ Server)防火墙
[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防火墙
[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]#
[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 删除。