zoukankan      html  css  js  c++  java
  • linux安装ActiveMQ

    linux:

    准备工作:安装JDK7以上. https://www.cnblogs.com/Dylansuns/p/6974272.html

    1. 下载
    cd /home/download
    wget https://archive.apache.org/dist/activemq/5.14.0/apache-activemq-5.14.0-bin.tar.gz

    2. 创建安装目录
    mkdir /usr/local/activemq

    3. 解压文件
    tar -zxvf  apache-activemq-5.14.0-bin.tar.gz -C /usr/local/activemq

    4. 启动服务
    cd /usr/local/activemq/apache-activemq-5.14.0/bin/linux-x86-64
    chmod 755 activemq
    ./activemq start

    三种运行方式:
    (1)普通启动 ./activemq start 停止 ./activemq stop
    (2)启动并指定日志文件 ./activemq start >tmp/smlog
    (3)后台启动方式nohup ./activemq start >/tmp/smlog
    前两种方式下在命令行窗口关闭时或者ctrl+c时导致进程退出,采用后台启动方式则可以避免这种情况

    执行 ./bin/activemq console  进入http://127.0.0.1:8161/admin username: admin password: admin
    也可以后台运行:sudo ./bin/activemq start 停止: ./bin/activemq stop

    5. 测试是否启动成功
    netstat -an|grep 61616

    启动失败处理方法:

    1. 检查jdk是否安装成功

    2. 可能是端口冲突,需要查看错误提示。

    cd ./apache-activemq-5.15.4/conf

    vi  activemq.xml   #修改冲突的1883端口为1884

    部分引用于:https://www.cnblogs.com/gossip/p/5969925.html、https://www.cnblogs.com/yangw/p/5910964.html

     配置开机启动方法

    ==================================================================

    windows:

    http://activemq.apache.org/activemq-5140-release.html 下载并解压,在解压好的路径下……apache-activemq-5.13.1inwin64,找到 activemq.bat 运行,则OK!(32位的电脑找不win32的路径下)

    ActiveMQ默认启动到8161端口,启动完了后在浏览器地址栏输入:http://localhost:8161/admin要求输入用户名密码,默认用户名密码为admin、admin,后便可看到如下图的ActiveMQ控制台界面了

  • 相关阅读:
    boost pool 和 object_pool
    boost::ref
    Source Insight设置
    windows7下硬盘安装ubuntu14.04
    POJ 2778 DNA Sequence (AC自己主动机 + dp)
    cocos2dx 运动+旋转动画 CCSequence CCAnimation CCAnimate CCMoveTo CCCallFuncN
    LeetCode 2 Add Two Numbers
    MySQL数据库导入外部*.sql文件具体步骤
    [ExtJS5学习笔记]第十节 Extjs5新增特性之ViewModel和DataBinding
    svn项目导入
  • 原文地址:https://www.cnblogs.com/andylhc/p/9337628.html
Copyright © 2011-2022 走看看