Install WebSphere Mq__web on Ubuntu

Source: Internet
Author: User
Tags mqseries
Install WebSphere MQ 1 on Ubuntu. Download WebSphere MQ6 tar.gz (wmqv6023trial-x86_linux_2.tar.gz) 2. Run TAR-ZXVF wmqv6023trial-x86_linux_2.tar.gz 3. Create MQ user and Group:groupadd MQM useradd-d/var/mqm-g mqm-g MQM MQM # Change Password to "MQM" passwd MQM 4. Add MQM to root group cd/etc VI Group Search MQM:X:1003:MQM then add ", root",--: mqm:x:1003:mqm,root 5. Install rpm sudo apt-get Install rpm 6. Switch to MQ folder, get WebSphere MQ License:sudo./mqlicense.sh-text_only 7. Install WebSphere MQ Client and server:sudo rpm--NODEPS-IVH mqseriesruntime-6.0.2-3.i386.rpm sudo rpm--NODEPS-IVH MQS eriesjava-6.0.2-3.i386.rpm sudo rpm--nodeps-ivh mqseriesclient-6.0.2-3.i386.rpm sudo rpm--NODEPS-IVH mqseriessamples-6.0.2-3.i386.rpm sudo rpm--NODEPS-IVH mqseriesserver-6.0.2-3.i386.rpm 8. Verify Installation Rpm-qa | grep MQSeries mqseriesjava-6.0.2-3 mqseriessamples-6.0.2-3 mqseriesruntime-6.0.2-3 mqseriesclient-6.0.2-3 Mqseriesserver-6.0.2-3 9. Create default Qmanager and QManager sudo-u MQM crtmqm-q qmgrname sudo-u MQM strmqm sudo-u MQM CRTMQM QManagerD1 sudo-u MQM crtmqm QManagerD2 sudo -U MQM crtmqm QManagerD3 sudo-u MQM crtmqm QManagerD4 sudo-u MQM crtmqm QManagerD5 10. Start Qmanager, and create Queue sudo./qq 11. Uninstall MQ (If MQ has expired, we need to Uninstall MQ.) #To list the installed packages Rpm-qa | grep MQSeries mqseriesjava-6.0.2-3 mqseriessamples-6.0.2-3 mqseriesruntime-6.0.2-3 mqseriesclient-6.0.2-3 Mqseriesserver-6.0.2-3 #To Remove the packages one by one (There could have dependency when uninstall, just try to remove Other one) sudo rpm–e package_name 1: Creating the Queue Manager Crtmqm–q qmgrname-q means creating the default queue Manager. For example:root@localhost:/apps# Su MQM $ crtmqm-q QMGR WebSphere MQ Queue Manager created. Directory '/var/mqm/qmgrs/qmgr ' created. Creating or replacing default objects for QMGR. Default objects Statistics:65 created. 0 replaced. 0 failed. Completing Setup. Setup completed. 2: Delete Queue Manager dltmqm Qmgrname 3: Start Queue Manager STRMQM QMgrname If you start the default Queue manager, you can stop the queue Manager ENDMQM Qmgrname a controlled stop endmqm–i qmgrname immediately stop endmqm–p qmgrname Force stop 5: Show Queue Manager D Spmq–m qmgrname If you enter DSPMQ, the default queue manager is displayed. 6: Run MQSeries Command RUNMQSC Qmgrname If it is the default queue manager, you can leave the message in the queue without its name 7: Amqsput QName qmgrname If the queue is a queue in the default Queue manager, you can have the name of the queue manager without it To remove a message from a queue amqsget QName qmgrname If the queue is a queue in the default Queue manager, you can have the name of the queue manager without it 8: Boot channel runmqchl–c chlname–m qmgrname start listening runmqlsr–t TYP E–p port–m qmgrname Stop listening endmqlsr-m Qmgrname 9: Define dead-letter queues DEFINE qlocal (QNAME) defpsist (YES) REPLACE set Queue Manager dead-letter queue ALTER QM The GR DEADQ (QNAME) defines the local queue DEFINE QL (QNAME) REPLACE definition alias queue DEFINE QALIAS (qaliasname) targq (QNAME) remote queue definition DEFINE qremote (qrname ) + rname (AAA) rqmname (qmgrname) + XMITQ (qtname) defines a model queue DEFINE Qmodel (QNAME) Deftype (Tempdyn) defines a local transport queue DEFINE qlocal (Qtnam E) USAGE (XMITQ) defpsist (YES) + INITQ (SYSTEM.CHANNEL.INITQ) + PROCESS (processname) REPLACE 10: Create a sender channel DEFINE CHANNEL (Sdrname) Chltype (SDR) + CONNAME (' 100.100.100.215 (1418) ') XMITQ (qtname) REPLACE Chltype can be: SDR, SVR, RCVR, RQSTR, CLNTCOnn, Svrconn, CLUSSDR and CLUSRCVR. Create a receiver channel DEFINE CHANNEL (Sdr_ TEST) chltype (RCVR) Replace create server connection channel DEFINE CHANNEL (svrconnname) chltype (svrconn) Replace display All properties of the queue display queue (QNAME) [all] Displays the selected properties of the queue the display queue (QNAME) Descr get put display queue (QNAME) MAXDEPTH curdepth displays queues All properties of the manager display QMGR [all] show process definition display processes (PRONAME) change properties alter QMGR DESCR (' NEW DESCRIPTION ') alter Qlocal (QNAME) P UT (DISABLED) ALTER QALIAS (QNAME) targq (targqname) deletes queues delete qlocal (QNAME) Delete qremote (qrname) clears all messages in the queue clear Qloca L (QNAME)

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.