# apt-get update
node
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
# apt-get -y install socat logrotate init-system-helpers adduser
git
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) ...
# apt-get -y install wget
github
# wget https://github.com/rabbitmq/rabbitmq-server/releases/download/v3.7.17/rabbitmq-server_3.7.17-1_all.deb
ubuntu
# dpkg -i rabbitmq-server_3.7.17-1_all.deb
gitlab
(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) ...
# service rabbitmq-server start
ui
# service rabbitmq-server stop
this
# rabbitmq-plugins enable rabbitmq_management
spa
http://{node-hostname}:15672/
插件
# rabbitmqctl add_user full_access s3crEt
code
# rabbitmqctl set_user_tags full_access administrator