Site icon Learning & Doing

Cara Install RabbitMQ pada Amazon Linux

RabbitMQ

“Cara Install RabbitMQ pada Amazon Linux”

Perantara

RabbitMQ adalah broker pesan yang banyak digunakan dan ringan. Ini mendukung beberapa protokol perpesanan dan dapat digunakan baik di tempat maupun di infrastruktur cloud. RabbitMQ dapat digunakan sebagai cluster untuk ketersediaan dan throughput tinggi dan memiliki dukungan untuk federasi di berbagai zona dan wilayah ketersediaan. Pada artikel ini saya akan menunjukkan cara menginstal RabbitMQ di Amazon Linux 2.

Install RabbitMQ pada Amazon Linux dari Yum repositori

sudo tee etc/yum.repos.d/rabbitmq_rabbitmq-server.repo<<EOF
[rabbitmq_rabbitmq-server]
name=rabbitmq_rabbitmq-server
baseurl=https://packagecloud.io/rabbitmq/rabbitmq-server/el/7/x86_64
repo_gpgcheck=1
gpgcheck=0
enabled=1
gpgkey=https://packagecloud.io/rabbitmq/rabbitmq-server/gpgkey
sslverify=1
sslcacert=/etc/pki/tls/certs/ca-bundle.crt
metadata_expire=300

[rabbitmq_rabbitmq-server-source]
name=rabbitmq_rabbitmq-server-source
baseurl=https://packagecloud.io/rabbitmq/rabbitmq-server/el/7/SRPMS
repo_gpgcheck=1
gpgcheck=0
enabled=1
gpgkey=https://packagecloud.io/rabbitmq/rabbitmq-server/gpgkey
sslverify=1
sslcacert=/etc/pki/tls/certs/ca-bundle.crt
metadata_expire=300
EOF
sudo tee /etc/yum.repos.d/rabbitmq_erlang.repo<<EOF
[rabbitmq_erlang]
name=rabbitmq_erlang
baseurl=https://packagecloud.io/rabbitmq/erlang/el/7/x86_64
repo_gpgcheck=1
gpgcheck=1
enabled=1
# PackageCloud's repository key and RabbitMQ package signing key
gpgkey=https://packagecloud.io/rabbitmq/erlang/gpgkey
       https://dl.bintray.com/rabbitmq/Keys/rabbitmq-release-signing-key.asc
sslverify=1
sslcacert=/etc/pki/tls/certs/ca-bundle.crt
metadata_expire=300

[rabbitmq_erlang-source]
name=rabbitmq_erlang-source
baseurl=https://packagecloud.io/rabbitmq/erlang/el/7/SRPMS
repo_gpgcheck=1
gpgcheck=0
enabled=1
# PackageCloud's repository key and RabbitMQ package signing key
gpgkey=https://packagecloud.io/rabbitmq/erlang/gpgkey
       https://dl.bintray.com/rabbitmq/Keys/rabbitmq-release-signing-key.asc
sslverify=1
sslcacert=/etc/pki/tls/certs/ca-bundle.crt
metadata_expire=300
EOF
sudo yum install rabbitmq-server
sudo systemctl enable rabbitmq-server
sudo systemctl start  rabbitmq-server
ls -lh /var/log/rabbitmq

Setting User Admin

rabbitmqctl add_user admin adminxx!
rabbitmqctl set_user_tags admin administrator
rabbitmqctl set_permissions -p / admin ".*" ".*" ".*"
http://Your_Server_IP:15672

Penutup

Sahabat Blog Learning & Doing demikianlah penjelasan mengenai Cara Install RabbitMQ pada Amazon Linux. Semoga Bermanfaat . Sampai ketemu lagi di postingan berikut nya.

Exit mobile version