MQ for Linux install and uninstall "Go"

Source: Internet
Author: User
Tags mqseries

MQ for Linux install and uninstall "Go"

First, installation steps:
1. Log in to the system with the root account
2. The MQ installer needs to install the code under directory/OPT/MQM, save the data to the directory/VAR/MQM, and make sure that there is enough disk space in the relevant directory
3. Create a group and user named "MQM" and specify the user's directory as/VAR/MQM
Set up a user group MQM, note: The group name must be MQM
Groupadd MQM
Create a user MQM that belongs to the group MQM, note: The user name must be MQM

useradd-d/var/mqm-g MQM MQM
//Modify the password for the user MQM
passwd MQM
4. Unzip wmqv600trial-x86_linux_2.tar.gz
//Unzip file
Tar xvzf wmqv600trial-x86_linux_2.tar.gz
5. Install
in the installation file decompression directory
//Accept MQ License
./mqlicense.sh–accept
//install
RPM-IVH mqseriesruntime-6.0.0-0.i386.rpm mqseriesserver-6.0.0-0.i386.rpm mqseriessamples-6.0.0-0.i386.rpm
Second, after installation, verify that the installation is successful, perform the following steps sequentially:
1. Log in to the system with the MQM account
2. Create a test Queue Manager and queue
Crtmqm-q Venus.queue.manager # #创建缺省队列
STRMQM # #后面不跟队列管理器的名称则启动缺省队列管理器
RUNMQSC # #后面不跟队列管理器的名称则进入缺省队列管理器的控制台
Define qlocal (orange.queue)
End
3. Send a message to queue Orange.queue with a test program
// Switch to the/opt/mqm/samp/bin directory under
./amqsput ORANGE. Queue # #后面不跟队列管理器的名称则表示针对缺省队列管理器中的队列操作
//Screen output "Sample AMQSPUT0 start target queue is ORANGE. QUEUE ", manually input test message: This is a test,//input completed, press two times the ENTER key, the message input is complete. The screen output "Sample AMQSPUT0 End" indicates that the message was sent successfully.

4. Reading messages from the queue
Switch to the/opt/mqm/samp/bin directory
./amqsget ORANGE. QUEUE # #后面不跟队列管理器的名称则表示针对缺省队列管理器中的队列操作
Screen Output "Sample AMQSGET0 Start message <this is a test>", pause for a few seconds screen continue output "no more messages
Sample AMQSGET0 End ", read message succeeded.
Third, uninstall
1. Log in to the system with the root account
2. Stop all Queue Managers
To view a running Queue Manager
Dspmq
Stop all listener related to Queue Manager, note: Queuemanagername is queue Queue Manager name, specific name yongming//Make DSPMQ query
Endmqlsr-m Queuemanagername
To stop all running queue managers
ENDMQM Queuemanagername
Verify that all MQ-related processes have been stopped
Ps-ef | grep MQ
3. Remove the installation package
View installed those related packages
Rpm-q-A | grep MQSeries
Remove all installed packages at once, the following command is just an example, the package name behind the command is the command "Rpm-q-a | grep MQSeries "//query for all package names, separated by a space between package names,
Rpm-ev mqseriesruntime-6.0.0-0 mqseriesserver-6.0.0-0 mqseriesserver-6.0.0-0

MQ for Linux install and uninstall "Go"

Related Article

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.