DBILITY

centos 7 rabbitmq 설치 본문

os/linux

centos 7 rabbitmq 설치

DBILITY 2018. 10. 19. 12:13
반응형
[root@big-devel ~]# yum install -y epel-release
[root@big-devel ~]# yum install -y erlang
[root@big-devel ~]# yum install -y rabbitmq-server
[root@big-devel ~]# rabbitmq-plugins enable rabbitmq_management
The following plugins have been enabled:
  mochiweb
  webmachine
  rabbitmq_web_dispatch
  amqp_client
  rabbitmq_management_agent
  rabbitmq_management
Plugin configuration has changed. Restart RabbitMQ for changes to take effect.
[root@big-devel ~]# rabbitmq-plugins enable rabbitmq_mqtt
The following plugins have been enabled:
  rabbitmq_mqtt
Plugin configuration has changed. Restart RabbitMQ for changes to take effect.

[root@big-devel ~]# setsebool -P nis_enabled 1

[root@big-devel ~]# systemctl | grep rabbit
[root@big-devel ~]# systemctl enable rabbitmq-server
Created symlink from /etc/systemd/system/multi-user.target.wants/rabbitmq-server.service to /usr/lib/systemd/system/rabbitmq-server.service.
[root@big-devel ~]# systemctl start rabbitmq-server
[root@big-devel ~]# systemctl status rabbitmq-server
● rabbitmq-server.service - RabbitMQ broker
   Loaded: loaded (/usr/lib/systemd/system/rabbitmq-server.service; enabled; vendor preset: disabled)
   Active: active (running) since Fri 2018-10-19 12:17:56 KST; 5s ago
 Main PID: 22441 (beam.smp)
   CGroup: /system.slice/rabbitmq-server.service
           ├─22441 /usr/lib64/erlang/erts-5.10.4/bin/beam.smp -W w -K true -A30 -P 1048576 -- -ro...
           ├─22537 inet_gethost 4
           └─22538 inet_gethost 4

Oct 19 12:17:53 big-devel systemd[1]: rabbitmq-server.service: Got notification message from ...2441
Oct 19 12:17:53 big-devel systemd[1]: rabbitmq-server.service: Got notification message from ...2441
Oct 19 12:17:54 big-devel rabbitmq-server[22441]: RabbitMQ 3.3.5. Copyright (C) 2007-2014 GoPiv...c.
Oct 19 12:17:54 big-devel rabbitmq-server[22441]: ##  ##      Licensed under the MPL.  See http...m/
Oct 19 12:17:54 big-devel rabbitmq-server[22441]: ##  ##
Oct 19 12:17:54 big-devel rabbitmq-server[22441]: ##########  Logs: /var/log/rabbitmq/rabbit@bi...og
Oct 19 12:17:54 big-devel rabbitmq-server[22441]: ######  ##        /var/log/rabbitmq/rabbit@bi...og
Oct 19 12:17:54 big-devel rabbitmq-server[22441]: ##########
Oct 19 12:17:56 big-devel rabbitmq-server[22441]: Starting broker... completed with 6 plugins.
Oct 19 12:17:56 big-devel systemd[1]: Started RabbitMQ broker.
Hint: Some lines were ellipsized, use -l to show in full.

원격 시스템에서 RabbitMQ 원격 관리 콘솔에 접근하기 위해 SELinux  Firewall를 통해 다음 포트를 허용해야 한다.

다음 포트를 오픈 한다.

  • 4369 (epmd), 25672 (Erlang distribution)
  • 5672, 5671 (AMQP 0-9-1 without and with TLS)
    15672 (if management plugin is enabled)
  • 61613, 61614 (if STOMP is enabled)
  • 1883, 8883 (if MQTT is enabled)
관리페이지에 접속해 본다.포트는 15672, 인증은 guest/guest

 

다음과 같은 화면이 나오면 일단 성공

 

exchange 나 queue는 매뉴얼 참고.

 

반응형

'os > linux' 카테고리의 다른 글

linux find 날짜지정  (0) 2022.09.07
centos 7 cp force  (0) 2019.04.12
lvm 확장 후 fs 적용  (0) 2018.05.13
linux time sync ntp install ( 시간 동기화 ntp 설치 )  (0) 2018.05.05
centos 7 systemd 서비스 작성  (0) 2018.04.20
Comments