{"id":7728,"date":"2018-10-03T07:42:56","date_gmt":"2018-10-02T23:42:56","guid":{"rendered":"http:\/\/rmohan.com\/?p=7728"},"modified":"2018-10-03T07:42:56","modified_gmt":"2018-10-02T23:42:56","slug":"ibm-mq-7-5-developer-edition-installation-configuration","status":"publish","type":"post","link":"https:\/\/mohan.sg\/?p=7728","title":{"rendered":"IBM MQ 7.5 Developer Edition installation configuration"},"content":{"rendered":"<p><strong>IBM MQ 7.5 Developer Edition installation configuration<\/strong><\/p>\n<p>Download the development version here<\/p>\n<p>Download address: https:\/\/www.ibm.com\/developerworks\/cn\/downloads\/ws\/wmq\/<\/p>\n<p>Environment CentOS 7.4 x64<\/p>\n<p>1. Preparation before installation<\/p>\n<p>[root@236 ~]# mkdir mq<br \/>\n#Create a new installation directory [root@236 ~]# tar -xzf mqadv_dev75_linux_x86-64.tar.gz -C mq #Unpack<br \/>\n[root@236 ~]# ls mq<br \/>\ncopyright MQSeriesFTAgent-7.5. 0-2.x86_64.rpm MQSeriesMan-7.5.0-2.x86_64.rpm MQSeriesMsg_ko-7.5.0-2.x86_64.rpm MQSeriesSDK-7.5.0-2.x86_64.rpm<br \/>\ncrtmqpkg MQSeriesFTBase-7.5.0-2.x86_64 .rpm MQSeriesMsg_cs-7.5.0-2.x86_64.rpm MQSeriesMsg_pl-7.5.0-2.x86_64.rpm MQSeriesServer-7.5.0-2.x86_64.rpm<br \/>\nlap MQSeriesFTLogger-7.5.0-2.x86_64.rpm MQSeriesMsg_de-7.5 .0-2.x86_64.rpm MQSeriesMsg_pt-7.5.0-2.x86_64.rpm MQSeriesXRClients-7.5.0-2.x86_64.rpm<br \/>\nlicenses MQSeriesFTService-7.5.0-2.x86_64.rpm MQSeriesMsg_es-7.5.0-2.x86_64.rpm MQSeriesMsg_ru-7.5.0-2.x86_64.rpm MQSeriesXRService-7.5.0-2.x86_64.rpm<br \/>\nmqlicense.sh MQSeriesFTTools-7.5.0-2.x86_64.rpm MQSeriesMsg_fr-7.5.0-2.x86_64.rpm MQSeriesMsg_Zh_CN-7.5.0-2.x86_64.rpm PreReqs<br \/>\nMQSeriesAMS-7.5.0-2.x86_64.rpm MQSeriesGSKit-7.5.0-2.x86_64.rpm MQSeriesMsg_hu-7.5.0-2.x86_64.rpm MQSeriesMsg_Zh_TW-7.5.0-2.x86_64.rpm READMEs<br \/>\nMQSeriesClient-7.5.0-2.x86_64.rpm MQSeriesJava-7.5.0-2.x86_64.rpm MQSeriesMsg_it-7.5.0-2.x86_64.rpm MQSeriesRuntime-7.5.0-2.x86_64.rpm repackage<br \/>\nMQSeriesExplorer-7.5.0-2.x86_64.rpm MQSeriesJRE-7.5.0-2.x86_64.rpm MQSeriesMsg_ja-7.5.0-2.x86_64.rpm MQSeriesSamples-7.5.0-2.x86_64.rpm<\/p>\n<p>Run the license, choose 1 to agree<\/p>\n<p>.\/mqlicense.sh<\/p>\n<p>Install MQ Server<\/p>\n<p>[root@236 mq]# rpm -ivh MQSeriesRuntime-7.5.0-2.x86_64.rpm #??MQ Runtime<br \/>\nPreparing&#8230; ################################# [100%]<br \/>\nCreating group mqm<br \/>\nCreating user mqm<br \/>\nUpdating \/ installing&#8230;<br \/>\n1:MQSeriesRuntime-7.5.0-2 ################################# [100%]<\/p>\n<p>[root@236 mq]# rpm -ivh MQSeriesSamples-7.5.0-2.x86_64.rpm ##??MQ Samples<br \/>\nPreparing&#8230; ################################# [100%]<br \/>\nUpdating \/ installing&#8230;<br \/>\n1:MQSeriesSamples-7.5.0-2 ################################# [100%]<\/p>\n<p>[root@236 mq]# rpm -ivh MQSeriesServer-7.5.0-2.x86_64.rpm #??MQ server<br \/>\nPreparing&#8230; ################################# [100%]<br \/>\nUpdating \/ installing&#8230;<br \/>\n1:MQSeriesServer-7.5.0-2 ################################# [100%]<\/p>\n<p>After the installation has completed, run the &#8216;\/opt\/mqm\/bin\/mqconfig&#8217;<br \/>\ncommand, using the &#8216;mqm&#8217; user ID.<\/p>\n<p>For example, execute the following statement when running as the &#8216;root&#8217; user:<\/p>\n<p>su mqm -c &#8220;\/opt\/mqm\/bin\/mqconfig&#8221;<\/p>\n<p>The &#8216;mqconfig&#8217; command validates that the system configuration satisfies the<br \/>\nrequirements for WebSphere MQ, and ensures that the settings for the &#8216;mqm&#8217;<br \/>\nuser ID are suitably configured. Other WebSphere MQ administrators in the<br \/>\n&#8216;mqm&#8217; group can run this command to ensure their user limits are also<br \/>\nproperly configured to use WebSphere MQ.<\/p>\n<p>If &#8216;mqconfig&#8217; indicates that any of the requirements have not been met,<br \/>\nconsult the installation section within the WebSphere MQ Information Center<br \/>\nfor details about how to configure the system and user limits.<\/p>\n<p>Then follow the prompts and execute the command to check if the environment is allowed.<\/p>\n<p>First check, prompting for missing bc<\/p>\n<p>[root@236 mq]# su mqm -c &#8220;\/opt\/mqm\/bin\/mqconfig&#8221;<br \/>\nmqconfig: Analyzing CentOS Linux release 7.4.1708 (Core) settings for<br \/>\nWebSphere MQ V7.5<br \/>\nmqconfig: The bc program was not found on this system. Please install bc<br \/>\nand try running mqconfig again.<\/p>\n<p>Install bc<\/p>\n<p>[root@236 mq]# yum install -y bc<\/p>\n<p><a href=\"http:\/\/rmohan.com\/wp-content\/uploads\/2018\/10\/mq1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-7729\" src=\"http:\/\/rmohan.com\/wp-content\/uploads\/2018\/10\/mq1.png\" alt=\"\" width=\"598\" height=\"364\" srcset=\"https:\/\/mohan.sg\/wp-content\/uploads\/2018\/10\/mq1.png 598w, https:\/\/mohan.sg\/wp-content\/uploads\/2018\/10\/mq1-300x183.png 300w, https:\/\/mohan.sg\/wp-content\/uploads\/2018\/10\/mq1-150x91.png 150w, https:\/\/mohan.sg\/wp-content\/uploads\/2018\/10\/mq1-400x243.png 400w\" sizes=\"(max-width: 598px) 100vw, 598px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>Second inspection<\/p>\n<p>There are several fail to resolve, refer to the documentation: https:\/\/www.ibm.com\/support\/knowledgecenter\/en\/SSFKSJ_9.0.0\/com.ibm.mq.ins.doc\/q008550_.htm<\/p>\n<p>Modify kernel parameters<\/p>\n<p>Edit \/sysctl.conf and add the following configuration<\/p>\n<p>[root @ 236 mq] # vim \/etc\/sysctl.conf<\/p>\n<p>kernel.sem = 500 256000 250 1024<\/p>\n<p>net.ipv4.tcp_keepalive_time = 300<\/p>\n<p>fs.file-max = 524288<\/p>\n<p>Write configuration<\/p>\n<p>[root@236 mq]# sysctl -p<\/p>\n<p>Third check<\/p>\n<p>2 files left to be solved<\/p>\n<p>Edit limit.conf<\/p>\n<p>[root @ 236 mq] # vim \/etc\/security\/limits.conf<\/p>\n<p>Add two lines<\/p>\n<p>mqm hard capsule 10240<br \/>\nmqm soft capsule 10240<\/p>\n<p>The fourth inspection passed<\/p>\n<p>Modify environment variables<\/p>\n<p>Since mq is installed in the \/opt\/mqm directory by default, you will not find the mq related command after the installation is complete. You need to configure the environment variable to find it.<\/p>\n<p>Vim \/etc\/profile #Add the following line<\/p>\n<p>PATH=\/opt\/mqm\/bin:\/opt\/mqm\/samp\/bin\/:$PATH<\/p>\n<p>The installation is complete<\/p>\n<p>2, start the instance<\/p>\n<p>Switch to mqm user startup<\/p>\n<p>[root @ 236 mq] # su mqm<br \/>\nbash-4.2 $<\/p>\n<p>Create a default instance<\/p>\n<p>bash-4.2$ crtmqm -q oe<br \/>\nWebSphere MQ queue manager created.<br \/>\nDirectory &#8216;\/var\/mqm\/qmgrs\/oe&#8217; created.<br \/>\nThe queue manager is associated with installation &#8216;Installation1&#8217;.<br \/>\nCreating or replacing default objects for queue manager &#8216;oe&#8217;.<br \/>\nDefault objects statistics : 74 created. 0 replaced. 0 failed.<br \/>\nCompleting setup.<br \/>\nSetup completed.<\/p>\n<p>View the instance, the status is extended<\/p>\n<p>bash-4.2$ dspmq<br \/>\nQMNAME(oe) STATUS(Ended immediately)<\/p>\n<p>Start instance<\/p>\n<p>bash-4.2$ strmqm oe<br \/>\nWebSphere MQ queue manager &#8216;oe&#8217; starting.<br \/>\nThe queue manager is associated with installation &#8216;Installation1&#8217;.<br \/>\n5 log records accessed on queue manager &#8216;oe&#8217; during the log replay phase.<br \/>\nLog replay for queue manager &#8216;oe&#8217; complete.<br \/>\nTransaction manager state recovered for queue manager &#8216;oe&#8217;.<br \/>\nWebSphere MQ queue manager &#8216;oe&#8217; started using V7.5.0.2.<\/p>\n<p><a href=\"http:\/\/rmohan.com\/wp-content\/uploads\/2018\/10\/mq2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-7730\" src=\"http:\/\/rmohan.com\/wp-content\/uploads\/2018\/10\/mq2.png\" alt=\"\" width=\"564\" height=\"364\" srcset=\"https:\/\/mohan.sg\/wp-content\/uploads\/2018\/10\/mq2.png 564w, https:\/\/mohan.sg\/wp-content\/uploads\/2018\/10\/mq2-300x194.png 300w, https:\/\/mohan.sg\/wp-content\/uploads\/2018\/10\/mq2-150x97.png 150w, https:\/\/mohan.sg\/wp-content\/uploads\/2018\/10\/mq2-400x258.png 400w\" sizes=\"(max-width: 564px) 100vw, 564px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>Create a queue named test<\/p>\n<p>bash-4.2$ runmqsc oe<br \/>\n5724-H72 (C) Copyright IBM Corp. 1994, 2011. ALL RIGHTS RESERVED.<br \/>\nStarting MQSC for queue manager oe.<\/p>\n<p>define qlocal(test)<br \/>\n1 : define qlocal(test)<br \/>\nAMQ8006: WebSphere MQ queue created.<br \/>\nend<br \/>\n2 : end<br \/>\nOne MQSC command read.<br \/>\nNo commands have a syntax error.<br \/>\nAll valid MQSC commands were processed.<\/p>\n<p>Send message test, error 2085<\/p>\n<p>bash-4.2$ amqsput Test oe<br \/>\nSample AMQSPUT0 start<br \/>\ntarget queue is Test<br \/>\nMQOPEN ended with reason code 2085<br \/>\nunable to open queue for output<br \/>\nSample AMQSPUT0 end<\/p>\n<p>Later, I found that the queue could not be lowercase. The test queue was converted to uppercase. It is recommended that the queue name be set to uppercase, resend the message test, and press twice to confirm the input.<\/p>\n<p>bash-4.2$ amqsput TEST oe<br \/>\nSample AMQSPUT0 start<br \/>\ntarget queue is TEST<br \/>\nhello world!<\/p>\n<p>Sample AMQSPUT0 end<\/p>\n<p>Receive a message and accept success<\/p>\n<p>bash-4.2$ amqsget TEST oe<br \/>\nSample AMQSGET0 start<br \/>\nmessage &lt;hello world!&gt;<\/p>\n<p>Start port listening<\/p>\n<p>bash-4.2$ runmqlsr -t tcp -p 2424 -m oe &amp;<br \/>\n[1] 5067<br \/>\nbash-4.2$ 5724-H72 (C) Copyright IBM Corp. 1994, 2011. ALL RIGHTS RESERVED.<\/p>\n<p>Successful startup<\/p>\n<p>bash-4.2$ netstat -tpln | grep 2424<br \/>\n(Not all processes could be identified, non-owned process info<br \/>\nwill not be shown, you would have to be root to see it all.)<br \/>\ntcp6 0 0 :::2424 :::* LISTEN 5067\/runmqlsr<\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"http:\/\/rmohan.com\/wp-content\/uploads\/2018\/10\/mq3.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-7731\" src=\"http:\/\/rmohan.com\/wp-content\/uploads\/2018\/10\/mq3.png\" alt=\"\" width=\"568\" height=\"363\" srcset=\"https:\/\/mohan.sg\/wp-content\/uploads\/2018\/10\/mq3.png 568w, https:\/\/mohan.sg\/wp-content\/uploads\/2018\/10\/mq3-300x192.png 300w, https:\/\/mohan.sg\/wp-content\/uploads\/2018\/10\/mq3-150x96.png 150w, https:\/\/mohan.sg\/wp-content\/uploads\/2018\/10\/mq3-400x256.png 400w\" sizes=\"(max-width: 568px) 100vw, 568px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>IBM MQ 7.5 Developer Edition installation configuration<\/p>\n<p>Download the development version here<\/p>\n<p>Download address: https:\/\/www.ibm.com\/developerworks\/cn\/downloads\/ws\/wmq\/<\/p>\n<p>Environment CentOS 7.4 x64<\/p>\n<p>1. Preparation before installation<\/p>\n<p>[root@236 ~]# mkdir mq #Create a new installation directory [root@236 ~]# tar -xzf mqadv_dev75_linux_x86-64.tar.gz -C mq #Unpack [root@236 ~]# ls mq copyright MQSeriesFTAgent-7.5. 0-2.x86_64.rpm MQSeriesMan-7.5.0-2.x86_64.rpm MQSeriesMsg_ko-7.5.0-2.x86_64.rpm MQSeriesSDK-7.5.0-2.x86_64.rpm crtmqpkg MQSeriesFTBase-7.5.0-2.x86_64 .rpm MQSeriesMsg_cs-7.5.0-2.x86_64.rpm MQSeriesMsg_pl-7.5.0-2.x86_64.rpm [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[57],"tags":[],"_links":{"self":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/7728"}],"collection":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=7728"}],"version-history":[{"count":1,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/7728\/revisions"}],"predecessor-version":[{"id":7732,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/7728\/revisions\/7732"}],"wp:attachment":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=7728"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=7728"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=7728"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}