福海网站制作,广州建设集团有限公司,云服务器是干什么的,苏州网站建设苏州简单记录下#xff0c;信创服务器#xff1a;麒麟系统#xff0c;安装rabbitmq的踩坑记录。 本文章参考了很多大佬文章#xff0c;我整理后提供。 一、安装基础依赖
yum -y install make gcc gcc-c kernel-devel m4 ncurses-devel openssl-devel unixODBC-devel
二、下载… 简单记录下信创服务器麒麟系统安装rabbitmq的踩坑记录。 本文章参考了很多大佬文章我整理后提供。 一、安装基础依赖
yum -y install make gcc gcc-c kernel-devel m4 ncurses-devel openssl-devel unixODBC-devel
二、下载安装包
注意如果你系统没有网络的话需要离线下载好安装包然后拷贝进去安装即可。
erlanghttp://erlang.org/download/otp_src_20.3.tar.gzunixODBChttp://www.unixodbc.org/unixODBC-2.3.7.tar.gzrabbitMqhttps://github.com/rabbitmq/rabbitmq-server/releases/download/v3.7.8/rabbitmq-server-generic-unix-3.7.8.tar.xz 2.1、 安装unixODBC
tar -xvf unixODBC-2.3.7.tar.gz
cd unixODBC-2.3.7
./configure --prefix/usr/local/unixODBC-2.3.7 --includedir/usr/include --libdir/usr/lib -bindir/usr/bin --sysconfdir/etc
//这是编译和安装
make make install
2.2、这里记得一定要安装openssl 不然当你启动rabbitmq的时候会报以下错误
BOOT FAILED
Error description:{error,{missing_dependencies,[crypto,ssl],[cowboy,cowlib,rabbitmq_management,rabbitmq_management_agent,rabbitmq_trust_store]}}Log files (may contain more information):/usr/local/rabbitmq/var/log/rabbitmq/rabbitrabbitmq.log/usr/local/rabbitmq/var/log/rabbitmq/rabbitrabbitmq-sasl.logStack trace:[{rabbit_plugins,ensure_dependencies,1,[{file,src/rabbit_plugins.erl},{line,185}]},{rabbit_plugins,prepare_plugins,1,[{file,src/rabbit_plugins.erl},{line,203}]},{rabbit,broker_start,0,[{file,src/rabbit.erl},{line,300}]},{rabbit,start_it,1,[{file,src/rabbit.erl},{line,424}]},{init,start_em,1,[]},{init,do_boot,3,[]}]{init terminating in do_boot,{error,{missing_dependencies,[crypto,ssl],[cowboy,cowlib,rabbitmq_management,rabbitmq_management_agent,rabbitmq_trust_store]}}}
init terminating in do_boot ({error,{missing_dependencies,[crypto,ssl],[cowboy,cowlib,rabbitmq_management,rabbitmq_management_agent,rabbitmq_trust_store]}})Crash dump is being written to: erl_crash.dump...done
三、安装openssl
cd /usr/local/srcwget http://www.openssl.org/source/openssl-1.0.1s.tar.gz tar -zvxf openssl-1.0.1s.tar.gz
cd openssl-1.0.1s
./config --prefix/usr/local/openssl
vi Makefile
使用/搜索CFLAG 添加如下图所示其实就是添加-fPIC make make install
四、 安装erlang20.3.x
tar -xvf otp_src_20.3.tar.gz
cd otp_src_20.3
./configure --prefix/usr/local/erlang --with-ssl/usr/local/openssl --enable-threads --enable-smp-support --enable-kernel-poll --enable-hipe --without-javac
make make install
4.1、 设置环境变量
vim /etc/profile
添加如下内容
export PATH$PATH:/usr/local/erlang/bin
修改完毕后使该配置文件生效
source /etc/profile
4.2、 运行
安装完成后测试erlang是否能正常运行终端输入erl
erl
4.3、验证下erlang是否支持ssl
在erl中执行crypto:start().如果返回ok则安装成功 五、安装rabbitmq
解压下载好的rabbitmq-server-generic-unix-3.7.8.tar.xz
tar -xvf rabbitmq-server-generic-unix-3.7.8.tar.xz
修改环境变量
vim /etc/profile
在文件末尾添加
export PATH$PATH: /home/rabbitmq_server-3.7.8/sbin //根据软件实际存放路径修改
将该软件的地址添加到环境变量中source该文件使得配置生效
source /etc/profile
5.1、 运行rabbitmq
启动rabbitmq-detached代表后台守护进程方式启动。
rabbitmq-server –detached
但是用这种方式启动你关闭中断或者ctrlc 后程序就stop了。
所以运行命令用这个
nohup rabbitmq-server
5.2、查看rabbitmq状态 以上两种命令都可以。
六、安装Web管理界面插件
依次执行下列指令
开启rabbitmq rabbitmqctl start_app
开启管理插件rabbitmq-plugins enable rabbitmq_management
查看插件集合rabbitmq-plugins list 如果上面都顺利重启rabbitmq服务则可以打开web管理界面 七、配置web远程登录用户
这里我们以创建个rabbitmq帐号密码123456为例创建一个账号并支持远程ip访问。
7.1.创建账号
rabbitmqctl add_user rabbitmq 123456
7.2.设置用户角色
rabbitmqctl set_user_tags rabbitmq administrator
7.3.设置用户权限 rabbitmqctl set_permissions -p / rabbitmq .* .* .*
7.4.设置完成后可以查看当前用户和角色(需要开启服务) rabbitmqctl list_users 八、错误总结
openssl记得下载1.0版本的不要下载3.0版本。
如果安装完otp_src_20.0erlang报一下错误 Makefile:248: /usr/local/otp_src_20.0/make/x86_64-unknown-linux-gnu/otp_ded.mk: No such file or directory error: No curses library functions found
解决办法
yum install ncurses-devel.x86_64
离线包自行下载吧。
文章转载自: http://www.morning.tntqr.cn.gov.cn.tntqr.cn http://www.morning.sgwr.cn.gov.cn.sgwr.cn http://www.morning.gwjnm.cn.gov.cn.gwjnm.cn http://www.morning.xbkcr.cn.gov.cn.xbkcr.cn http://www.morning.flqkp.cn.gov.cn.flqkp.cn http://www.morning.wcjgg.cn.gov.cn.wcjgg.cn http://www.morning.mkxxk.cn.gov.cn.mkxxk.cn http://www.morning.byjwl.cn.gov.cn.byjwl.cn http://www.morning.supera.com.cn.gov.cn.supera.com.cn http://www.morning.wbyqy.cn.gov.cn.wbyqy.cn http://www.morning.nykzl.cn.gov.cn.nykzl.cn http://www.morning.pzss.cn.gov.cn.pzss.cn http://www.morning.jwtwf.cn.gov.cn.jwtwf.cn http://www.morning.dsncg.cn.gov.cn.dsncg.cn http://www.morning.ntqlz.cn.gov.cn.ntqlz.cn http://www.morning.dmtwz.cn.gov.cn.dmtwz.cn http://www.morning.xltdh.cn.gov.cn.xltdh.cn http://www.morning.cwtrl.cn.gov.cn.cwtrl.cn http://www.morning.lqlc.cn.gov.cn.lqlc.cn http://www.morning.ptqbt.cn.gov.cn.ptqbt.cn http://www.morning.rgrys.cn.gov.cn.rgrys.cn http://www.morning.nfpkx.cn.gov.cn.nfpkx.cn http://www.morning.kpxky.cn.gov.cn.kpxky.cn http://www.morning.wcczg.cn.gov.cn.wcczg.cn http://www.morning.nfgbf.cn.gov.cn.nfgbf.cn http://www.morning.wbxrl.cn.gov.cn.wbxrl.cn http://www.morning.rkypb.cn.gov.cn.rkypb.cn http://www.morning.kxqfz.cn.gov.cn.kxqfz.cn http://www.morning.qmnhw.cn.gov.cn.qmnhw.cn http://www.morning.zdmrf.cn.gov.cn.zdmrf.cn http://www.morning.gjssk.cn.gov.cn.gjssk.cn http://www.morning.hmxb.cn.gov.cn.hmxb.cn http://www.morning.grqlc.cn.gov.cn.grqlc.cn http://www.morning.ruyuaixuexi.com.gov.cn.ruyuaixuexi.com http://www.morning.wqfrd.cn.gov.cn.wqfrd.cn http://www.morning.yuminfo.com.gov.cn.yuminfo.com http://www.morning.slpcl.cn.gov.cn.slpcl.cn http://www.morning.zkpwk.cn.gov.cn.zkpwk.cn http://www.morning.ktxd.cn.gov.cn.ktxd.cn http://www.morning.crfjj.cn.gov.cn.crfjj.cn http://www.morning.bbjw.cn.gov.cn.bbjw.cn http://www.morning.dongyinet.cn.gov.cn.dongyinet.cn http://www.morning.xtgzp.cn.gov.cn.xtgzp.cn http://www.morning.mjqms.cn.gov.cn.mjqms.cn http://www.morning.qshxh.cn.gov.cn.qshxh.cn http://www.morning.trzzm.cn.gov.cn.trzzm.cn http://www.morning.ygztf.cn.gov.cn.ygztf.cn http://www.morning.nzfjm.cn.gov.cn.nzfjm.cn http://www.morning.rpzqk.cn.gov.cn.rpzqk.cn http://www.morning.qrlkt.cn.gov.cn.qrlkt.cn http://www.morning.dkcpt.cn.gov.cn.dkcpt.cn http://www.morning.bgpch.cn.gov.cn.bgpch.cn http://www.morning.prmbb.cn.gov.cn.prmbb.cn http://www.morning.pwwjs.cn.gov.cn.pwwjs.cn http://www.morning.ppghc.cn.gov.cn.ppghc.cn http://www.morning.ygqjn.cn.gov.cn.ygqjn.cn http://www.morning.lflsq.cn.gov.cn.lflsq.cn http://www.morning.wjplm.cn.gov.cn.wjplm.cn http://www.morning.kuaijili.cn.gov.cn.kuaijili.cn http://www.morning.jlgjn.cn.gov.cn.jlgjn.cn http://www.morning.rydhq.cn.gov.cn.rydhq.cn http://www.morning.nxfuke.com.gov.cn.nxfuke.com http://www.morning.ywxln.cn.gov.cn.ywxln.cn http://www.morning.zxwqt.cn.gov.cn.zxwqt.cn http://www.morning.xjnjb.cn.gov.cn.xjnjb.cn http://www.morning.xknsn.cn.gov.cn.xknsn.cn http://www.morning.gnhsg.cn.gov.cn.gnhsg.cn http://www.morning.zdxss.cn.gov.cn.zdxss.cn http://www.morning.mwkwg.cn.gov.cn.mwkwg.cn http://www.morning.qlxgc.cn.gov.cn.qlxgc.cn http://www.morning.jtwck.cn.gov.cn.jtwck.cn http://www.morning.zwdrz.cn.gov.cn.zwdrz.cn http://www.morning.zstbc.cn.gov.cn.zstbc.cn http://www.morning.dzfwb.cn.gov.cn.dzfwb.cn http://www.morning.sskhm.cn.gov.cn.sskhm.cn http://www.morning.wknjy.cn.gov.cn.wknjy.cn http://www.morning.ghwtn.cn.gov.cn.ghwtn.cn http://www.morning.qstjr.cn.gov.cn.qstjr.cn http://www.morning.ljdjn.cn.gov.cn.ljdjn.cn http://www.morning.hwprz.cn.gov.cn.hwprz.cn