sábado, 13 de julio de 2019

Erlang RabbitMQ, Instalación Erlang Ubuntu18.04

RabbitMQ


..


..
 ..

..


 ..



https://www.erlang.org/


..

..

https://www.rabbitmq.com/




Erlang
 Instalando erlang ubuntu 18.04

bext@bext-VPCF13WFX:~$ sudo apt-get install erlang
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  erlang-asn1 erlang-base erlang-common-test erlang-corba erlang-crypto
  erlang-debugger erlang-dev erlang-dialyzer erlang-diameter erlang-edoc
  erlang-eldap erlang-erl-docgen erlang-et erlang-eunit erlang-examples
  erlang-ic erlang-ic-java erlang-inets erlang-jinterface erlang-megaco
  erlang-mnesia erlang-mode erlang-observer erlang-odbc erlang-os-mon
  erlang-parsetools erlang-public-key erlang-reltool erlang-runtime-tools
  erlang-snmp erlang-src erlang-ssh erlang-ssl erlang-syntax-tools
  erlang-tools erlang-wx erlang-xmerl libjs-jquery-metadata
  libjs-jquery-tablesorter libodbc1 libsctp1 libwxbase3.0-0v5 libwxgtk3.0-0v5
Suggested packages:
  erlang-manpages erlang-doc xsltproc fop libmyodbc odbc-postgresql tdsodbc
  unixodbc-bin lksctp-tools
The following NEW packages will be installed:
  erlang erlang-asn1 erlang-base erlang-common-test erlang-corba erlang-crypto
  erlang-debugger erlang-dev erlang-dialyzer erlang-diameter erlang-edoc
  erlang-eldap erlang-erl-docgen erlang-et erlang-eunit erlang-examples
  erlang-ic erlang-ic-java erlang-inets erlang-jinterface erlang-megaco
  erlang-mnesia erlang-mode erlang-observer erlang-odbc erlang-os-mon
  erlang-parsetools erlang-public-key erlang-reltool erlang-runtime-tools
  erlang-snmp erlang-src erlang-ssh erlang-ssl erlang-syntax-tools
  erlang-tools erlang-wx erlang-xmerl libjs-jquery-metadata
  libjs-jquery-tablesorter libodbc1 libsctp1 libwxbase3.0-0v5 libwxgtk3.0-0v5
0 upgraded, 44 newly installed, 0 to remove and 91 not upgraded.
Need to get 43.9 MB of archives.
After this operation, 135 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://mx.archive.ubuntu.com/ubuntu bionic/main amd64 erlang-base amd64 1:20.2.2+dfsg-1ubuntu2 [7 323 kB]
Get:2 http://mx.archive.ubuntu.com/ubuntu bionic/main amd64 erlang-dev amd64 1:20.2.2+dfsg-1ubuntu2 [328 kB]
Get:3 http://mx.archive.ubuntu.com/ubuntu bionic/main amd64 erlang-asn1 amd64 1:20.2.2+dfsg-1ubuntu2 [724 kB]
Get:4 http://mx.archive.ubuntu.com/ubuntu bionic/main amd64 erlang-crypto amd64 1:20.2.2+dfsg-1ubuntu2 [104 kB]
Get:5 http://mx.archive.ubuntu.com/ubuntu bionic/universe amd64 libwxbase3.0-0v5 amd64 3.0.4+dfsg-3 [954 kB]
Get:6 http://mx.archive.ubuntu.com/ubuntu bionic/universe amd64 libwxgtk3.0-0v5 amd64 3.0.4+dfsg-3 [4 182 kB]
Get:7 http://mx.archive.ubuntu.com/ubuntu bionic/universe amd64 erlang-wx amd64 1:20.2.2+dfsg-1ubuntu2 [2 781 kB]
Get:8 http://mx.archive.ubuntu.com/ubuntu bionic/universe amd64 erlang-debugger amd64 1:20.2.2+dfsg-1ubuntu2 [381 kB]
Get:9 http://mx.archive.ubuntu.com/ubuntu bionic/main amd64 erlang-mnesia amd64 1:20.2.2+dfsg-1ubuntu2 [724 kB]
Get:10 http://mx.archive.ubuntu.com/ubuntu bionic/main amd64 erlang-runtime-tools amd64 1:20.2.2+dfsg-1ubuntu2 [178 kB]
Get:11 http://mx.archive.ubuntu.com/ubuntu bionic/main amd64 erlang-public-key amd64 1:20.2.2+dfsg-1ubuntu2 [561 kB]
Get:12 http://mx.archive.ubuntu.com/ubuntu bionic/main amd64 erlang-ssl amd64 1:20.2.2+dfsg-1ubuntu2 [814 kB]
Get:13 http://mx.archive.ubuntu.com/ubuntu bionic/main amd64 erlang-inets amd64 1:20.2.2+dfsg-1ubuntu2 [711 kB]
Get:14 http://mx.archive.ubuntu.com/ubuntu bionic/universe amd64 erlang-et amd64 1:20.2.2+dfsg-1ubuntu2 [146 kB]
Get:15 http://mx.archive.ubuntu.com/ubuntu bionic/universe amd64 erlang-observer amd64 1:20.2.2+dfsg-1ubuntu2 [829 kB]
Get:16 http://mx.archive.ubuntu.com/ubuntu bionic/main amd64 erlang-snmp amd64 1:20.2.2+dfsg-1ubuntu2 [1 531 kB]
Get:17 http://mx.archive.ubuntu.com/ubuntu bionic/main amd64 erlang-ssh amd64 1:20.2.2+dfsg-1ubuntu2 [508 kB]
Get:18 http://mx.archive.ubuntu.com/ubuntu bionic/main amd64 erlang-syntax-tools amd64 1:20.2.2+dfsg-1ubuntu2 [345 kB]
Get:19 http://mx.archive.ubuntu.com/ubuntu bionic/main amd64 erlang-tools amd64 1:20.2.2+dfsg-1ubuntu2 [503 kB]
Get:20 http://mx.archive.ubuntu.com/ubuntu bionic/main amd64 erlang-xmerl amd64 1:20.2.2+dfsg-1ubuntu2 [964 kB]
Get:21 http://mx.archive.ubuntu.com/ubuntu bionic/universe amd64 libjs-jquery-metadata all 12-1 [6 930 B]
Get:22 http://mx.archive.ubuntu.com/ubuntu bionic/universe amd64 libjs-jquery-tablesorter all 1:2.29.5+dfsg1-1 [174 kB]
Get:23 http://mx.archive.ubuntu.com/ubuntu bionic/universe amd64 erlang-common-test amd64 1:20.2.2+dfsg-1ubuntu2 [1 033 kB]
Get:24 http://mx.archive.ubuntu.com/ubuntu bionic/main amd64 erlang-corba amd64 1:20.2.2+dfsg-1ubuntu2 [2 251 kB]
Get:25 http://mx.archive.ubuntu.com/ubuntu bionic/universe amd64 erlang-dialyzer amd64 1:20.2.2+dfsg-1ubuntu2 [673 kB]
Get:26 http://mx.archive.ubuntu.com/ubuntu bionic/main amd64 erlang-diameter amd64 1:20.2.2+dfsg-1ubuntu2 [647 kB]
Get:27 http://mx.archive.ubuntu.com/ubuntu bionic/main amd64 erlang-edoc amd64 1:20.2.2+dfsg-1ubuntu2 [283 kB]
Get:28 http://mx.archive.ubuntu.com/ubuntu bionic/main amd64 erlang-eldap amd64 1:20.2.2+dfsg-1ubuntu2 [101 kB]
Get:29 http://mx.archive.ubuntu.com/ubuntu bionic/main amd64 erlang-erl-docgen amd64 1:20.2.2+dfsg-1ubuntu2 [118 kB]
Get:30 http://mx.archive.ubuntu.com/ubuntu bionic/main amd64 erlang-eunit amd64 1:20.2.2+dfsg-1ubuntu2 [136 kB]
Get:31 http://mx.archive.ubuntu.com/ubuntu bionic/main amd64 erlang-ic amd64 1:20.2.2+dfsg-1ubuntu2 [817 kB]
Get:32 http://mx.archive.ubuntu.com/ubuntu bionic/main amd64 erlang-megaco amd64 1:20.2.2+dfsg-1ubuntu2 [5 462 kB]
Get:33 http://mx.archive.ubuntu.com/ubuntu bionic/main amd64 libodbc1 amd64 2.3.4-1.1ubuntu3 [183 kB]
Get:34 http://mx.archive.ubuntu.com/ubuntu bionic/main amd64 erlang-odbc amd64 1:20.2.2+dfsg-1ubuntu2 [47.5 kB]
Get:35 http://mx.archive.ubuntu.com/ubuntu bionic/main amd64 erlang-os-mon amd64 1:20.2.2+dfsg-1ubuntu2 [90.4 kB]
Get:36 http://mx.archive.ubuntu.com/ubuntu bionic/main amd64 erlang-parsetools amd64 1:20.2.2+dfsg-1ubuntu2 [153 kB]
Get:37 http://mx.archive.ubuntu.com/ubuntu bionic/universe amd64 erlang-reltool amd64 1:20.2.2+dfsg-1ubuntu2 [330 kB]
Get:38 http://mx.archive.ubuntu.com/ubuntu bionic/universe amd64 erlang all 1:20.2.2+dfsg-1ubuntu2 [13.7 kB]
Get:39 http://mx.archive.ubuntu.com/ubuntu bionic/main amd64 erlang-examples all 1:20.2.2+dfsg-1ubuntu2 [922 kB]
Get:40 http://mx.archive.ubuntu.com/ubuntu bionic/universe amd64 erlang-jinterface all 1:20.2.2+dfsg-1ubuntu2 [107 kB]
Get:41 http://mx.archive.ubuntu.com/ubuntu bionic/universe amd64 erlang-ic-java all 1:20.2.2+dfsg-1ubuntu2 [38.1 kB]
Get:42 http://mx.archive.ubuntu.com/ubuntu bionic/universe amd64 erlang-mode all 1:20.2.2+dfsg-1ubuntu2 [84.0 kB]
Get:43 http://mx.archive.ubuntu.com/ubuntu bionic/universe amd64 erlang-src all 1:20.2.2+dfsg-1ubuntu2 [5 599 kB]
Get:44 http://mx.archive.ubuntu.com/ubuntu bionic/main amd64 libsctp1 amd64 1.0.17+dfsg-2 [8 008 B]
Fetched 43.9 MB in 10s (4 210 kB/s)                                            
Extracting templates from packages: 100%
Selecting previously unselected package erlang-base.
(Reading database ... 181392 files and directories currently installed.)
Preparing to unpack .../00-erlang-base_1%3a20.2.2+dfsg-1ubuntu2_amd64.deb ...
Unpacking erlang-base (1:20.2.2+dfsg-1ubuntu2) ...
Selecting previously unselected package erlang-dev.
Preparing to unpack .../01-erlang-dev_1%3a20.2.2+dfsg-1ubuntu2_amd64.deb ...
Unpacking erlang-dev (1:20.2.2+dfsg-1ubuntu2) ...
Selecting previously unselected package erlang-asn1.
Preparing to unpack .../02-erlang-asn1_1%3a20.2.2+dfsg-1ubuntu2_amd64.deb ...
Unpacking erlang-asn1 (1:20.2.2+dfsg-1ubuntu2) ...
Selecting previously unselected package erlang-crypto.
Preparing to unpack .../03-erlang-crypto_1%3a20.2.2+dfsg-1ubuntu2_amd64.deb ...
Unpacking erlang-crypto (1:20.2.2+dfsg-1ubuntu2) ...
Selecting previously unselected package libwxbase3.0-0v5:amd64.
Preparing to unpack .../04-libwxbase3.0-0v5_3.0.4+dfsg-3_amd64.deb ...
Unpacking libwxbase3.0-0v5:amd64 (3.0.4+dfsg-3) ...
Selecting previously unselected package libwxgtk3.0-0v5:amd64.
Preparing to unpack .../05-libwxgtk3.0-0v5_3.0.4+dfsg-3_amd64.deb ...
Unpacking libwxgtk3.0-0v5:amd64 (3.0.4+dfsg-3) ...
Selecting previously unselected package erlang-wx.
Preparing to unpack .../06-erlang-wx_1%3a20.2.2+dfsg-1ubuntu2_amd64.deb ...
Unpacking erlang-wx (1:20.2.2+dfsg-1ubuntu2) ...
Selecting previously unselected package erlang-debugger.
Preparing to unpack .../07-erlang-debugger_1%3a20.2.2+dfsg-1ubuntu2_amd64.deb ...
Unpacking erlang-debugger (1:20.2.2+dfsg-1ubuntu2) ...
Selecting previously unselected package erlang-mnesia.
Preparing to unpack .../08-erlang-mnesia_1%3a20.2.2+dfsg-1ubuntu2_amd64.deb ...
Unpacking erlang-mnesia (1:20.2.2+dfsg-1ubuntu2) ...
Selecting previously unselected package erlang-runtime-tools.
Preparing to unpack .../09-erlang-runtime-tools_1%3a20.2.2+dfsg-1ubuntu2_amd64.deb ...
Unpacking erlang-runtime-tools (1:20.2.2+dfsg-1ubuntu2) ...
Selecting previously unselected package erlang-public-key.
Preparing to unpack .../10-erlang-public-key_1%3a20.2.2+dfsg-1ubuntu2_amd64.deb ...
Unpacking erlang-public-key (1:20.2.2+dfsg-1ubuntu2) ...
Selecting previously unselected package erlang-ssl.
Preparing to unpack .../11-erlang-ssl_1%3a20.2.2+dfsg-1ubuntu2_amd64.deb ...
Unpacking erlang-ssl (1:20.2.2+dfsg-1ubuntu2) ...
Selecting previously unselected package erlang-inets.
Preparing to unpack .../12-erlang-inets_1%3a20.2.2+dfsg-1ubuntu2_amd64.deb ...
Unpacking erlang-inets (1:20.2.2+dfsg-1ubuntu2) ...
Selecting previously unselected package erlang-et.
Preparing to unpack .../13-erlang-et_1%3a20.2.2+dfsg-1ubuntu2_amd64.deb ...
Unpacking erlang-et (1:20.2.2+dfsg-1ubuntu2) ...
Selecting previously unselected package erlang-observer.
Preparing to unpack .../14-erlang-observer_1%3a20.2.2+dfsg-1ubuntu2_amd64.deb ...
Unpacking erlang-observer (1:20.2.2+dfsg-1ubuntu2) ...
Selecting previously unselected package erlang-snmp.
Preparing to unpack .../15-erlang-snmp_1%3a20.2.2+dfsg-1ubuntu2_amd64.deb ...
Unpacking erlang-snmp (1:20.2.2+dfsg-1ubuntu2) ...
Selecting previously unselected package erlang-ssh.
Preparing to unpack .../16-erlang-ssh_1%3a20.2.2+dfsg-1ubuntu2_amd64.deb ...
Unpacking erlang-ssh (1:20.2.2+dfsg-1ubuntu2) ...
Selecting previously unselected package erlang-syntax-tools.
Preparing to unpack .../17-erlang-syntax-tools_1%3a20.2.2+dfsg-1ubuntu2_amd64.deb ...
Unpacking erlang-syntax-tools (1:20.2.2+dfsg-1ubuntu2) ...
Selecting previously unselected package erlang-tools.
Preparing to unpack .../18-erlang-tools_1%3a20.2.2+dfsg-1ubuntu2_amd64.deb ...
Unpacking erlang-tools (1:20.2.2+dfsg-1ubuntu2) ...
Selecting previously unselected package erlang-xmerl.
Preparing to unpack .../19-erlang-xmerl_1%3a20.2.2+dfsg-1ubuntu2_amd64.deb ...
Unpacking erlang-xmerl (1:20.2.2+dfsg-1ubuntu2) ...
Selecting previously unselected package libjs-jquery-metadata.
Preparing to unpack .../20-libjs-jquery-metadata_12-1_all.deb ...
Unpacking libjs-jquery-metadata (12-1) ...
Selecting previously unselected package libjs-jquery-tablesorter.
Preparing to unpack .../21-libjs-jquery-tablesorter_1%3a2.29.5+dfsg1-1_all.deb ...
Unpacking libjs-jquery-tablesorter (1:2.29.5+dfsg1-1) ...
Selecting previously unselected package erlang-common-test.
Preparing to unpack .../22-erlang-common-test_1%3a20.2.2+dfsg-1ubuntu2_amd64.deb ...
Unpacking erlang-common-test (1:20.2.2+dfsg-1ubuntu2) ...
Selecting previously unselected package erlang-corba.
Preparing to unpack .../23-erlang-corba_1%3a20.2.2+dfsg-1ubuntu2_amd64.deb ...
Unpacking erlang-corba (1:20.2.2+dfsg-1ubuntu2) ...
Selecting previously unselected package erlang-dialyzer.
Preparing to unpack .../24-erlang-dialyzer_1%3a20.2.2+dfsg-1ubuntu2_amd64.deb ...
Unpacking erlang-dialyzer (1:20.2.2+dfsg-1ubuntu2) ...
Selecting previously unselected package erlang-diameter.
Preparing to unpack .../25-erlang-diameter_1%3a20.2.2+dfsg-1ubuntu2_amd64.deb ...
Unpacking erlang-diameter (1:20.2.2+dfsg-1ubuntu2) ...
Selecting previously unselected package erlang-edoc.
Preparing to unpack .../26-erlang-edoc_1%3a20.2.2+dfsg-1ubuntu2_amd64.deb ...
Unpacking erlang-edoc (1:20.2.2+dfsg-1ubuntu2) ...
Selecting previously unselected package erlang-eldap.
Preparing to unpack .../27-erlang-eldap_1%3a20.2.2+dfsg-1ubuntu2_amd64.deb ...
Unpacking erlang-eldap (1:20.2.2+dfsg-1ubuntu2) ...
Selecting previously unselected package erlang-erl-docgen.
Preparing to unpack .../28-erlang-erl-docgen_1%3a20.2.2+dfsg-1ubuntu2_amd64.deb ...
Unpacking erlang-erl-docgen (1:20.2.2+dfsg-1ubuntu2) ...
Selecting previously unselected package erlang-eunit.
Preparing to unpack .../29-erlang-eunit_1%3a20.2.2+dfsg-1ubuntu2_amd64.deb ...
Unpacking erlang-eunit (1:20.2.2+dfsg-1ubuntu2) ...
Selecting previously unselected package erlang-ic.
Preparing to unpack .../30-erlang-ic_1%3a20.2.2+dfsg-1ubuntu2_amd64.deb ...
Unpacking erlang-ic (1:20.2.2+dfsg-1ubuntu2) ...
Selecting previously unselected package erlang-megaco.
Preparing to unpack .../31-erlang-megaco_1%3a20.2.2+dfsg-1ubuntu2_amd64.deb ...
Unpacking erlang-megaco (1:20.2.2+dfsg-1ubuntu2) ...
Selecting previously unselected package libodbc1:amd64.
Preparing to unpack .../32-libodbc1_2.3.4-1.1ubuntu3_amd64.deb ...
Unpacking libodbc1:amd64 (2.3.4-1.1ubuntu3) ...
Selecting previously unselected package erlang-odbc.
Preparing to unpack .../33-erlang-odbc_1%3a20.2.2+dfsg-1ubuntu2_amd64.deb ...
Unpacking erlang-odbc (1:20.2.2+dfsg-1ubuntu2) ...
Selecting previously unselected package erlang-os-mon.
Preparing to unpack .../34-erlang-os-mon_1%3a20.2.2+dfsg-1ubuntu2_amd64.deb ...
Unpacking erlang-os-mon (1:20.2.2+dfsg-1ubuntu2) ...
Selecting previously unselected package erlang-parsetools.
Preparing to unpack .../35-erlang-parsetools_1%3a20.2.2+dfsg-1ubuntu2_amd64.deb ...
Unpacking erlang-parsetools (1:20.2.2+dfsg-1ubuntu2) ...
Selecting previously unselected package erlang-reltool.
Preparing to unpack .../36-erlang-reltool_1%3a20.2.2+dfsg-1ubuntu2_amd64.deb ...
Unpacking erlang-reltool (1:20.2.2+dfsg-1ubuntu2) ...
Selecting previously unselected package erlang.
Preparing to unpack .../37-erlang_1%3a20.2.2+dfsg-1ubuntu2_all.deb ...
Unpacking erlang (1:20.2.2+dfsg-1ubuntu2) ...
Selecting previously unselected package erlang-examples.
Preparing to unpack .../38-erlang-examples_1%3a20.2.2+dfsg-1ubuntu2_all.deb ...
Unpacking erlang-examples (1:20.2.2+dfsg-1ubuntu2) ...
Selecting previously unselected package erlang-jinterface.
Preparing to unpack .../39-erlang-jinterface_1%3a20.2.2+dfsg-1ubuntu2_all.deb ...
Unpacking erlang-jinterface (1:20.2.2+dfsg-1ubuntu2) ...
Selecting previously unselected package erlang-ic-java.
Preparing to unpack .../40-erlang-ic-java_1%3a20.2.2+dfsg-1ubuntu2_all.deb ...
Unpacking erlang-ic-java (1:20.2.2+dfsg-1ubuntu2) ...
Selecting previously unselected package erlang-mode.
Preparing to unpack .../41-erlang-mode_1%3a20.2.2+dfsg-1ubuntu2_all.deb ...
Unpacking erlang-mode (1:20.2.2+dfsg-1ubuntu2) ...
Selecting previously unselected package erlang-src.
Preparing to unpack .../42-erlang-src_1%3a20.2.2+dfsg-1ubuntu2_all.deb ...
Unpacking erlang-src (1:20.2.2+dfsg-1ubuntu2) ...
Selecting previously unselected package libsctp1:amd64.
Preparing to unpack .../43-libsctp1_1.0.17+dfsg-2_amd64.deb ...
Unpacking libsctp1:amd64 (1.0.17+dfsg-2) ...
Setting up libodbc1:amd64 (2.3.4-1.1ubuntu3) ...
Setting up erlang-mode (1:20.2.2+dfsg-1ubuntu2) ...
Setting up erlang-base (1:20.2.2+dfsg-1ubuntu2) ...
Searching for services which depend on erlang and should be started...none found.
Setting up erlang-dev (1:20.2.2+dfsg-1ubuntu2) ...
Setting up libsctp1:amd64 (1.0.17+dfsg-2) ...
Setting up erlang-ic (1:20.2.2+dfsg-1ubuntu2) ...
Setting up erlang-examples (1:20.2.2+dfsg-1ubuntu2) ...
Setting up erlang-xmerl (1:20.2.2+dfsg-1ubuntu2) ...
Setting up libwxbase3.0-0v5:amd64 (3.0.4+dfsg-3) ...
Setting up erlang-crypto (1:20.2.2+dfsg-1ubuntu2) ...
Setting up erlang-asn1 (1:20.2.2+dfsg-1ubuntu2) ...
Setting up erlang-mnesia (1:20.2.2+dfsg-1ubuntu2) ...
Setting up erlang-eunit (1:20.2.2+dfsg-1ubuntu2) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...
Setting up erlang-jinterface (1:20.2.2+dfsg-1ubuntu2) ...
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
Setting up erlang-runtime-tools (1:20.2.2+dfsg-1ubuntu2) ...
Setting up erlang-syntax-tools (1:20.2.2+dfsg-1ubuntu2) ...
Setting up erlang-odbc (1:20.2.2+dfsg-1ubuntu2) ...
Setting up libjs-jquery-metadata (12-1) ...
Setting up erlang-dialyzer (1:20.2.2+dfsg-1ubuntu2) ...
Setting up erlang-parsetools (1:20.2.2+dfsg-1ubuntu2) ...
Setting up erlang-megaco (1:20.2.2+dfsg-1ubuntu2) ...
Setting up erlang-src (1:20.2.2+dfsg-1ubuntu2) ...
Setting up libjs-jquery-tablesorter (1:2.29.5+dfsg1-1) ...
Setting up erlang-public-key (1:20.2.2+dfsg-1ubuntu2) ...
Setting up libwxgtk3.0-0v5:amd64 (3.0.4+dfsg-3) ...
Setting up erlang-snmp (1:20.2.2+dfsg-1ubuntu2) ...
Setting up erlang-ssl (1:20.2.2+dfsg-1ubuntu2) ...
Setting up erlang-inets (1:20.2.2+dfsg-1ubuntu2) ...
Setting up erlang-ic-java (1:20.2.2+dfsg-1ubuntu2) ...
Setting up erlang-tools (1:20.2.2+dfsg-1ubuntu2) ...
Setting up erlang-wx (1:20.2.2+dfsg-1ubuntu2) ...
Setting up erlang-diameter (1:20.2.2+dfsg-1ubuntu2) ...
Setting up erlang-ssh (1:20.2.2+dfsg-1ubuntu2) ...
Setting up erlang-os-mon (1:20.2.2+dfsg-1ubuntu2) ...
Setting up erlang-eldap (1:20.2.2+dfsg-1ubuntu2) ...
Setting up erlang-edoc (1:20.2.2+dfsg-1ubuntu2) ...
Setting up erlang-corba (1:20.2.2+dfsg-1ubuntu2) ...
Setting up erlang-debugger (1:20.2.2+dfsg-1ubuntu2) ...
Setting up erlang-reltool (1:20.2.2+dfsg-1ubuntu2) ...
Setting up erlang-et (1:20.2.2+dfsg-1ubuntu2) ...
Setting up erlang-observer (1:20.2.2+dfsg-1ubuntu2) ...
Setting up erlang-erl-docgen (1:20.2.2+dfsg-1ubuntu2) ...
Setting up erlang-common-test (1:20.2.2+dfsg-1ubuntu2) ...
Setting up erlang (1:20.2.2+dfsg-1ubuntu2) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...
bext@bext-VPCF13WFX:~$ erl
Erlang/OTP 20 [erts-9.2] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:10] [kernel-poll:false]

Eshell V9.2  (abort with ^G)
1> erlang:system_info(version).
"9.2"
2> erlang:system_info(otp_release).
"20"
3> 

bext@bext-VPCF13WFX:~$ sudo apt-get purge erlang 

1- Importamos la llave GPG

bext@bext-VPCF13WFX:~$ wget -O- https://packages.erlang-solutions.com/ubuntu/erlang_solutions.asc | sudo apt-key add -
--2019-07-13 17:03:35--  https://packages.erlang-solutions.com/ubuntu/erlang_solutions.asc
Resolving packages.erlang-solutions.com (packages.erlang-solutions.com)... 13.249.55.93, 13.249.55.16, 13.249.55.71, ...
Connecting to packages.erlang-solutions.com (packages.erlang-solutions.com)|13.249.55.93|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 3133 (3.1K) [text/plain]
Saving to: ‘STDOUT’

-                   100%[===================>]   3.06K  --.-KB/s    in 0s      

2019-07-13 17:03:35 (209 MB/s) - written to stdout [3133/3133]

OK
bext@bext-VPCF13WFX:~

2.- Agregamos el repositiorio erlang

bext@bext-VPCF13WFX:~$ echo "deb http://packages.erlang-solutions.com/ubuntu bionic contrib" | sudo tee /etc/apt/sources.list.d/rabbitmq.list
deb http://packages.erlang-solutions.com/ubuntu bionic contrib

3.- Instalamos erlang

bext@bext-VPCF13WFX:~$ sudo apt update
Hit:1 http://security.ubuntu.com/ubuntu bionic-security InRelease
Hit:2 https://download.docker.com/linux/ubuntu bionic InRelease                
Hit:3 http://mx.archive.ubuntu.com/ubuntu bionic InRelease                     
Ign:4 http://packages.erlang-solutions.com/ubuntu bionic InRelease       
Get:5 http://packages.erlang-solutions.com/ubuntu bionic Release [2 537 B]
Hit:6 http://mx.archive.ubuntu.com/ubuntu bionic-updates InRelease             
Get:7 http://packages.erlang-solutions.com/ubuntu bionic Release.gpg [833 B]
Hit:8 http://mx.archive.ubuntu.com/ubuntu bionic-backports InRelease           
Get:9 http://packages.erlang-solutions.com/ubuntu bionic/contrib amd64 Packages [213 kB]
Get:10 http://packages.erlang-solutions.com/ubuntu bionic/contrib i386 Packages [53.6 kB]
Fetched 270 kB in 2s (156 kB/s)                        
Reading package lists... Done
Building dependency tree       
Reading state information... Done
128 packages can be upgraded. Run 'apt list --upgradable' to see them.
bext@bext-VPCF13WFX:~$ sudo apt -y install erlang
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libjs-jquery-metadata libjs-jquery-tablesorter libsctp1
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  erlang-appmon erlang-asn1 erlang-base erlang-common-test erlang-crypto
  erlang-debugger erlang-dev erlang-dialyzer erlang-diameter erlang-edoc
  erlang-eldap erlang-erl-docgen erlang-et erlang-eunit erlang-examples
  erlang-ftp erlang-gs erlang-ic erlang-ic-java erlang-inets erlang-inviso
  erlang-megaco erlang-mnesia erlang-observer erlang-odbc erlang-os-mon
  erlang-parsetools erlang-percept erlang-pman erlang-public-key
  erlang-reltool erlang-runtime-tools erlang-snmp erlang-src erlang-ssh
  erlang-ssl erlang-syntax-tools erlang-test-server erlang-tftp erlang-toolbar
  erlang-tools erlang-tv erlang-typer erlang-wx erlang-xmerl libtcl8.6
  libtk8.6 tcl tcl8.6 tk tk8.6
Suggested packages:
  erlang-manpages erlang-doc xsltproc fop tcl-tclreadline
The following packages will be REMOVED:
  erlang-corba
The following NEW packages will be installed:
  erlang erlang-appmon erlang-ftp erlang-gs erlang-inviso erlang-percept
  erlang-pman erlang-test-server erlang-tftp erlang-toolbar erlang-tv
  erlang-typer libtcl8.6 libtk8.6 tcl tcl8.6 tk tk8.6
The following packages will be upgraded:
  erlang-asn1 erlang-base erlang-common-test erlang-crypto erlang-debugger
  erlang-dev erlang-dialyzer erlang-diameter erlang-edoc erlang-eldap
  erlang-erl-docgen erlang-et erlang-eunit erlang-examples erlang-ic
  erlang-ic-java erlang-inets erlang-megaco erlang-mnesia erlang-observer
  erlang-odbc erlang-os-mon erlang-parsetools erlang-public-key erlang-reltool
  erlang-runtime-tools erlang-snmp erlang-src erlang-ssh erlang-ssl
  erlang-syntax-tools erlang-tools erlang-wx erlang-xmerl
34 upgraded, 18 newly installed, 1 to remove and 93 not upgraded.
Need to get 38.9 MB of archives.
After this operation, 662 kB disk space will be freed.
Get:1 http://packages.erlang-solutions.com/ubuntu bionic/contrib amd64 erlang-gs amd64 1:22.0.4-1 [37.1 kB]
Get:2 http://mx.archive.ubuntu.com/ubuntu bionic/main amd64 libtcl8.6 amd64 8.6.8+dfsg-3 [881 kB]
Get:3 http://packages.erlang-solutions.com/ubuntu bionic/contrib amd64 erlang-appmon amd64 1:22.0.4-1 [37.1 kB]
Get:4 http://packages.erlang-solutions.com/ubuntu bionic/contrib amd64 erlang-dialyzer amd64 1:22.0.4-1 [709 kB]
Get:5 http://packages.erlang-solutions.com/ubuntu bionic/contrib amd64 erlang-common-test amd64 1:22.0.4-1 [1 096 kB]
Get:6 http://packages.erlang-solutions.com/ubuntu bionic/contrib amd64 erlang-erl-docgen amd64 1:22.0.4-1 [154 kB]
Get:7 http://packages.erlang-solutions.com/ubuntu bionic/contrib amd64 erlang-edoc amd64 1:22.0.4-1 [311 kB]
Get:8 http://packages.erlang-solutions.com/ubuntu bionic/contrib amd64 erlang-xmerl amd64 1:22.0.4-1 [981 kB]
Get:9 http://mx.archive.ubuntu.com/ubuntu bionic/main amd64 libtk8.6 amd64 8.6.8-4 [693 kB]
Get:10 http://mx.archive.ubuntu.com/ubuntu bionic/main amd64 tk8.6 amd64 8.6.8-4 [12.3 kB]
Get:11 http://mx.archive.ubuntu.com/ubuntu bionic/main amd64 tcl8.6 amd64 8.6.8+dfsg-3 [14.4 kB]
Get:12 http://mx.archive.ubuntu.com/ubuntu bionic/universe amd64 tcl amd64 8.6.0+9 [5 146 B]
Get:13 http://mx.archive.ubuntu.com/ubuntu bionic/universe amd64 tk amd64 8.6.0+9 [3 178 B]
Get:14 http://packages.erlang-solutions.com/ubuntu bionic/contrib amd64 erlang-diameter amd64 1:22.0.4-1 [679 kB]
Get:15 http://packages.erlang-solutions.com/ubuntu bionic/contrib amd64 erlang-syntax-tools amd64 1:22.0.4-1 [375 kB]
Get:16 http://packages.erlang-solutions.com/ubuntu bionic/contrib amd64 erlang-reltool amd64 1:22.0.4-1 [357 kB]
Get:17 http://packages.erlang-solutions.com/ubuntu bionic/contrib amd64 erlang-tools amd64 1:22.0.4-1 [528 kB]
Get:18 http://packages.erlang-solutions.com/ubuntu bionic/contrib amd64 erlang-eldap amd64 1:22.0.4-1 [131 kB]
Get:19 http://packages.erlang-solutions.com/ubuntu bionic/contrib amd64 erlang-megaco amd64 1:22.0.4-1 [5 447 kB]
Get:20 http://packages.erlang-solutions.com/ubuntu bionic/contrib amd64 erlang-ssh amd64 1:22.0.4-1 [655 kB]
Get:21 http://packages.erlang-solutions.com/ubuntu bionic/contrib amd64 erlang-observer amd64 1:22.0.4-1 [880 kB]
Get:22 http://packages.erlang-solutions.com/ubuntu bionic/contrib amd64 erlang-inets amd64 1:22.0.4-1 [605 kB]
Get:23 http://packages.erlang-solutions.com/ubuntu bionic/contrib amd64 erlang-ssl amd64 1:22.0.4-1 [1 073 kB]
Get:24 http://packages.erlang-solutions.com/ubuntu bionic/contrib amd64 erlang-public-key amd64 1:22.0.4-1 [590 kB]
Get:25 http://packages.erlang-solutions.com/ubuntu bionic/contrib amd64 erlang-asn1 amd64 1:22.0.4-1 [744 kB]
Get:26 http://packages.erlang-solutions.com/ubuntu bionic/contrib amd64 erlang-os-mon amd64 1:22.0.4-1 [112 kB]
Get:27 http://packages.erlang-solutions.com/ubuntu bionic/contrib amd64 erlang-snmp amd64 1:22.0.4-1 [1 551 kB]
Get:28 http://packages.erlang-solutions.com/ubuntu bionic/contrib amd64 erlang-et amd64 1:22.0.4-1 [176 kB]
Get:29 http://packages.erlang-solutions.com/ubuntu bionic/contrib amd64 erlang-runtime-tools amd64 1:22.0.4-1 [214 kB]
Get:30 http://packages.erlang-solutions.com/ubuntu bionic/contrib amd64 erlang-mnesia amd64 1:22.0.4-1 [747 kB]
Get:31 http://packages.erlang-solutions.com/ubuntu bionic/contrib amd64 erlang-crypto amd64 1:22.0.4-1 [165 kB]
Get:32 http://packages.erlang-solutions.com/ubuntu bionic/contrib amd64 erlang-test-server amd64 1:22.0.4-1 [37.0 kB]
Get:33 http://packages.erlang-solutions.com/ubuntu bionic/contrib amd64 erlang-debugger amd64 1:22.0.4-1 [409 kB]
Get:34 http://packages.erlang-solutions.com/ubuntu bionic/contrib amd64 erlang-wx amd64 1:22.0.4-1 [2 832 kB]
Get:35 http://packages.erlang-solutions.com/ubuntu bionic/contrib amd64 erlang-src all 1:22.0.4-1 [5 306 kB]
Get:36 http://packages.erlang-solutions.com/ubuntu bionic/contrib amd64 erlang-examples all 1:22.0.4-1 [934 kB]
Get:37 http://packages.erlang-solutions.com/ubuntu bionic/contrib amd64 erlang-parsetools amd64 1:22.0.4-1 [182 kB]
Get:38 http://packages.erlang-solutions.com/ubuntu bionic/contrib amd64 erlang-odbc amd64 1:22.0.4-1 [80.0 kB]
Get:39 http://packages.erlang-solutions.com/ubuntu bionic/contrib amd64 erlang-ic-java all 1:22.0.4-1 [37.1 kB]
Get:40 http://packages.erlang-solutions.com/ubuntu bionic/contrib amd64 erlang-ic amd64 1:22.0.4-1 [36.9 kB]
Get:41 http://packages.erlang-solutions.com/ubuntu bionic/contrib amd64 erlang-eunit amd64 1:22.0.4-1 [165 kB]
Get:42 http://packages.erlang-solutions.com/ubuntu bionic/contrib amd64 erlang-dev amd64 1:22.0.4-1 [347 kB]
Get:43 http://packages.erlang-solutions.com/ubuntu bionic/contrib amd64 erlang-base amd64 1:22.0.4-1 [7 993 kB]
Get:44 http://packages.erlang-solutions.com/ubuntu bionic/contrib amd64 erlang-ftp amd64 1:22.0.4-1 [117 kB]
Get:45 http://packages.erlang-solutions.com/ubuntu bionic/contrib amd64 erlang-inviso amd64 1:22.0.4-1 [36.9 kB]
Get:46 http://packages.erlang-solutions.com/ubuntu bionic/contrib amd64 erlang-percept amd64 1:22.0.4-1 [37.0 kB]
Get:47 http://packages.erlang-solutions.com/ubuntu bionic/contrib amd64 erlang-pman amd64 1:22.0.4-1 [37.0 kB]
Get:48 http://packages.erlang-solutions.com/ubuntu bionic/contrib amd64 erlang-tftp amd64 1:22.0.4-1 [135 kB]
Get:49 http://packages.erlang-solutions.com/ubuntu bionic/contrib amd64 erlang-toolbar amd64 1:22.0.4-1 [36.9 kB]
Get:50 http://packages.erlang-solutions.com/ubuntu bionic/contrib amd64 erlang-tv amd64 1:22.0.4-1 [37.0 kB]
Get:51 http://packages.erlang-solutions.com/ubuntu bionic/contrib amd64 erlang-typer amd64 1:22.0.4-1 [50.4 kB]
Get:52 http://packages.erlang-solutions.com/ubuntu bionic/contrib amd64 erlang all 1:22.0.4-1 [37.3 kB]
Fetched 38.9 MB in 11s (3 675 kB/s)                                            
Extracting templates from packages: 100%
(Reading database ... 187245 files and directories currently installed.)
Removing erlang-corba (1:20.2.2+dfsg-1ubuntu2) ...
Selecting previously unselected package libtcl8.6:amd64.
(Reading database ... 186846 files and directories currently installed.)
Preparing to unpack .../00-libtcl8.6_8.6.8+dfsg-3_amd64.deb ...
Unpacking libtcl8.6:amd64 (8.6.8+dfsg-3) ...
Selecting previously unselected package libtk8.6:amd64.
Preparing to unpack .../01-libtk8.6_8.6.8-4_amd64.deb ...
Unpacking libtk8.6:amd64 (8.6.8-4) ...
Selecting previously unselected package tk8.6.
Preparing to unpack .../02-tk8.6_8.6.8-4_amd64.deb ...
Unpacking tk8.6 (8.6.8-4) ...
Selecting previously unselected package tcl8.6.
Preparing to unpack .../03-tcl8.6_8.6.8+dfsg-3_amd64.deb ...
Unpacking tcl8.6 (8.6.8+dfsg-3) ...
Selecting previously unselected package tcl.
Preparing to unpack .../04-tcl_8.6.0+9_amd64.deb ...
Unpacking tcl (8.6.0+9) ...
Selecting previously unselected package tk.
Preparing to unpack .../05-tk_8.6.0+9_amd64.deb ...
Unpacking tk (8.6.0+9) ...
Selecting previously unselected package erlang-gs.
Preparing to unpack .../06-erlang-gs_1%3a22.0.4-1_amd64.deb ...
Unpacking erlang-gs (1:22.0.4-1) ...
Selecting previously unselected package erlang-appmon.
Preparing to unpack .../07-erlang-appmon_1%3a22.0.4-1_amd64.deb ...
Unpacking erlang-appmon (1:22.0.4-1) ...
Preparing to unpack .../08-erlang-dialyzer_1%3a22.0.4-1_amd64.deb ...
Unpacking erlang-dialyzer (1:22.0.4-1) over (1:20.2.2+dfsg-1ubuntu2) ...
Preparing to unpack .../09-erlang-common-test_1%3a22.0.4-1_amd64.deb ...
Unpacking erlang-common-test (1:22.0.4-1) over (1:20.2.2+dfsg-1ubuntu2) ...
Preparing to unpack .../10-erlang-erl-docgen_1%3a22.0.4-1_amd64.deb ...
Unpacking erlang-erl-docgen (1:22.0.4-1) over (1:20.2.2+dfsg-1ubuntu2) ...
Preparing to unpack .../11-erlang-edoc_1%3a22.0.4-1_amd64.deb ...
Unpacking erlang-edoc (1:22.0.4-1) over (1:20.2.2+dfsg-1ubuntu2) ...
Preparing to unpack .../12-erlang-xmerl_1%3a22.0.4-1_amd64.deb ...
Unpacking erlang-xmerl (1:22.0.4-1) over (1:20.2.2+dfsg-1ubuntu2) ...
Preparing to unpack .../13-erlang-diameter_1%3a22.0.4-1_amd64.deb ...
Unpacking erlang-diameter (1:22.0.4-1) over (1:20.2.2+dfsg-1ubuntu2) ...
Preparing to unpack .../14-erlang-syntax-tools_1%3a22.0.4-1_amd64.deb ...
Unpacking erlang-syntax-tools (1:22.0.4-1) over (1:20.2.2+dfsg-1ubuntu2) ...
Preparing to unpack .../15-erlang-reltool_1%3a22.0.4-1_amd64.deb ...
Unpacking erlang-reltool (1:22.0.4-1) over (1:20.2.2+dfsg-1ubuntu2) ...
Preparing to unpack .../16-erlang-tools_1%3a22.0.4-1_amd64.deb ...
Unpacking erlang-tools (1:22.0.4-1) over (1:20.2.2+dfsg-1ubuntu2) ...
Preparing to unpack .../17-erlang-eldap_1%3a22.0.4-1_amd64.deb ...
Unpacking erlang-eldap (1:22.0.4-1) over (1:20.2.2+dfsg-1ubuntu2) ...
Preparing to unpack .../18-erlang-megaco_1%3a22.0.4-1_amd64.deb ...
Unpacking erlang-megaco (1:22.0.4-1) over (1:20.2.2+dfsg-1ubuntu2) ...
Preparing to unpack .../19-erlang-ssh_1%3a22.0.4-1_amd64.deb ...
Unpacking erlang-ssh (1:22.0.4-1) over (1:20.2.2+dfsg-1ubuntu2) ...
Preparing to unpack .../20-erlang-observer_1%3a22.0.4-1_amd64.deb ...
Unpacking erlang-observer (1:22.0.4-1) over (1:20.2.2+dfsg-1ubuntu2) ...
Preparing to unpack .../21-erlang-inets_1%3a22.0.4-1_amd64.deb ...
Unpacking erlang-inets (1:22.0.4-1) over (1:20.2.2+dfsg-1ubuntu2) ...
Preparing to unpack .../22-erlang-ssl_1%3a22.0.4-1_amd64.deb ...
Unpacking erlang-ssl (1:22.0.4-1) over (1:20.2.2+dfsg-1ubuntu2) ...
Preparing to unpack .../23-erlang-public-key_1%3a22.0.4-1_amd64.deb ...
Unpacking erlang-public-key (1:22.0.4-1) over (1:20.2.2+dfsg-1ubuntu2) ...
Preparing to unpack .../24-erlang-asn1_1%3a22.0.4-1_amd64.deb ...
Unpacking erlang-asn1 (1:22.0.4-1) over (1:20.2.2+dfsg-1ubuntu2) ...
Preparing to unpack .../25-erlang-os-mon_1%3a22.0.4-1_amd64.deb ...
Unpacking erlang-os-mon (1:22.0.4-1) over (1:20.2.2+dfsg-1ubuntu2) ...
Preparing to unpack .../26-erlang-snmp_1%3a22.0.4-1_amd64.deb ...
Unpacking erlang-snmp (1:22.0.4-1) over (1:20.2.2+dfsg-1ubuntu2) ...
Preparing to unpack .../27-erlang-et_1%3a22.0.4-1_amd64.deb ...
Unpacking erlang-et (1:22.0.4-1) over (1:20.2.2+dfsg-1ubuntu2) ...
Preparing to unpack .../28-erlang-runtime-tools_1%3a22.0.4-1_amd64.deb ...
Unpacking erlang-runtime-tools (1:22.0.4-1) over (1:20.2.2+dfsg-1ubuntu2) ...
Preparing to unpack .../29-erlang-mnesia_1%3a22.0.4-1_amd64.deb ...
Unpacking erlang-mnesia (1:22.0.4-1) over (1:20.2.2+dfsg-1ubuntu2) ...
Preparing to unpack .../30-erlang-crypto_1%3a22.0.4-1_amd64.deb ...
Unpacking erlang-crypto (1:22.0.4-1) over (1:20.2.2+dfsg-1ubuntu2) ...
Selecting previously unselected package erlang-test-server.
Preparing to unpack .../31-erlang-test-server_1%3a22.0.4-1_amd64.deb ...
Unpacking erlang-test-server (1:22.0.4-1) ...
Preparing to unpack .../32-erlang-debugger_1%3a22.0.4-1_amd64.deb ...
Unpacking erlang-debugger (1:22.0.4-1) over (1:20.2.2+dfsg-1ubuntu2) ...
Preparing to unpack .../33-erlang-wx_1%3a22.0.4-1_amd64.deb ...
Unpacking erlang-wx (1:22.0.4-1) over (1:20.2.2+dfsg-1ubuntu2) ...
Preparing to unpack .../34-erlang-src_1%3a22.0.4-1_all.deb ...
Unpacking erlang-src (1:22.0.4-1) over (1:20.2.2+dfsg-1ubuntu2) ...
Preparing to unpack .../35-erlang-examples_1%3a22.0.4-1_all.deb ...
Unpacking erlang-examples (1:22.0.4-1) over (1:20.2.2+dfsg-1ubuntu2) ...
Preparing to unpack .../36-erlang-parsetools_1%3a22.0.4-1_amd64.deb ...
Unpacking erlang-parsetools (1:22.0.4-1) over (1:20.2.2+dfsg-1ubuntu2) ...
Preparing to unpack .../37-erlang-odbc_1%3a22.0.4-1_amd64.deb ...
Unpacking erlang-odbc (1:22.0.4-1) over (1:20.2.2+dfsg-1ubuntu2) ...
Preparing to unpack .../38-erlang-ic-java_1%3a22.0.4-1_all.deb ...
Unpacking erlang-ic-java (1:22.0.4-1) over (1:20.2.2+dfsg-1ubuntu2) ...
Preparing to unpack .../39-erlang-ic_1%3a22.0.4-1_amd64.deb ...
Unpacking erlang-ic (1:22.0.4-1) over (1:20.2.2+dfsg-1ubuntu2) ...
Preparing to unpack .../40-erlang-eunit_1%3a22.0.4-1_amd64.deb ...
Unpacking erlang-eunit (1:22.0.4-1) over (1:20.2.2+dfsg-1ubuntu2) ...
Preparing to unpack .../41-erlang-dev_1%3a22.0.4-1_amd64.deb ...
Unpacking erlang-dev (1:22.0.4-1) over (1:20.2.2+dfsg-1ubuntu2) ...
Preparing to unpack .../42-erlang-base_1%3a22.0.4-1_amd64.deb ...
Searching for services which depend on erlang and should be stopped...none found.
Killing epmd...it is not running.
Unpacking erlang-base (1:22.0.4-1) over (1:20.2.2+dfsg-1ubuntu2) ...
Selecting previously unselected package erlang-ftp.
Preparing to unpack .../43-erlang-ftp_1%3a22.0.4-1_amd64.deb ...
Unpacking erlang-ftp (1:22.0.4-1) ...
Selecting previously unselected package erlang-inviso.
Preparing to unpack .../44-erlang-inviso_1%3a22.0.4-1_amd64.deb ...
Unpacking erlang-inviso (1:22.0.4-1) ...
Selecting previously unselected package erlang-percept.
Preparing to unpack .../45-erlang-percept_1%3a22.0.4-1_amd64.deb ...
Unpacking erlang-percept (1:22.0.4-1) ...
Selecting previously unselected package erlang-pman.
Preparing to unpack .../46-erlang-pman_1%3a22.0.4-1_amd64.deb ...
Unpacking erlang-pman (1:22.0.4-1) ...
Selecting previously unselected package erlang-tftp.
Preparing to unpack .../47-erlang-tftp_1%3a22.0.4-1_amd64.deb ...
Unpacking erlang-tftp (1:22.0.4-1) ...
Selecting previously unselected package erlang-toolbar.
Preparing to unpack .../48-erlang-toolbar_1%3a22.0.4-1_amd64.deb ...
Unpacking erlang-toolbar (1:22.0.4-1) ...
Selecting previously unselected package erlang-tv.
Preparing to unpack .../49-erlang-tv_1%3a22.0.4-1_amd64.deb ...
Unpacking erlang-tv (1:22.0.4-1) ...
Selecting previously unselected package erlang-typer.
Preparing to unpack .../50-erlang-typer_1%3a22.0.4-1_amd64.deb ...
Unpacking erlang-typer (1:22.0.4-1) ...
Selecting previously unselected package erlang.
Preparing to unpack .../51-erlang_1%3a22.0.4-1_all.deb ...
Unpacking erlang (1:22.0.4-1) ...
Setting up erlang-base (1:22.0.4-1) ...
Searching for services which depend on erlang and should be started...none found.
Setting up erlang-dev (1:22.0.4-1) ...
Setting up erlang-ic (1:22.0.4-1) ...
Setting up erlang-examples (1:22.0.4-1) ...
Setting up erlang-xmerl (1:22.0.4-1) ...
Setting up erlang-crypto (1:22.0.4-1) ...
Setting up erlang-mnesia (1:22.0.4-1) ...
Setting up erlang-eunit (1:22.0.4-1) ...
Setting up erlang-ic-java (1:22.0.4-1) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
Setting up erlang-runtime-tools (1:22.0.4-1) ...
Setting up erlang-syntax-tools (1:22.0.4-1) ...
Setting up libtcl8.6:amd64 (8.6.8+dfsg-3) ...
Setting up erlang-odbc (1:22.0.4-1) ...
Setting up erlang-dialyzer (1:22.0.4-1) ...
Setting up erlang-typer (1:22.0.4-1) ...
Setting up erlang-parsetools (1:22.0.4-1) ...
Setting up erlang-wx (1:22.0.4-1) ...
Setting up erlang-src (1:22.0.4-1) ...
Setting up libtk8.6:amd64 (8.6.8-4) ...
Setting up erlang-snmp (1:22.0.4-1) ...
Setting up erlang-inviso (1:22.0.4-1) ...
Setting up erlang-asn1 (1:22.0.4-1) ...
Setting up tcl8.6 (8.6.8+dfsg-3) ...
Setting up tk8.6 (8.6.8-4) ...
Setting up tcl (8.6.0+9) ...
Setting up erlang-os-mon (1:22.0.4-1) ...
Setting up erlang-public-key (1:22.0.4-1) ...
Setting up erlang-ssl (1:22.0.4-1) ...
Setting up erlang-inets (1:22.0.4-1) ...
Setting up tk (8.6.0+9) ...
Setting up erlang-tools (1:22.0.4-1) ...
Setting up erlang-percept (1:22.0.4-1) ...
Setting up erlang-reltool (1:22.0.4-1) ...
Setting up erlang-gs (1:22.0.4-1) ...
Setting up erlang-ftp (1:22.0.4-1) ...
Setting up erlang-diameter (1:22.0.4-1) ...
Setting up erlang-ssh (1:22.0.4-1) ...
Setting up erlang-appmon (1:22.0.4-1) ...
Setting up erlang-eldap (1:22.0.4-1) ...
Setting up erlang-toolbar (1:22.0.4-1) ...
Setting up erlang-tftp (1:22.0.4-1) ...
Setting up erlang-edoc (1:22.0.4-1) ...
Setting up erlang-debugger (1:22.0.4-1) ...
Setting up erlang-pman (1:22.0.4-1) ...
Setting up erlang-et (1:22.0.4-1) ...
Setting up erlang-megaco (1:22.0.4-1) ...
Setting up erlang-observer (1:22.0.4-1) ...
Setting up erlang-test-server (1:22.0.4-1) ...
Setting up erlang-erl-docgen (1:22.0.4-1) ...
Setting up erlang-tv (1:22.0.4-1) ...
Setting up erlang-common-test (1:22.0.4-1) ...
Setting up erlang (1:22.0.4-1) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...

- Verificamos instalacion

bext@bext-VPCF13WFX:~$ erl
Erlang/OTP 22 [erts-10.4.3] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1]

Eshell V10.4.3  (abort with ^G)
1> erlang:system_info(version).
"10.4.3"
2> erlang:system_info(otp_release).
"22"
3> 

- Probamos un sencillo programa erlang


bext@bext-VPCF13WFX:~$ cat erltest.erl
% Esta es una prueba de erlang
-module(erltest).
-import(io,[fwrite/1]).
-export([pruebaHolaMundito/0]).

pruebaHolaMundito() ->
   fwrite("Hola, Erlang Prueba !\n").


bext@bext-VPCF13WFX:~$ erl
Erlang/OTP 22 [erts-10.4.3] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1]

Eshell V10.4.3  (abort with ^G)
1> c(erltest).
{ok,erltest}
2> erltest:pruebaHolaMundito().
Hola, Erlang Prueba !
ok
3> 


Instalando RabittMQ

https://computingforgeeks.com/how-to-install-latest-rabbitmq-server-on-ubuntu-18-04-lts/

- Agregamos el repositorio rabbitMQ a ubuntu.

bext@bext-VPCF13WFX:~$ wget -O- https://dl.bintray.com/rabbitmq/Keys/rabbitmq-release-signing-key.asc | sudo apt-key add - 
--2019-07-13 16:41:34--  https://dl.bintray.com/rabbitmq/Keys/rabbitmq-release-signing-key.asc
Resolving dl.bintray.com (dl.bintray.com)... 34.211.6.217, 52.42.33.115
Connecting to dl.bintray.com (dl.bintray.com)|34.211.6.217|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 3187 (3.1K) [application/pgp-signature]
Saving to: ‘STDOUT’

-                   100%[===================>]   3.11K  --.-KB/s    in 0s      

2019-07-13 16:41:35 (21.1 MB/s) - written to stdout [3187/3187]

OK
bext@bext-VPCF13WFX:~$ wget -O- https://www.rabbitmq.com/rabbitmq-release-signing-key.asc | sudo apt-key add -
--2019-07-13 16:41:41--  https://www.rabbitmq.com/rabbitmq-release-signing-key.asc
Resolving www.rabbitmq.com (www.rabbitmq.com)... 104.20.11.224, 104.20.10.224, 2606:4700:10::6814:be0, ...
Connecting to www.rabbitmq.com (www.rabbitmq.com)|104.20.11.224|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/plain]
Saving to: ‘STDOUT’

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

2019-07-13 16:41:42 (29.1 MB/s) - written to stdout [3187]

OK

bext@bext-VPCF13WFX:~$ echo "deb https://dl.bintray.com/rabbitmq/debian $(lsb_release -sc)
main " | sudo tee /etc/apt/sources.list.d/rabbitmq.list
deb https://dl.bintray.com/rabbitmq/debian bionic
main 

- Instalamos RabbitMQ Server en Ubuntu 18.04

bext@bext-VPCF13WFX:~$ sudo apt update

bext@bext-VPCF13WFX:~$ sudo apt -y 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:
  libjs-jquery-metadata libjs-jquery-tablesorter libsctp1
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  erlang-nox
Suggested packages:
  erlang-manpages erlang-doc
The following NEW packages will be installed:
  erlang-nox rabbitmq-server
0 upgraded, 2 newly installed, 0 to remove and 93 not upgraded.
Need to get 4 662 kB of archives.
After this operation, 5 737 kB of additional disk space will be used.
Get:1 http://packages.erlang-solutions.com/ubuntu bionic/contrib amd64 erlang-nox all 1:22.0.4-1 [36.9 kB]
Get:2 http://mx.archive.ubuntu.com/ubuntu bionic/main amd64 rabbitmq-server all 3.6.10-1 [4 625 kB]
Fetched 4 662 kB in 2s (2 752 kB/s)                                            
Selecting previously unselected package erlang-nox.
(Reading database ... 186564 files and directories currently installed.)
Preparing to unpack .../erlang-nox_1%3a22.0.4-1_all.deb ...
Unpacking erlang-nox (1:22.0.4-1) ...
Selecting previously unselected package rabbitmq-server.
Preparing to unpack .../rabbitmq-server_3.6.10-1_all.deb ...
Unpacking rabbitmq-server (3.6.10-1) ...
Processing triggers for ureadahead (0.100.0-21) ...
ureadahead will be reprofiled on next reboot
Setting up erlang-nox (1:22.0.4-1) ...
Processing triggers for systemd (237-3ubuntu10.23) ...
Setting up rabbitmq-server (3.6.10-1) ...
Adding group `rabbitmq' (GID 132) ...
Done.
Adding system user `rabbitmq' (UID 125) ...
Adding new user `rabbitmq' (UID 125) with group `rabbitmq' ...
Not creating home directory `/var/lib/rabbitmq'.
Created symlink /etc/systemd/system/multi-user.target.wants/rabbitmq-server.service → /lib/systemd/system/rabbitmq-server.service.
Job for rabbitmq-server.service failed because the control process exited with error code.
See "systemctl status rabbitmq-server.service" and "journalctl -xe" for details.
invoke-rc.d: initscript rabbitmq-server, action "start" failed.
 rabbitmq-server.service - RabbitMQ Messaging Server
   Loaded: loaded (/lib/systemd/system/rabbitmq-server.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Sat 2019-07-13 17:28:04 CDT; 17ms ago
  Process: 14851 ExecStartPost=/usr/lib/rabbitmq/bin/rabbitmq-server-wait (code=exited, status=70)
  Process: 14850 ExecStart=/usr/sbin/rabbitmq-server (code=exited, status=0/SUCCESS)
 Main PID: 14850 (code=exited, status=0/SUCCESS)

jul 13 17:28:01 bext-VPCF13WFX systemd[1]: Starting RabbitMQ Messaging Server...
jul 13 17:28:02 bext-VPCF13WFX rabbitmq[14851]: Waiting for 'rabbit@bext-VPCF13WFX'
jul 13 17:28:02 bext-VPCF13WFX rabbitmq[14851]: pid is 14859
jul 13 17:28:04 bext-VPCF13WFX rabbitmq[14851]: Error: process_not_running
jul 13 17:28:04 bext-VPCF13WFX systemd[1]: rabbitmq-server.service: Control process exited, code=exited status=70
jul 13 17:28:04 bext-VPCF13WFX systemd[1]: rabbitmq-server.service: Failed with result 'exit-code'.
jul 13 17:28:04 bext-VPCF13WFX systemd[1]: Failed to start RabbitMQ Messaging Server.
dpkg: error processing package rabbitmq-server (--configure):
 installed rabbitmq-server package post-installation script subprocess returned error exit status 1
Processing triggers for systemd (237-3ubuntu10.23) ...
Processing triggers for ureadahead (0.100.0-21) ...
Errors were encountered while processing:
 rabbitmq-server
E: Sub-process /usr/bin/dpkg returned an error code (1)

Se desinstala RabbitMQ y erlang, para instalar version especifica de erland 20.3

Se descarga packete erland ubuntu64 20.3 de la pagina erlang

bext@bext-VPCF13WFX:~$ sudo dpkg -i /home/bext/Downloads/esl-erlang_20.3-1~ubuntu~bionic_amd64.deb

Se detectan inconsistencias en dependencias, así que se desintala RabbitMQ y erlang , y se instala el nativo que viene con ubuntu18.04 y se verifica al versión.

bext@bext-VPCF13WFX:~$ sudo apt -y install rabbitmq-server 
  
Este instala implicitamente erlang versión ...

bext@bext-VPCF13WFX:~$ erl
Erlang/OTP 20 [erts-9.2] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:10] [kernel-poll:false]

Eshell V9.2  (abort with ^G)
"9.2"
2> erlang:system_info(otp_release).
"20"
3> 

bext@bext-VPCF13WFX:~$ sudo systemctl status rabbitmq-server.service
 rabbitmq-server.service - RabbitMQ Messaging Server
   Loaded: loaded (/lib/systemd/system/rabbitmq-server.service; enabled; vendor
   Active: active (running) since Sat 2019-07-13 18:25:54 CDT; 7min ago
  Process: 23821 ExecStartPost=/usr/lib/rabbitmq/bin/rabbitmq-server-wait (code
 Main PID: 23820 (rabbitmq-server)
    Tasks: 164 (limit: 4915)
   CGroup: /system.slice/rabbitmq-server.service
           ├─23820 /bin/sh /usr/sbin/rabbitmq-server
           ├─23831 /bin/sh /usr/lib/rabbitmq/bin/rabbitmq-server
           ├─24013 /usr/lib/erlang/erts-9.2/bin/epmd -daemon
           ├─24147 /usr/lib/erlang/erts-9.2/bin/beam.smp -W w -A 128 -P 1048576
           ├─24332 erl_child_setup 65536
           ├─24424 inet_gethost 4
           └─24425 inet_gethost 4

jul 13 18:25:49 bext-VPCF13WFX systemd[1]: Starting RabbitMQ Messaging Server..
jul 13 18:25:50 bext-VPCF13WFX rabbitmq[23821]: Waiting for 'rabbit@bext-VPCF13
jul 13 18:25:50 bext-VPCF13WFX rabbitmq[23821]: pid is 23831
jul 13 18:25:54 bext-VPCF13WFX systemd[1]: Started RabbitMQ Messaging Server.

Falta Configurar RabbitMQ

https://www.vultr.com/docs/how-to-install-rabbitmq-on-ubuntu-16-04-47

- Arrancamos el servidor

sudo systemctl start rabbitmq-server.service
sudo systemctl enable rabbitmq-server.service

- Checamos el estatus


bext@bext-VPCF13WFX:~$ sudo rabbitmqctl status
Status of node 'rabbit@bext-VPCF13WFX'
[{pid,25954},
 {running_applications,
     [{rabbit,"RabbitMQ","3.6.10"},
      {ranch,"Socket acceptor pool for TCP protocols.","1.3.0"},
      {ssl,"Erlang/OTP SSL application","8.2.3"},
      {public_key,"Public key infrastructure","1.5.2"},
      {asn1,"The Erlang ASN1 compiler version 5.0.4","5.0.4"},
      {rabbit_common,
          "Modules shared by rabbitmq-server and rabbitmq-erlang-client",
          "3.6.10"},
      {xmerl,"XML parser","1.3.16"},
      {crypto,"CRYPTO","4.2"},
      {os_mon,"CPO  CXC 138 46","2.4.4"},
      {compiler,"ERTS  CXC 138 10","7.1.4"},
      {mnesia,"MNESIA  CXC 138 12","4.15.3"},
      {syntax_tools,"Syntax tools","2.1.4"},
      {sasl,"SASL  CXC 138 11","3.1.1"},
      {stdlib,"ERTS  CXC 138 10","3.4.3"},
      {kernel,"ERTS  CXC 138 10","5.4.1"}]},
 {os,{unix,linux}},
 {erlang_version,
     "Erlang/OTP 20 [erts-9.2] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:128] [kernel-poll:true]\n"},
 {memory,
     [{total,58519792},
      {connection_readers,0},
      {connection_writers,0},
      {connection_channels,0},
      {connection_other,0},
      {queue_procs,2744},
      {queue_slave_procs,0},
      {plugins,0},
      {other_proc,23266280},
      {mnesia,61296},
      {metrics,184664},
      {mgmt_db,0},
      {msg_index,42656},
      {other_ets,1757840},
      {binary,112792},
      {code,21390833},
      {atom,891849},
      {other_system,10990694}]},
 {alarms,[]},
 {listeners,[{clustering,25672,"::"},{amqp,5672,"::"}]},
 {vm_memory_high_watermark,0.4},
 {vm_memory_limit,3337597747},
 {disk_free_limit,50000000},
 {disk_free,56609849344},
 {file_descriptors,
     [{total_limit,924},{total_used,2},{sockets_limit,829},{sockets_used,0}]},
 {processes,[{limit,1048576},{used,160}]},
 {run_queue,0},
 {uptime,178},
 {kernel,{net_ticktime,60}}]

Habilitamos la consola de administracion de RabbitMQ

bext@bext-VPCF13WFX:~$ sudo 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@bext-VPCF13WFX... started 6 plugins.
bext@bext-VPCF13WFX:~$ sudo chown -R rabbitmq:rabbitmq /var/lib/rabbitmq/

Agragamos un administrador

bext@bext-VPCF13WFX:~$ sudo rabbitmqctl add_user admin admin
Creating user "admin"
bext@bext-VPCF13WFX:~$ sudo rabbitmqctl set_user_tags admin administrator
Setting tags for user "admin" to [administrator]
bext@bext-VPCF13WFX:~$ sudo rabbitmqctl set_permissions -p / admin ".*" ".*" ".*"
Setting permissions for user "admin" in vhost "/"

Accesamos a la consola de administación

http://localhost:15672 con guest guest o admin admin, usuario que acabamos de crear.



eot

No hay comentarios:

Publicar un comentario