一、版本配套

  Ubuntu 16.04 LTS + Python 2.7

  参考链接:

  https://blog.csdn.net/rickey17/article/details/72756766

二、安装过程

       

root@ubuntu:~# mkdir rabbitmq
root@ubuntu:~# ll
total 76
drwx------ 11 root root 4096 Aug 30 00:32 ./
drwxr-xr-x 25 root root 4096 Sep 18  2017 ../
-rw-------  1 root root 5044 Sep 22  2017 .bash_history
-rw-r--r--  1 root root 3283 Sep  5  2017 .bashrc
drwx------  3 root root 4096 Sep 11  2017 .cache/
drwx------  4 root root 4096 Sep  5  2017 .config/
drwx------  3 root root 4096 Sep  3  2017 .gnupg/
drwx------  2 root root 4096 Sep 15  2017 .httpie/
drwxr-xr-x  3 root root 4096 Sep  5  2017 .local/
drwxr-xr-x  2 root root 4096 Sep 18  2017 .oracle_jre_usage/
drwxr-xr-x  4 root root 4096 Aug 29 23:46 p4/
-rw-r--r--  1 root root  148 Aug 17  2015 .profile
drwxr-xr-x  2 root root 4096 Aug 30 00:32 rabbitmq/
-rw-------  1 root root 1024 Aug 29 23:46 .rnd
-rw-------  1 root root 7437 Sep 24  2017 .viminfo
-rw-r--r--  1 root root  167 Sep 27  2017 .wget-hsts
drwxr-xr-x  2 root root 4096 Aug 29 23:45 .wireshark/
root@ubuntu:~# cd rabbitmq/
root@ubuntu:~/rabbitmq# ll
total 8
drwxr-xr-x  2 root root 4096 Aug 30 00:32 ./
drwx------ 11 root root 4096 Aug 30 00:32 ../
root@ubuntu:~/rabbitmq# echo 'deb http://www.rabbitmq.com/debian/ testing main' | sudo tee /etc/apt/sources.list.d/rabbitmq.list
deb http://www.rabbitmq.com/debian/ testing main
root@ubuntu:~/rabbitmq# wget -O- https://www.rabbitmq.com/rabbitmq-release-signing-key.asc | sudo apt-key add -
--2018-08-30 00:33:40--  https://www.rabbitmq.com/rabbitmq-release-signing-key.asc
Resolving www.rabbitmq.com (www.rabbitmq.com)... 104.20.63.197, 104.20.62.197, 2400:cb00:2048:1::6814:3fc5, ...
Connecting to www.rabbitmq.com (www.rabbitmq.com)|104.20.63.197|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/plain]
Saving to: ‘STDOUT’

-                                                      [ <=>                                                                                                             ]   3.11K  --.-KB/s    in 0.001s  

2018-08-30 00:33:41 (5.46 MB/s) - written to stdout [3187]

OK
root@ubuntu:~/rabbitmq# apt-get update
Get:1 http://www.rabbitmq.com/debian testing InRelease [33.0 kB]
Hit:2 http://cn.archive.ubuntu.com/ubuntu xenial InRelease                                                                                                         
Get:3 http://security.ubuntu.com/ubuntu xenial-security InRelease [107 kB]                                                                                         
Hit:4 http://ppa.launchpad.net/hzwhuang/ss-qt5/ubuntu xenial InRelease                                                                                                      
Get:5 http://cn.archive.ubuntu.com/ubuntu xenial-updates InRelease [109 kB]                                                                
Get:6 http://www.rabbitmq.com/debian testing/main amd64 Packages [455 B]                                                                               
Get:7 http://www.rabbitmq.com/debian testing/main i386 Packages [455 B]                                                                            
Hit:8 http://cn.archive.ubuntu.com/ubuntu xenial-backports InRelease                                                        
Ign:10 https://apt.dockerproject.org/repo ubuntu-xenial InRelease                                                                                                                                          
Ign:11 https://apt.dockerproject.org/repo ubuntu-xenial Release
Ign:12 https://apt.dockerproject.org/repo ubuntu-xenial/main amd64 Packages.diff/Index
Ign:13 https://apt.dockerproject.org/repo ubuntu-xenial/main i386 Packages
Ign:14 https://apt.dockerproject.org/repo ubuntu-xenial/main all Packages
Ign:15 https://apt.dockerproject.org/repo ubuntu-xenial/main Translation-en_US
Ign:16 https://apt.dockerproject.org/repo ubuntu-xenial/main Translation-en
Ign:17 https://apt.dockerproject.org/repo ubuntu-xenial/main amd64 DEP-11 Metadata
Ign:18 https://apt.dockerproject.org/repo ubuntu-xenial/main DEP-11 64x64 Icons
Ign:19 https://apt.dockerproject.org/repo ubuntu-xenial/main amd64 Packages
Get:13 https://apt.dockerproject.org/repo ubuntu-xenial/main i386 Packages [28 B]
Ign:14 https://apt.dockerproject.org/repo ubuntu-xenial/main all Packages
Ign:15 https://apt.dockerproject.org/repo ubuntu-xenial/main Translation-en_US
Ign:16 https://apt.dockerproject.org/repo ubuntu-xenial/main Translation-en
Ign:17 https://apt.dockerproject.org/repo ubuntu-xenial/main amd64 DEP-11 Metadata
Ign:18 https://apt.dockerproject.org/repo ubuntu-xenial/main DEP-11 64x64 Icons
Get:19 https://apt.dockerproject.org/repo ubuntu-xenial/main amd64 Packages [4,177 B]
Ign:19 https://apt.dockerproject.org/repo ubuntu-xenial/main amd64 Packages
Err:9 https://packages.cloud.google.com/apt kubernetes-xenial InRelease                                                                                                                                    
  Connection timed out after 120000 milliseconds
Ign:14 https://apt.dockerproject.org/repo ubuntu-xenial/main all Packages
Ign:15 https://apt.dockerproject.org/repo ubuntu-xenial/main Translation-en_US
Ign:16 https://apt.dockerproject.org/repo ubuntu-xenial/main Translation-en
Ign:17 https://apt.dockerproject.org/repo ubuntu-xenial/main amd64 DEP-11 Metadata
Ign:18 https://apt.dockerproject.org/repo ubuntu-xenial/main DEP-11 64x64 Icons
Ign:19 https://apt.dockerproject.org/repo ubuntu-xenial/main amd64 Packages
Ign:14 https://apt.dockerproject.org/repo ubuntu-xenial/main all Packages
Ign:15 https://apt.dockerproject.org/repo ubuntu-xenial/main Translation-en_US
Ign:16 https://apt.dockerproject.org/repo ubuntu-xenial/main Translation-en
Ign:17 https://apt.dockerproject.org/repo ubuntu-xenial/main amd64 DEP-11 Metadata
Ign:18 https://apt.dockerproject.org/repo ubuntu-xenial/main DEP-11 64x64 Icons
Hit:19 https://apt.dockerproject.org/repo ubuntu-xenial/main amd64 Packages
Ign:14 https://apt.dockerproject.org/repo ubuntu-xenial/main all Packages
Ign:15 https://apt.dockerproject.org/repo ubuntu-xenial/main Translation-en_US
Ign:16 https://apt.dockerproject.org/repo ubuntu-xenial/main Translation-en
Ign:17 https://apt.dockerproject.org/repo ubuntu-xenial/main amd64 DEP-11 Metadata
Ign:18 https://apt.dockerproject.org/repo ubuntu-xenial/main DEP-11 64x64 Icons
Ign:14 https://apt.dockerproject.org/repo ubuntu-xenial/main all Packages
Ign:15 https://apt.dockerproject.org/repo ubuntu-xenial/main Translation-en_US
Ign:16 https://apt.dockerproject.org/repo ubuntu-xenial/main Translation-en
Ign:17 https://apt.dockerproject.org/repo ubuntu-xenial/main amd64 DEP-11 Metadata
Ign:18 https://apt.dockerproject.org/repo ubuntu-xenial/main DEP-11 64x64 Icons
Fetched 250 kB in 7min 48s (533 B/s)
Reading package lists... Done
W: The repository 'https://apt.dockerproject.org/repo ubuntu-xenial Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: Failed to fetch http://apt.kubernetes.io/dists/kubernetes-xenial/InRelease  Connection timed out after 120000 milliseconds
W: Some index files failed to download. They have been ignored, or old ones used instead.
root@ubuntu:~/rabbitmq# apt-get install rabbitmq-server
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  linux-headers-4.10.0-28 linux-headers-4.10.0-28-generic linux-image-4.10.0-28-generic linux-image-extra-4.10.0-28-generic
Use 'apt autoremove' to remove them.
The following additional packages will be installed:
  erlang-asn1 erlang-base erlang-corba erlang-crypto erlang-diameter erlang-edoc erlang-eldap erlang-erl-docgen erlang-eunit erlang-ic erlang-inets erlang-mnesia erlang-nox erlang-odbc erlang-os-mon
  erlang-parsetools erlang-percept erlang-public-key erlang-runtime-tools erlang-snmp erlang-ssh erlang-ssl erlang-syntax-tools erlang-tools erlang-webtool erlang-xmerl libodbc1 libsctp1
Suggested packages:
  erlang erlang-manpages erlang-doc xsltproc fop erlang-ic-java erlang-observer libmyodbc odbc-postgresql tdsodbc unixodbc-bin lksctp-tools
The following NEW packages will be installed:
  erlang-asn1 erlang-base erlang-corba erlang-crypto erlang-diameter erlang-edoc erlang-eldap erlang-erl-docgen erlang-eunit erlang-ic erlang-inets erlang-mnesia erlang-nox erlang-odbc erlang-os-mon
  erlang-parsetools erlang-percept erlang-public-key erlang-runtime-tools erlang-snmp erlang-ssh erlang-ssl erlang-syntax-tools erlang-tools erlang-webtool erlang-xmerl libodbc1 libsctp1 rabbitmq-server
0 upgraded, 29 newly installed, 0 to remove and 459 not upgraded.
Need to get 24.3 MB of archives.
After this operation, 41.8 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://www.rabbitmq.com/debian testing/main amd64 rabbitmq-server all 3.6.15-1 [5,025 kB]
Get:2 http://cn.archive.ubuntu.com/ubuntu xenial-updates/main amd64 erlang-base amd64 1:18.3-dfsg-1ubuntu3.1 [7,002 kB]
Get:3 http://cn.archive.ubuntu.com/ubuntu xenial-updates/main amd64 erlang-asn1 amd64 1:18.3-dfsg-1ubuntu3.1 [709 kB]                                                                                      
Get:4 http://cn.archive.ubuntu.com/ubuntu xenial-updates/main amd64 erlang-mnesia amd64 1:18.3-dfsg-1ubuntu3.1 [664 kB]                                                                                    
Get:5 http://cn.archive.ubuntu.com/ubuntu xenial-updates/main amd64 erlang-runtime-tools amd64 1:18.3-dfsg-1ubuntu3.1 [164 kB]                                                                             
Get:6 http://cn.archive.ubuntu.com/ubuntu xenial-updates/main amd64 erlang-crypto amd64 1:18.3-dfsg-1ubuntu3.1 [106 kB]                                                                                    
Get:7 http://cn.archive.ubuntu.com/ubuntu xenial-updates/main amd64 erlang-public-key amd64 1:18.3-dfsg-1ubuntu3.1 [524 kB]                                                                                
Get:8 http://cn.archive.ubuntu.com/ubuntu xenial-updates/main amd64 erlang-ssl amd64 1:18.3-dfsg-1ubuntu3.1 [658 kB]                                                                                       
Get:9 http://cn.archive.ubuntu.com/ubuntu xenial-updates/main amd64 erlang-inets amd64 1:18.3-dfsg-1ubuntu3.1 [714 kB]                                                                                     
Get:10 http://cn.archive.ubuntu.com/ubuntu xenial-updates/main amd64 erlang-corba amd64 1:18.3-dfsg-1ubuntu3.1 [2,233 kB]                                                                                  
Get:11 http://cn.archive.ubuntu.com/ubuntu xenial-updates/main amd64 erlang-syntax-tools amd64 1:18.3-dfsg-1ubuntu3.1 [322 kB]                                                                             
Get:12 http://cn.archive.ubuntu.com/ubuntu xenial-updates/main amd64 erlang-diameter amd64 1:18.3-dfsg-1ubuntu3.1 [642 kB]                                                                                 
Get:13 http://cn.archive.ubuntu.com/ubuntu xenial-updates/main amd64 erlang-xmerl amd64 1:18.3-dfsg-1ubuntu3.1 [958 kB]                                                                                    
Get:14 http://cn.archive.ubuntu.com/ubuntu xenial-updates/main amd64 erlang-edoc amd64 1:18.3-dfsg-1ubuntu3.1 [292 kB]                                                                                     
Get:15 http://cn.archive.ubuntu.com/ubuntu xenial-updates/main amd64 erlang-eldap amd64 1:18.3-dfsg-1ubuntu3.1 [99.3 kB]                                                                                   
Get:16 http://cn.archive.ubuntu.com/ubuntu xenial-updates/main amd64 erlang-erl-docgen amd64 1:18.3-dfsg-1ubuntu3.1 [132 kB]                                                                               
Get:17 http://cn.archive.ubuntu.com/ubuntu xenial-updates/main amd64 erlang-eunit amd64 1:18.3-dfsg-1ubuntu3.1 [134 kB]                                                                                    
Get:18 http://cn.archive.ubuntu.com/ubuntu xenial-updates/main amd64 erlang-ic amd64 1:18.3-dfsg-1ubuntu3.1 [816 kB]                                                                                       
Get:19 http://cn.archive.ubuntu.com/ubuntu xenial/main amd64 libodbc1 amd64 2.3.1-4.1 [180 kB]                                                                                                             
Get:20 http://cn.archive.ubuntu.com/ubuntu xenial-updates/main amd64 erlang-odbc amd64 1:18.3-dfsg-1ubuntu3.1 [47.3 kB]                                                                                    
Get:21 http://cn.archive.ubuntu.com/ubuntu xenial-updates/main amd64 erlang-snmp amd64 1:18.3-dfsg-1ubuntu3.1 [1,525 kB]                                                                                   
Get:22 http://cn.archive.ubuntu.com/ubuntu xenial-updates/main amd64 erlang-os-mon amd64 1:18.3-dfsg-1ubuntu3.1 [89.7 kB]                                                                                  
Get:23 http://cn.archive.ubuntu.com/ubuntu xenial-updates/main amd64 erlang-parsetools amd64 1:18.3-dfsg-1ubuntu3.1 [153 kB]                                                                               
Get:24 http://cn.archive.ubuntu.com/ubuntu xenial-updates/main amd64 erlang-percept amd64 1:18.3-dfsg-1ubuntu3.1 [132 kB]                                                                                  
Get:25 http://cn.archive.ubuntu.com/ubuntu xenial-updates/main amd64 erlang-ssh amd64 1:18.3-dfsg-1ubuntu3.1 [430 kB]                                                                                      
Get:26 http://cn.archive.ubuntu.com/ubuntu xenial-updates/main amd64 erlang-webtool amd64 1:18.3-dfsg-1ubuntu3.1 [35.6 kB]                                                                                 
Get:27 http://cn.archive.ubuntu.com/ubuntu xenial-updates/main amd64 erlang-tools amd64 1:18.3-dfsg-1ubuntu3.1 [518 kB]                                                                                    
Get:28 http://cn.archive.ubuntu.com/ubuntu xenial-updates/main amd64 erlang-nox all 1:18.3-dfsg-1ubuntu3.1 [14.2 kB]                                                                                       
Get:29 http://cn.archive.ubuntu.com/ubuntu xenial/main amd64 libsctp1 amd64 1.0.16+dfsg-3 [8,088 B]                                                                                                        
Fetched 24.3 MB in 47s (511 kB/s)                                                                                                                                                                          
Selecting previously unselected package erlang-base.
(Reading database ... 258510 files and directories currently installed.)
Preparing to unpack .../erlang-base_1%3a18.3-dfsg-1ubuntu3.1_amd64.deb ...
Unpacking erlang-base (1:18.3-dfsg-1ubuntu3.1) ...
Selecting previously unselected package erlang-asn1.
Preparing to unpack .../erlang-asn1_1%3a18.3-dfsg-1ubuntu3.1_amd64.deb ...
Unpacking erlang-asn1 (1:18.3-dfsg-1ubuntu3.1) ...
Selecting previously unselected package erlang-mnesia.
Preparing to unpack .../erlang-mnesia_1%3a18.3-dfsg-1ubuntu3.1_amd64.deb ...
Unpacking erlang-mnesia (1:18.3-dfsg-1ubuntu3.1) ...
Selecting previously unselected package erlang-runtime-tools.
Preparing to unpack .../erlang-runtime-tools_1%3a18.3-dfsg-1ubuntu3.1_amd64.deb ...
Unpacking erlang-runtime-tools (1:18.3-dfsg-1ubuntu3.1) ...
Selecting previously unselected package erlang-crypto.
Preparing to unpack .../erlang-crypto_1%3a18.3-dfsg-1ubuntu3.1_amd64.deb ...
Unpacking erlang-crypto (1:18.3-dfsg-1ubuntu3.1) ...
Selecting previously unselected package erlang-public-key.
Preparing to unpack .../erlang-public-key_1%3a18.3-dfsg-1ubuntu3.1_amd64.deb ...
Unpacking erlang-public-key (1:18.3-dfsg-1ubuntu3.1) ...
Selecting previously unselected package erlang-ssl.
Preparing to unpack .../erlang-ssl_1%3a18.3-dfsg-1ubuntu3.1_amd64.deb ...
Unpacking erlang-ssl (1:18.3-dfsg-1ubuntu3.1) ...
Selecting previously unselected package erlang-inets.
Preparing to unpack .../erlang-inets_1%3a18.3-dfsg-1ubuntu3.1_amd64.deb ...
Unpacking erlang-inets (1:18.3-dfsg-1ubuntu3.1) ...
Selecting previously unselected package erlang-corba.
Preparing to unpack .../erlang-corba_1%3a18.3-dfsg-1ubuntu3.1_amd64.deb ...
Unpacking erlang-corba (1:18.3-dfsg-1ubuntu3.1) ...
Selecting previously unselected package erlang-syntax-tools.
Preparing to unpack .../erlang-syntax-tools_1%3a18.3-dfsg-1ubuntu3.1_amd64.deb ...
Unpacking erlang-syntax-tools (1:18.3-dfsg-1ubuntu3.1) ...
Selecting previously unselected package erlang-diameter.
Preparing to unpack .../erlang-diameter_1%3a18.3-dfsg-1ubuntu3.1_amd64.deb ...
Unpacking erlang-diameter (1:18.3-dfsg-1ubuntu3.1) ...
Selecting previously unselected package erlang-xmerl.
Preparing to unpack .../erlang-xmerl_1%3a18.3-dfsg-1ubuntu3.1_amd64.deb ...
Unpacking erlang-xmerl (1:18.3-dfsg-1ubuntu3.1) ...
Selecting previously unselected package erlang-edoc.
Preparing to unpack .../erlang-edoc_1%3a18.3-dfsg-1ubuntu3.1_amd64.deb ...
Unpacking erlang-edoc (1:18.3-dfsg-1ubuntu3.1) ...
Selecting previously unselected package erlang-eldap.
Preparing to unpack .../erlang-eldap_1%3a18.3-dfsg-1ubuntu3.1_amd64.deb ...
Unpacking erlang-eldap (1:18.3-dfsg-1ubuntu3.1) ...
Selecting previously unselected package erlang-erl-docgen.
Preparing to unpack .../erlang-erl-docgen_1%3a18.3-dfsg-1ubuntu3.1_amd64.deb ...
Unpacking erlang-erl-docgen (1:18.3-dfsg-1ubuntu3.1) ...
Selecting previously unselected package erlang-eunit.
Preparing to unpack .../erlang-eunit_1%3a18.3-dfsg-1ubuntu3.1_amd64.deb ...
Unpacking erlang-eunit (1:18.3-dfsg-1ubuntu3.1) ...
Selecting previously unselected package erlang-ic.
Preparing to unpack .../erlang-ic_1%3a18.3-dfsg-1ubuntu3.1_amd64.deb ...
Unpacking erlang-ic (1:18.3-dfsg-1ubuntu3.1) ...
Selecting previously unselected package libodbc1:amd64.
Preparing to unpack .../libodbc1_2.3.1-4.1_amd64.deb ...
Unpacking libodbc1:amd64 (2.3.1-4.1) ...
Selecting previously unselected package erlang-odbc.
Preparing to unpack .../erlang-odbc_1%3a18.3-dfsg-1ubuntu3.1_amd64.deb ...
Unpacking erlang-odbc (1:18.3-dfsg-1ubuntu3.1) ...
Selecting previously unselected package erlang-snmp.
Preparing to unpack .../erlang-snmp_1%3a18.3-dfsg-1ubuntu3.1_amd64.deb ...
Unpacking erlang-snmp (1:18.3-dfsg-1ubuntu3.1) ...
Selecting previously unselected package erlang-os-mon.
Preparing to unpack .../erlang-os-mon_1%3a18.3-dfsg-1ubuntu3.1_amd64.deb ...
Unpacking erlang-os-mon (1:18.3-dfsg-1ubuntu3.1) ...
Selecting previously unselected package erlang-parsetools.
Preparing to unpack .../erlang-parsetools_1%3a18.3-dfsg-1ubuntu3.1_amd64.deb ...
Unpacking erlang-parsetools (1:18.3-dfsg-1ubuntu3.1) ...
Selecting previously unselected package erlang-percept.
Preparing to unpack .../erlang-percept_1%3a18.3-dfsg-1ubuntu3.1_amd64.deb ...
Unpacking erlang-percept (1:18.3-dfsg-1ubuntu3.1) ...
Selecting previously unselected package erlang-ssh.
Preparing to unpack .../erlang-ssh_1%3a18.3-dfsg-1ubuntu3.1_amd64.deb ...
Unpacking erlang-ssh (1:18.3-dfsg-1ubuntu3.1) ...
Selecting previously unselected package erlang-webtool.
Preparing to unpack .../erlang-webtool_1%3a18.3-dfsg-1ubuntu3.1_amd64.deb ...
Unpacking erlang-webtool (1:18.3-dfsg-1ubuntu3.1) ...
Selecting previously unselected package erlang-tools.
Preparing to unpack .../erlang-tools_1%3a18.3-dfsg-1ubuntu3.1_amd64.deb ...
Unpacking erlang-tools (1:18.3-dfsg-1ubuntu3.1) ...
Selecting previously unselected package erlang-nox.
Preparing to unpack .../erlang-nox_1%3a18.3-dfsg-1ubuntu3.1_all.deb ...
Unpacking erlang-nox (1:18.3-dfsg-1ubuntu3.1) ...
Selecting previously unselected package libsctp1:amd64.
Preparing to unpack .../libsctp1_1.0.16+dfsg-3_amd64.deb ...
Unpacking libsctp1:amd64 (1.0.16+dfsg-3) ...
Selecting previously unselected package rabbitmq-server.
Preparing to unpack .../rabbitmq-server_3.6.15-1_all.deb ...
Unpacking rabbitmq-server (3.6.15-1) ...
Processing triggers for man-db (2.7.5-1) ...
Processing triggers for libc-bin (2.23-0ubuntu9) ...
Processing triggers for systemd (229-4ubuntu19) ...
Processing triggers for ureadahead (0.100.0-19) ...
Setting up erlang-base (1:18.3-dfsg-1ubuntu3.1) ...
Searching for services which depend on erlang and should be started...none found.
Setting up erlang-asn1 (1:18.3-dfsg-1ubuntu3.1) ...
Setting up erlang-mnesia (1:18.3-dfsg-1ubuntu3.1) ...
Setting up erlang-runtime-tools (1:18.3-dfsg-1ubuntu3.1) ...
Setting up erlang-crypto (1:18.3-dfsg-1ubuntu3.1) ...
Setting up erlang-public-key (1:18.3-dfsg-1ubuntu3.1) ...
Setting up erlang-ssl (1:18.3-dfsg-1ubuntu3.1) ...
Setting up erlang-inets (1:18.3-dfsg-1ubuntu3.1) ...
Setting up erlang-corba (1:18.3-dfsg-1ubuntu3.1) ...
Setting up erlang-syntax-tools (1:18.3-dfsg-1ubuntu3.1) ...
Setting up erlang-diameter (1:18.3-dfsg-1ubuntu3.1) ...
Setting up erlang-xmerl (1:18.3-dfsg-1ubuntu3.1) ...
Setting up erlang-edoc (1:18.3-dfsg-1ubuntu3.1) ...
Setting up erlang-eldap (1:18.3-dfsg-1ubuntu3.1) ...
Setting up erlang-erl-docgen (1:18.3-dfsg-1ubuntu3.1) ...
Setting up erlang-eunit (1:18.3-dfsg-1ubuntu3.1) ...
Setting up erlang-ic (1:18.3-dfsg-1ubuntu3.1) ...
Setting up libodbc1:amd64 (2.3.1-4.1) ...
Setting up erlang-odbc (1:18.3-dfsg-1ubuntu3.1) ...
Setting up erlang-snmp (1:18.3-dfsg-1ubuntu3.1) ...
Setting up erlang-os-mon (1:18.3-dfsg-1ubuntu3.1) ...
Setting up erlang-parsetools (1:18.3-dfsg-1ubuntu3.1) ...
Setting up erlang-percept (1:18.3-dfsg-1ubuntu3.1) ...
Setting up erlang-ssh (1:18.3-dfsg-1ubuntu3.1) ...
Setting up erlang-webtool (1:18.3-dfsg-1ubuntu3.1) ...
Setting up erlang-tools (1:18.3-dfsg-1ubuntu3.1) ...
Setting up erlang-nox (1:18.3-dfsg-1ubuntu3.1) ...
Setting up libsctp1:amd64 (1.0.16+dfsg-3) ...
Setting up rabbitmq-server (3.6.15-1) ...
Adding group `rabbitmq' (GID 130) ...
Done.
Adding system user `rabbitmq' (UID 123) ...
Adding new user `rabbitmq' (UID 123) with group `rabbitmq' ...
Not creating home directory `/var/lib/rabbitmq'.
Processing triggers for libc-bin (2.23-0ubuntu9) ...
Processing triggers for systemd (229-4ubuntu19) ...
Processing triggers for ureadahead (0.100.0-19) ...
root@ubuntu:~/rabbitmq# invoke-rc.d rabbitmq-server status
● rabbitmq-server.service - RabbitMQ broker
   Loaded: loaded (/lib/systemd/system/rabbitmq-server.service; enabled; vendor preset: enabled)
   Active: active (running) since Thu 2018-08-30 00:43:27 PDT; 39s ago
 Main PID: 52675 (beam)
   Status: "Initialized"
   CGroup: /system.slice/rabbitmq-server.service
           ├─52675 /usr/lib/erlang/erts-7.3/bin/beam -W w -A 64 -P 1048576 -t 5000000 -stbt db -zdbbl 128000 -K true -- -root /usr/lib/erlang -progname erl -- -home /var/lib/rabbitmq -- -pa /usr/lib/rabbi
           ├─52763 /usr/lib/erlang/erts-7.3/bin/epmd -daemon
           ├─52875 inet_gethost 4
           └─52876 inet_gethost 4

Aug 30 00:43:26 ubuntu rabbitmq-server[52675]:               RabbitMQ 3.6.15. Copyright (C) 2007-2018 Pivotal Software, Inc.
Aug 30 00:43:26 ubuntu rabbitmq-server[52675]:   ##  ##      Licensed under the MPL.  See http://www.rabbitmq.com/
Aug 30 00:43:26 ubuntu rabbitmq-server[52675]:   ##  ##
Aug 30 00:43:26 ubuntu rabbitmq-server[52675]:   ##########  Logs: /var/log/rabbitmq/rabbit@ubuntu.log
Aug 30 00:43:26 ubuntu rabbitmq-server[52675]:   ######  ##        /var/log/rabbitmq/rabbit@ubuntu-sasl.log
Aug 30 00:43:26 ubuntu rabbitmq-server[52675]:   ##########
Aug 30 00:43:26 ubuntu rabbitmq-server[52675]:               Starting broker...
Aug 30 00:43:27 ubuntu rabbitmq-server[52675]: systemd unit for activation check: "rabbitmq-server.service"
Aug 30 00:43:27 ubuntu systemd[1]: Started RabbitMQ broker.
Aug 30 00:43:28 ubuntu rabbitmq-server[52675]:  completed with 0 plugins.

[4]+  Stopped                 invoke-rc.d rabbitmq-server status
root@ubuntu:~/rabbitmq# rabbitmq-plugins enable rabbitmq_management
The following plugins have been enabled:
  amqp_client
  cowlib
  cowboy
  rabbitmq_web_dispatch
  rabbitmq_management_agent
  rabbitmq_management

Applying plugin configuration to rabbit@ubuntu... started 6 plugins.
root@ubuntu:~/rabbitmq# rabbitmqctl list_users
Listing users
guest	[administrator]
root@ubuntu:~/rabbitmq# rabbitmqctl add_user admin admin
Creating user "admin"
root@ubuntu:~/rabbitmq# rabbitmqctl set_user_tags admin administrator
Setting tags for user "admin" to [administrator]
 

 

  
posted on 2018-09-07 16:57  水共禾刀  阅读(379)  评论(0编辑  收藏  举报