WebSphere MQ installation under Linux

Source: Internet
Author: User

1. Create MQ users and directories.

[[email protected]] #mkdir/VAR/MQM # # #业务数据存放目录

[[email protected]] #mkdir/OPT/MQM # # #软件安装目录

[[email protected]] #groupadd MQM

[[email protected]] #useradd-D/var/mqm-g mqm-s/usr/sbin-m MQM

[[email protected]] #passwd MQM

[[email protected]] #chown-R MQM:MQM/OPT/MQM

[[email protected]] #chown-R MQM:MQM/VAR/MQM


2. Get the MQ media ci8hqml-linux.tar.gz, put it in/TMP and unzip.

[Email protected] tmp]# mkdir MQ

[Email protected] tmp]# TAR-ZXF ci8hqml-linux.tar.gz-c MQ


3. View the extracted files

[[Email protected] tmp]# CD MQ

[[email protected] mq]# ls

Copyright mqseriesftlogger-7.5.0-0.x86_64.rpm mqseriesmsg_fr-7.5.0-0.x86_64.rpm


mqseriesruntime-7.5.0-0.x86_64.rpm

Crtmqpkg mqseriesftservice-7.5.0-0.x86_64.rpm mqseriesmsg_hu-7.5.0-0.x86_64.rpm


mqseriessamples-7.5.0-0.x86_64.rpm

Lap mqseriesfttools-7.5.0-0.x86_64.rpm mqseriesmsg_it-7.5.0-0.x86_64.rpm


mqseriessdk-7.5.0-0.x86_64.rpm

Licenses mqseriesgskit-7.5.0-0.x86_64.rpm mqseriesmsg_ja-7.5.0-0.x86_64.rpm


mqseriesserver-7.5.0-0.x86_64.rpm

mqlicense.sh mqseriesjava-7.5.0-0.x86_64.rpm mqseriesmsg_ko-7.5.0-0.x86_64.rpm


mqseriesxrclients-7.5.0-0.x86_64.rpm

mqseriesams-7.5.0-0.x86_64.rpm mqseriesjre-7.5.0-0.x86_64.rpm mqseriesmsg_pl-7.5.0-0.x86_64.rpm


mqseriesxrservice-7.5.0-0.x86_64.rpm

mqseriesclient-7.5.0-0.x86_64.rpm mqseriesman-7.5.0-0.x86_64.rpm mqseriesmsg_pt-7.5.0-0.x86_64.rpm PreReqs

mqseriesexplorer-7.5.0-0.x86_64.rpm mqseriesmsg_cs-7.5.0-0.x86_64.rpm mqseriesmsg_ru-7.5.0-0.x86_64.rpm READMEs

mqseriesftagent-7.5.0-0.x86_64.rpm mqseriesmsg_de-7.5.0-0.x86_64.rpm mqseriesmsg_zh_cn-7.5.0-0.x86_64.rpm Repackage

mqseriesftbase-7.5.0-0.x86_64.rpm mqseriesmsg_es-7.5.0-0.x86_64.rpm mqseriesmsg_zh_tw-7.5.0-0.x86_64.rpm


4. Run the authorization command ###-text_only as a test use, 90-day trial period. -accept need to buy license.

[Email protected] mq]#./mqlicense.sh-text_only


Licensed Materials-property of IBM

5724-h72


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


US government Users Restricted rights-use, duplication or disclosure

Restricted by GSA ADP Schedule contract with IBM Corp.



License have already been accepted:proceed with install.


5. Execute the install command. I installed the minimalist server .

[Email protected] mq]# RPM-IVH mqseriesruntime-7.5.0-0.x86_64.rpm

Preparing ... ########################################### [100%]

1:mqseriesruntime ########################################### [100%]

[Email protected] mq]# RPM-IVH mqseriessdk-7.5.0-0.x86_64.rpm

Preparing ... ########################################### [100%]

1:MQSERIESSDK ########################################### [100%]

[Email protected] mq]# RPM-IVH mqseriesserver-7.5.0-0.x86_64.rpm

Preparing ... ########################################### [100%]

1:mqseriesserver ########################################### [100%]

[Email protected] mq]# RPM-IVH mqseriesjava-7.5.0-0.x86_64.rpm

Preparing ... ########################################### [100%]

1:mqseriesjava ########################################### [100%]

[Email protected] mq]# RPM-IVH mqseriessamples-7.5.0-0.x86_64.rpm

Preparing ... ########################################### [100%]

1:mqseriessamples ########################################### [100%]


6. View the component installation details.

[Email protected] mq]# RPM-QA |grep MQ

Mqseriesjava-7.5.0-0.x86_64

Mqseriessdk-7.5.0-0.x86_64

Mqseriesruntime-7.5.0-0.x86_64

Mqseriessamples-7.5.0-0.x86_64

Mqseriesserver-7.5.0-0.x86_64


7. Log in with MQM to create test Queue Manager and queue

[Email protected] ~]$ SU-MQM

Password:

[Email protected] ~]$ crtmqm-q Venus.queue.manager # # #创建缺省队列管理器

There is, and the trial period for this copy of WebSphere MQ.

WebSphere MQ Queue Manager created.

Directory '/var/mqm/qmgrs/venus!queue!manager ' created.

The queue Manager is associated with installation ' Installation1 '.

Creating or replacing default objects for Queue Manager ' Venus.queue.manager '.

Default objects statistics:74 created. 0 replaced. 0 failed.

Completing Setup.

Setup completed.


-------PS: If Ctrmqm:command not found appears, add path=/var/mqm/bin:/opt/mqm/samp/bin:/opt/mqm/bin:bin:/usr/in the MQM user environment variable Bin:/usr/sbin:/usr/local/bin:/usr/x11r6/bin, you can refresh.


[Email protected] ~]$ STRMQM Venus.queue.manager # # #启动队列管理器

There is, and the trial period for this copy of WebSphere MQ.

WebSphere MQ Queue Manager ' Venus.queue.manager ' starting.

The queue Manager is associated with installation ' Installation1 '.

5 log records accessed on Queue manager ' Venus.queue.manager ' during the log replay phase.

Log replay for Queue Manager ' Venus.queue.manager ' complete.

Transaction manager state recovered for Queue manager ' Venus.queue.manager '.

WebSphere MQ Queue Manager ' Venus.queue.manager ' started using V7.5.0.0.


8. Go to the console and define the local queue

[Email protected] ~]$ RUNMQSC

5724-H72 (C) Copyright IBM Corp. 1994, 2011. All rights RESERVED.

Starting MQSC for Queue Manager Venus.queue.manager.

Define Qlocal (Orange.queue) # # #需要先建立orange. Queue queues

2:define qlocal (Orange.queue)

Amq8006:websphere MQ queue created.

End


9. Switch to/opt/mqm/samp/bin and send a message to the queue.

[Email protected] bin]$/amqsput ORANGE. QUEUE # # #队列必须用大写

Sample AMQSPUT0 Start

Target queue is ORANGE. QUEUE

This is A TEST MESSAGE # # #这是自己输入的一条消息, enter two times send


Sample AMQSPUT0 End


10. Read the message from the queue.

[Email protected] bin]$/amqsget ORANGE. QUEUE

Sample AMQSGET0 Start

Message <this is A TEST message> # # #这里表示成功接收消息.


No more messages

Sample AMQSGET0 End


11. Upgrade to the production version

Get license, run./SETMQPRD $path/amqpcert.lic



This article is from the "Snow" blog, be sure to keep this source http://xueli.blog.51cto.com/3325186/1589110

WebSphere MQ installation under Linux

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.