pi@rabbit-pi:/etc/rabbitmq $ sudo systemctl restart rabbitmq-server
최초 실행 시 rabbitmq 는 ipv6 에서 5672 서비스 가능.
pi@rabbit-pi:~/test $ netstat -an|more
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 0.0.0.0:25672 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:4369 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:15672 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:6010 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:6011 0.0.0.0:* LISTEN
tcp 0 0 192.168.1.28:22 192.168.1.13:42954 ESTABLISHED
tcp 0 0 192.168.1.28:22 192.168.1.13:43512 ESTABLISHED
tcp 0 0 192.168.1.28:22 192.168.1.13:43500 ESTABLISHED
tcp 0 0 127.0.0.1:40659 127.0.0.1:4369 ESTABLISHED
tcp 0 0 127.0.0.1:4369 127.0.0.1:40659 ESTABLISHED
tcp 0 0 127.0.1.1:4369 127.0.0.1:41022 TIME_WAIT
tcp6 0 0 :::5672 :::* LISTEN
tcp6 0 0 :::22 :::* LISTEN
tcp6 0 0 ::1:6010 :::* LISTEN
tcp6 0 0 ::1:6011 :::* LISTEN
tcp6 0 0 ::1:57068 ::1:5672 ESTABLISHED
tcp6 0 0 ::1:5672 ::1:57068 ESTABLISHED
tcp6 0 0 ::1:57962 ::1:6011 TIME_WAIT
udp 0 0 0.0.0.0:68 0.0.0.0:*
udp 0 0 192.168.1.28:123 0.0.0.0:*
udp 0 0 127.0.0.1:123 0.0.0.0:*
udp 0 0 0.0.0.0:123 0.0.0.0:*
udp 0 0 0.0.0.0:50330 0.0.0.0:*
udp 0 0 0.0.0.0:5353 0.0.0.0:*
udp6 0 0 :::34779 :::*
udp6 0 0 fe80::8aa2:e9e0:b44:123 :::*
udp6 0 0 ::1:123 :::*
udp6 0 0 :::123 :::*
udp6 0 0 :::5353 :::*
raw6 0 0 :::58 :::* 7
ipv4 서비스 하기 위해 /etc/rabbitmq/rabbitmq.config 파일 생성(최초 설치 시 없는파일 이므로 만들어 사용).
pi@rabbit-pi:/etc/rabbitmq $ cat /etc/rabbitmq/rabbitmq.config
[
{rabbit, [
{tcp_listeners, [{"0.0.0.0", 5672},
{"::1", 5672}]}
]}
].
서비스 restart
pi@rabbit-pi:/etc/rabbitmq $ sudo systemctl restart rabbitmq-server
network 서비스 확인
pi@rabbit-pi:/etc/rabbitmq $ netstat -an|more
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 0.0.0.0:5672 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:25672 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:4369 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:15672 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:6010 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:6011 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:43999 127.0.1.1:25672 TIME_WAIT
tcp 0 0 127.0.0.1:4369 127.0.0.1:46258 TIME_WAIT
tcp 0 0 127.0.0.1:33074 127.0.0.1:4369 ESTABLISHED
tcp 0 0 192.168.1.28:22 192.168.1.13:42954 ESTABLISHED
tcp 0 0 127.0.0.1:44711 127.0.0.1:4369 TIME_WAIT
tcp 0 0 127.0.0.1:4369 127.0.0.1:33074 ESTABLISHED
tcp 0 0 192.168.1.28:22 192.168.1.13:43512 ESTABLISHED
tcp 0 0 127.0.1.1:4369 127.0.0.1:35267 TIME_WAIT
tcp 0 0 192.168.1.28:22 192.168.1.13:43500 ESTABLISHED
tcp 0 0 127.0.1.1:4369 127.0.0.1:53111 TIME_WAIT
tcp 0 0 127.0.0.1:35131 127.0.0.1:4369 TIME_WAIT
tcp 0 0 127.0.1.1:4369 127.0.0.1:42002 TIME_WAIT
tcp 0 0 127.0.0.1:60629 127.0.0.1:4369 TIME_WAIT
tcp 0 0 127.0.1.1:4369 127.0.0.1:35784 TIME_WAIT
tcp6 0 0 ::1:5672 :::* LISTEN
tcp6 0 0 :::22 :::* LISTEN
tcp6 0 0 ::1:6010 :::* LISTEN
tcp6 0 0 ::1:6011 :::* LISTEN
udp 0 0 0.0.0.0:68 0.0.0.0:*
udp 0 0 192.168.1.28:123 0.0.0.0:*
udp 0 0 127.0.0.1:123 0.0.0.0:*
udp 0 0 0.0.0.0:123 0.0.0.0:*
udp 0 0 0.0.0.0:50330 0.0.0.0:*
udp 0 0 0.0.0.0:5353 0.0.0.0:*
udp6 0 0 :::34779 :::*
udp6 0 0 fe80::8aa2:e9e0:b44:123 :::*
udp6 0 0 ::1:123 :::*
udp6 0 0 :::123 :::*
udp6 0 0 :::5353 :::*
raw6 0 0 :::58 :::* 7
댓글 없음:
댓글 쓰기