erlang 與 rabbitmq 正確的版本匹配 https://www./which-erlang.html erlang下載地址 :1 http:///download/ 3 https://www./resources/download.html 4 https:///rabbitmq/erlang/packages/el/7/erlang-21.3.8.14-1.el7.x86_64.rpm rabbitmq下載地址:https://github.com/rabbitmq/rabbitmq-server/releases/tag/v3.8.0 推薦rpm安裝erlang ,rabbitmq (安裝簡(jiǎn)單)
erlang:https:///rabbitmq/erlang/packages/el/7/erlang-21.3.8.14-1.el7.x86_64.rpm 找到:rabbitmq-server-3.8.0-1.el7.noarch.rpm rabbitmq:https:///rabbitmq/erlang/packages/el/7/erlang-21.3.8.14-1.el7.x86_64.rpm
例:tar安裝 rabbitmq-server-generic-unix-3.8.0.tar.xz erlang: 一、yum方式安裝 1、安裝依賴項(xiàng) yum install -y epel-release 2、添加存儲(chǔ)庫(kù)條目 wget https://packages./erlang-solutions-1.0-1.noarch.rpmrpm -Uvh erlang-solutions-1.0-1.noarch.rpm 3、安裝 yum install -y erlang 4、驗(yàn)證是否安裝成功 erl -version 出現(xiàn)“Erlang (SMP,ASYNC_THREADS,HIPE) (BEAM) emulator version 10.5”證明安裝成功 二、rpm方式安裝 1、安裝依賴項(xiàng) yum install -y epel-release 2、下載rpm包 wget https://packages./erlang/rpm/centos/7/x86_64/esl-erlang_22.1-1~centos~7_amd64.rpm 3、安裝 yum install esl-erlang_22.1-1~centos~7_amd64.rpm 4、驗(yàn)證 erl -version 出現(xiàn)“Erlang (SMP,ASYNC_THREADS,HIPE) (BEAM) emulator version 10.5”證明安裝成功 三、源碼安裝 (make 安裝后,需要卸載重裝的話,直接在(/opt/erlang)目錄執(zhí)行 make uninstall,或者直接刪除/opt/erlang目錄,再執(zhí)行一次下面的操作) yum install -y gcc cd /usr/local/binwget http:///download/otp_src_22.1.tar.gz tar -zxvf otp_src_22.1.tar.gzcd otp_src_22.1 yum install -y perl yum install -y ncurses-devel yum install -y openssl openssl-devel yum -y install unixODBC-devel ./configure --prefix=/opt/erlang --without-javac make && make install 配置環(huán)境變量并且使環(huán)境變量生效 echo 'export PATH=$PATH:/opt/erlang/bin' >> /etc/profilesource /etc/profile 驗(yàn)證是否安裝成功 erl -version 出現(xiàn)“Erlang (SMP,ASYNC_THREADS) (BEAM) emulator version 10.5”信息則證明安裝成功了。 rabbimq: 注:erlang 的依賴一定要確保安裝成功,不然rabbitmq啟動(dòng)不了,會(huì)出現(xiàn)很多問題。 例:rabbitmq-server-generic-unix-3.8.0.tar.xz
守護(hù)進(jìn)程啟動(dòng)
往下找到 {loopback_users , [<<"guest">>] }改為{loopback_users , [] }
注:cd /etc/init.d 可以執(zhí)行 rabbitmq-server start / stop /status |
|
來(lái)自: 三十的狼 > 《rabbitmq》