1, check the operating system and memory conditions: lsb_release-a;
2 Checking the Java environment: Java-version
3 Create new user spaces, users, and groups:
Create a user Directory
Mkdir/home/mqm
Create a user group
Groupadd MQM
Create user
Useradd-g mqm-d/home/mqm-m-s/bin/bash MQM
4 Create the MQ installation folder:
Change directory Permissions
Chown-r MQM:MQM/HOME/MQM
Create an MQ installation location and workspace
MKDIR/OPT/MQM (Installation directory)
MKDIR/VAR/MQM (Data Catalog)
Mkdir/var/mqm/log (log directory)
Mkdir/var/mqm/errors (Error directory)
Chown-r MQM:MQM/OPT/MQM
Chown-r MQM:MQM/VAR/MQM
(3) VI mqlicense.sh
Under the Setjre
Jre= Directory +/bin/java
Path= $PATH:/bin:/usr/local/bin:/usr/bin:/usr/sbin:/etc:/opt/mqm/bin:.
Export PATH
Mqm_home=/opt/mqm
Export Mqm_home
Classpath= $MQM _home/java/lib/com.ibm.mq.jar: $MQM _home/java/lib/com.ibm.mqbind.jar: $MQM _home/java/lib/ Com.ibm.mqjms.jar: $MQM _home/java/lib/jms.jar: $MQM _home/java/lib/jms.jar: $MQM _home/java/lib/jndi.jar: $MQM _home/ Java/lib/jta.jar: $MQM _home/java/lib/ldap.jar: $MQM _home/java/lib/connector.jar: $MQM _home/java/lib/fscontext.jar : $MQM _home/java/lib/postcard.jar: $MQM _home/java/lib/providerutil.jar: $CLASSPATH
Export CLASSPATH
(4) Unpack the installation package in the/HOME/MQM space and perform the following installation:
RPM-IVH mqseriesruntime-6.0.1-0.x86_64.rpm
RPM-IVH mqseriesserver-6.0.1-0.x86_64.rpm
RPM-IVH mqseriessdk-6.0.1-0.x86_64.rpm
RPM-IVH mqseriessamples-6.0.1-0.x86_64.rpm
RPM-IVH mqseriesjava-6.0.1-0.x86_64.rpm
RPM-IVH mqseriesclient-6.0.1-0.x86_64.rpm
Installation verification:
Rpm-qa |grep MQSeries
(5) MQ configuration:
Create Queue Manager: CRTMQM Queue Manager Name
Start Queue Manager: STRMQM Queue Manager name
Account STRMQBRK Agent: Strmqmbrk-m Queue Manager Name
Access to MQ console: RUNMQSC Queue Manager Name
Define pipeline: Define channel (CH1) Chltype (SVRCONN) trptype (' MQM ')
Exit the console: End
To establish the Queue Manager basic queues:
Performed under the MQ installation directory Java/bin: RUNMQSC GCP_QM < MQJMS_PSQ.MQSC, establishing some basic queue
Create other required queue
DEFINE qlocal (TEST_MQ_LOCALQ1) REPLACE defpsist (NO) MAXDEPTH (1000)//Create local queue
DEFINE Qmodel (TEST _me_modelq1) reptype (Permdyn) defpsist (NO) MAXDEPTH (+) SHARE REPLACE
Start monitoring:
Runmqlsr-m Queue Manager Name-T tcp-p Port number
To view the Queue Manager character set:
Dis qmgr
To modify a character set:
Alter Qmgr CCSID (character set number);
Stop Queue Manager after modification: Endmqm–i Queue Manager name s
Restart the Queue Manager: STRMQM Queue manager name.
---------------------------
Turn on the view agent's running state:
Strmqbrk-m Queue Manager Name
Dspmqbrk-m Queue Manager Name
Common commands for the management console:
Go to admin console: RUNMQSC Queue Manager Name
View information about a channel
DISPLAY Channel (channel name)//channel named CH1,CH2, etc.
To view the Queue Manager status and close the queue Manager:
View: DSPMQ
Close the Queue Manager: Endmqm-i Queue Manager Name
To delete and create a channel:
Executing in the admin console
Go to admin console: RUNMQSC Queue Manager Name
Delete Channels: Delete channels (channel name)
New channel: Define channel name Chltype (SVRCONN) trptype (TCP) mcauser (' MQM ')
To display all queues in the Queue Manager:
Dis Q (*)
To view the details of a specified queue:
Dis q (queue name)///For example TEST1.Q
Ext.: http://blog.csdn.net/soa20100121soft/article/details/7722749