rabbitmq server install

1.sync package metadata

# apt-get updatenode

Hit:1 http://hqapt.pega.corp.pegatron/ubuntu xenial InRelease
Hit:2 http://tw.archive.ubuntu.com/ubuntu xenial InRelease
Hit:3 http://tw.archive.ubuntu.com/ubuntu xenial-updates InRelease
Hit:4 http://tw.archive.ubuntu.com/ubuntu xenial-backports InRelease
Get:5 http://security.ubuntu.com/ubuntu xenial-security InRelease [109 kB]
Hit:6 https://packages.gitlab.com/gitlab/gitlab-ce/ubuntu xenial InRelease
Fetched 109 kB in 2s (53.2 kB/s)
Reading package lists... Done
2.install dependencies manually

# apt-get -y install socat logrotate init-system-helpers addusergit

Reading package lists... Done
Building dependency tree
Reading state information... Done
adduser is already the newest version (3.113+nmu3ubuntu4).
socat is already the newest version (1.7.3.1-1).
socat set to manually installed.
Suggested packages:
  mailx
The following packages will be upgraded:
  init-system-helpers logrotate
2 upgraded, 0 newly installed, 0 to remove and 284 not upgraded.
Need to get 70.0 kB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 http://tw.archive.ubuntu.com/ubuntu xenial-updates/main amd64 init-system-helpers all 1.29ubuntu4 [32.3 kB]
Get:2 http://tw.archive.ubuntu.com/ubuntu xenial-updates/main amd64 logrotate amd64 3.8.7-2ubuntu2.16.04.2 [37.7 kB]
Fetched 70.0 kB in 2s (24.7 kB/s)
(Reading database ... 98697 files and directories currently installed.)
Preparing to unpack .../init-system-helpers_1.29ubuntu4_all.deb ...
Unpacking init-system-helpers (1.29ubuntu4) over (1.29ubuntu3) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up init-system-helpers (1.29ubuntu4) ...
(Reading database ... 98697 files and directories currently installed.)
Preparing to unpack .../logrotate_3.8.7-2ubuntu2.16.04.2_amd64.deb ...
Unpacking logrotate (3.8.7-2ubuntu2.16.04.2) over (3.8.7-2ubuntu2) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up logrotate (3.8.7-2ubuntu2.16.04.2) ...
3.download the package

# apt-get -y install wgetgithub

# wget https://github.com/rabbitmq/rabbitmq-server/releases/download/v3.7.17/rabbitmq-server_3.7.17-1_all.debubuntu

4.install the package with dpkg

# dpkg -i rabbitmq-server_3.7.17-1_all.debgitlab

(Reading database ... 98697 files and directories currently installed.)
Preparing to unpack rabbitmq-server_3.7.17-1_all.deb ...
Unpacking rabbitmq-server (3.7.17-1) over (3.7.17-1) ...
Setting up rabbitmq-server (3.7.17-1) ...
Processing triggers for man-db (2.7.5-1) ...
Processing triggers for systemd (229-4ubuntu16) ...
Processing triggers for ureadahead (0.100.0-19) ...
5.Start/Stop the Server

# service rabbitmq-server startui

# service rabbitmq-server stopthis

6.啟動管理插件

# rabbitmq-plugins enable rabbitmq_managementspa

7.測試管理界面

http://{node-hostname}:15672/插件

8.添加管理員

# rabbitmqctl add_user full_access s3crEtcode

# rabbitmqctl set_user_tags full_access administrator

相關文章
相關標籤/搜索