美文网首页
RedHat6.4 安装MQ7.5

RedHat6.4 安装MQ7.5

作者: 摩诃婆罗多 | 来源:发表于2019-03-21 18:01 被阅读0次
    1. 环境
    • Red Hat Enterprise Linux Server release 6.4 (Santiago)【Linux version 2.6.32-358.el6.x86_64】
    • 内存 4g
    • WebSphere MQ for Linux (x86-64 platform) 7.5.0.2 64-bit
    1. 创建用户、用户组:mqm
    #adduser mqm
    #passwd mqm
    
    1. 上传安装包,使用root用户进行安装
    # mkdir mq
    # cd mq
    # tar -xvf WS_MQ_V7.5.0.2_TRIAL_LNX_ON_X86_64_ML.tar.gz
    

    2.1 安装许可,根据提示,敲入1即可

    # ./mqlicense.sh
    

    Licensed Materials - Property of IBM

    5724-H72

    (C) Copyright IBM Corporation 1994, 2013 All rights reserved.

    US Government Users Restricted Rights - Use, duplication or disclosure
    restricted by GSA ADP Schedule Contract with IBM Corp.

    IMPORTANT: READ CAREFULLY

    Two license agreements are presented below.

    1. IBM International License Agreement for Evaluation of
      Programs
    2. IBM International Program License Agreement

    If Licensee is obtaining the Program for purposes of
    productive use (other than evaluation, testing, trial "try
    or buy," or demonstration): By clicking on the "Accept"
    button below, Licensee accepts the IBM International
    Program License Agreement, without modification.

    If Licensee is obtaining the Program for the purpose of

    Press Enter to continue viewing the license agreement, or
    enter "1" to accept the agreement, "2" to decline it, "3"
    to print it, "4" to read non-IBM terms, or "99" to go back
    to the previous screen.
    1

    Agreement accepted: Proceed with install.

    2.2 首先安装MQSeriesRuntime

    # mv MQSeriesRuntime-7.5.0-2.x86_64.rpm ..
    # cd ..
    # rpm -ivh MQSeriesRuntime-7.5.0-2.x86_64.rpm
    

    2.3 再安装其他的rpm包

    # cd mq
    # rpm -ivh *.rpm
    

    如图所示:


    1.png

    2.4 根据提示,调整系统
    根据上一步的安装提示,执行脚本

    su mqm -c "/opt/mqm/bin/mqconfig"
    
    2.png
    该脚本校验了System V SemaphoresSystem V Shared MemorySystem SettingsCurrent User Limits (mqm)四个大类的参数配置,根据上图微调系统:
    # vi /etc/sysctl.conf
    

    加入如下三行:

    net.ipv4.tcp_keepalive_time=300
    fs.file-max=524288
    kernel.sem=500 256000 250 1024
    

    # vi /etc/security/limits.conf
    

    加入如下三行:

    mqm              soft    nproc   4096
    mqm              soft    nofile  10240
    mqm              hard    nofile  10240
    

    重启系统或者使用# sysctl -p命令使参数生效。
    再次执行脚本

    su mqm -c "/opt/mqm/bin/mqconfig"
    

    全部pass


    3.png

    2.5 查询已经安装的组件

    # rpm -qa|grep -i mq
    
    1. 配置
      切换到mqm用户,配置环境变量
    $ vi .bash_profile
    
    PATH="/opt/mqm/samp/bin:$PATH"
    PATH="/opt/mqm/bin:$PATH"
    export PATH
    

    查看版本信息

    $ source .bash_profile
    $ dspmqver
    

    MQ默认的程序安装目录:/opt/mqm
    MQ默认的数据保存目录:/var/mqm

    1. 下载文中的软件
      系统:http://pan.baidu.com/s/1bniVAMj
      MQ:链接:https://pan.baidu.com/s/1J3m0_rENF9P-0HBwx7qj7A
      提取码:t73v

    相关文章

      网友评论

          本文标题:RedHat6.4 安装MQ7.5

          本文链接:https://www.haomeiwen.com/subject/nyewfftx.html