Loading [MathJax]/jax/element/mml/optable/BasicLatin.js

愤怒中的小草

博客园 首页 新随笔 联系 订阅 管理
  160 随笔 :: 1 文章 :: 4 评论 :: 14万 阅读

1.安装依赖
yum -y install make gcc gcc-c++ kernel-devel m4 ncurses-devel openssl-devel unixODBC unixODBC-devel httpd python-simplejson
2.yum install erlang
    export PATH=PATH:/usr/lib/erlang 检查erlang是否安装成功   find / -name erlang   find / -name erl   执行/usr/lib/erlang/bin/erl 查看erlang版本   [root@localhost rabbit]# erl   Erlang R16B03-1 (erts-5.10.4) [source] [async-threads:10] [hipe] [kernel-poll:false]   Eshell V5.10.4  (abort with ^G) 第一种安装的erlang版本过低 下载 wget http://erlang.org/download/otp_src_19.3.tar.gz 配置cd otp_src_19.3: ./configure --enable-smp-support --enable-threads --enable-sctp --enable-kernel-poll --enable-hipe --with-ssl 卸载办法   --prefix=path:   ./configure --prefix=/usr/lib/erlang   ./configure && make && make install wget  www.rabbitmq.com/releases/rabbitmq-server/v1.8.1/rabbitmq-server-1.8.1-1.noarch.rpm [root@localhost rabbit]# rpm -ivh rabbitmq-server-3.7.5-1.el7.noarch.rpm warning: rabbitmq-server-3.7.5-1.el7.noarch.rpm: Header V4 RSA/SHA1 Signature, key ID 6026dfca: NOKEY error: Failed dependencies:         erlang >= 19.3 is needed by rabbitmq-server-3.7.5-1.el7.noarch [root@localhost rabbit]# yum -y install socat Loaded plugins: langpacks, refresh-packagekit Package socat-1.7.2.4-1.fc19.i686 already installed and latest version 依赖解决不了,强制安装 rpm -i --nodeps rabbitmq-server-3.7.5-1.el7.noarch.rpm 从官网来看,RabbitMQ有两个配置文件,使用RPM方式安装: RabbitMQ的根目录:/var/lib/rabbitmq      /usr/lib/rabbitmq/bin RabbitMQ的配置文件目录:/etc/rabbitmq/ RabbitMQ的日志文件目录:/var/log/rabbitmq 两个配置文件分别是: rabbitmq.config rabbitmq-env.conf 添加启动项 [root@localhost bin]# chkconfig rabbitmq-server on Note: Forwarding request to 'systemctl enable rabbitmq-server.service'. ln -s '/usr/lib/systemd/system/rabbitmq-server.service' '/etc/systemd/system/multi-user.target.wants/rabbitmq-server.service' 启动 [root@localhost bin]# ./rabbitmq-server   ##  ##   ##  ##      RabbitMQ 3.7.5. Copyright (C) 2007-2018 Pivotal Software, Inc.   ##########  Licensed under the MPL.  See http://www.rabbitmq.com/   ######  ##   ##########  Logs: /var/log/rabbitmq/rabbit@localhost.log                     /var/log/rabbitmq/rabbit@localhost_upgrade.log               Starting broker...  completed with 0 plugins. 查看当前的用户列表 rabbitmqctl list_users ./rabbitmq-server -detached ./rabbitmqctl status ./rabbitmqctl stop ./rabbitmq-server & 查看一下当前启动的端口,并没有发现rabbit: netstat -lnutp 启动用web管理 rabbitmq-plugins enable rabbitmq_management rabbitmqctl set_permissions -p "/" admin "." "." ".*" 删除IPsusudo ip addr del 192.168.0.193/24 dev wlan0 [root@localhost bin]# rabbitmq-plugins enable rabbitmq_management warning: the VM is running with native name encoding of latin1 which may cause Elixir to malfunction as it expects utf8. Please ensure your locale is set to UTF-8 (which can be verified by running "locale" in your shell) The following plugins have been configured:   rabbitmq_management   rabbitmq_management_agent   rabbitmq_web_dispatch Applying plugin configuration to rabbit@localhost... The following plugins have been enabled:   rabbitmq_management   rabbitmq_management_agent   rabbitmq_web_dispatch set 3 plugins. Offline change; changes will take effect at broker restart. 缺少三个 www.rabbitmq.com/releases/rabbitmq-server/v3.6.9/rabbitmq-server-generic-unix-3.6.9.tar.xz yum install xz xz -d xz -d rabbitmq-server-generic-unix-3.6.9.tar.xz [root@localhost etc]# service rabbitmq-server start Job for rabbitmq-server.service failed. See 'systemctl status rabbitmq-server.service' and 'journalctl -xn' for details. systemctl status rabbitmq-server.service  查看 尝试下面的操作: 禁用 SELinux ,修改 /etc/selinux/config SELINUX=disabled 修改后重启系统 还是不行 查看具体错误信息 按照提示,执行提示中的命令:journalctl -xe ./configure --prefix=/usr/local/erlang --without-javac export PATH=PATH:/usr/local/erlang
# /usr/local/erlang/bin/erl
yum list | grep ssl
yum install unixODBC-dev
**********************  APPLICATIONS DISABLED  **********************
*********************************************************************

crypto         : No usable OpenSSL found
jinterface     : Java compiler disabled by user
ssh            : No usable OpenSSL found
ssl            : No usable OpenSSL found

*********************************************************************
*********************************************************************
**********************  APPLICATIONS INFORMATION  *******************
*********************************************************************


wx             : wxWidgets not found, wx will NOT be usable

*********************************************************************
*********************************************************************
**********************  DOCUMENTATION INFORMATION  ******************
*********************************************************************

documentation  :
                 fop is missing.
                 Using fakefop to generate placeholder PDF files.

***************************

总结:建议虚拟机使用centos7

posted on   愤怒中的小草  阅读(8621)  评论(0编辑  收藏  举报
点击右上角即可分享
微信分享提示