WebSphere MQ Installation

Source: Internet
Author: User

WEBSPHEREMQ can be downloaded on the IBM website for a trial version of 90 days. Http://www.ibm.com/developerworks/cn/downloads/ws/wmq/index.html

MQ can be installed in many systems, this article is primarily documented under Linux installation.

First, installation steps

1. Log in to the system as the root user

The 2.MQ installer needs to install the code under directory/OPT/MQM and save the data to the directory/VAR/MQM, so the MQM directory is created under/OPT and/var respectively.

3. Create a user and group named "MQM" and specify the user's directory as/VAR/MQM.

3.1 Set up the user group MQM. Note: The group name must be MQM

1 Groupadd MQM

3.2 Create a user MQM (1) that belongs to the MQM group, and modify the password (2). Note: The user name must be MQM

1 useradd-d/VAR/MQM-G MQM MQM2passwd MQM

4. Unzip the MQ installation package mq_7.5.0.2_trial_lnx_on_x86_32_ml.tar.gz

1 tar -xvzf mq_7. 5.0. 2_trial_lnx_on_x86_32_ml.tar. gz

5. Installing MQ

5.1 Under the directory where you unzipped the installation package, accept the MQ installation Protocol (1) and install MQ (2).

1 ./mqlicense. SH –accept 2 rpm-ivh mqseriesruntime-7.5. 0-2. i386.rpm mqseriessamples-7.5. 0-2. i386.rpm mqseriesserver-7.5. 0-2. i386.rpm

Second, the installation is complete, verify the success

1. Log in to the system with MQM users

2. Create the Queue Manager (1), start the Queue Manager (2), enter the Queue Manager console (3), create the queue (4). Note: If you do not see the command CRTMQM, switch to the/opt/mqm/bin directory.

1 CRTMQM qm_test 2 STRMQM qm_test 3 RUNMQSC qm_test 4 define qlocal (Myqueue)

3. Test send message to queue myqueue, switch to/opt/mqm/samp/bin directory to execute the following command

1 ./amqsput myqueue Qm_test

Screen Output "Sample AMQSPUT0 start target queue is Myqueue", manually enter the test message "Hello,this is a test" double-click Enter to end the input.

4. Read the message from the queue myqueue, and switch to the/opt/mqm/samp/bin directory to execute the following command

1 ./amqsget myqueue Qm_test

Screen output "Sample AMQSGET0 Start message

Third, uninstall MQ

1. Log in to the system as the root user

2. View the Queue Manager (1), stop all Queue Manager snooping (2), and stop all Queue Managers (3). Note: Queuemanagername is the name of the queue manager, and if there are multiple queue managers running, repeat the code below (2), (3).

1 DSPMQ 2 ENDMQLSR-m queuemanagername3 endmqm queuemanagername

3. Ensure that all MQ-related processes are stopped

1 PS grep MQ

4. Review which installation packages (1) are installed and remove all installation packages (2).

1 grep MQSeries 2 Rpm-ev mqseriesruntime-7.5. 0-2 mqseriessamples-7.5. 0-2 mqseriesserver-7.5. 0-2

  

WebSphere MQ Installation

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.