{"id":2607,"date":"2023-03-13T09:43:30","date_gmt":"2023-03-13T01:43:30","guid":{"rendered":"https:\/\/199604.com\/?p=2607"},"modified":"2023-03-13T09:43:30","modified_gmt":"2023-03-13T01:43:30","slug":"ibmmq-9-0-%e4%ba%8c%e8%bf%9b%e5%88%b6%e9%83%a8%e7%bd%b2","status":"publish","type":"post","link":"https:\/\/199604.com\/2607","title":{"rendered":"IBMmq 9.0 &#8211; \u4e8c\u8fdb\u5236\u90e8\u7f72"},"content":{"rendered":"<h1>IBMmq 9.0 &#8211; \u4e8c\u8fdb\u5236\u90e8\u7f72<\/h1>\n<h2>\u5b89\u88c5\u5fc5\u8981\u7ec4\u4ef6<\/h2>\n<p><code>yum -y install bc rpm-build<\/code><\/p>\n<h2>\u914d\u7f6e\u5185\u6838\u53c2\u6570<\/h2>\n<pre><code class=\"language-shell \">echo \"fs.file-max = 524288\" &gt;&gt;\/etc\/sysctl.conf\necho \"kernel.threads-max = 32768\" &gt;&gt;\/etc\/sysctl.conf\nsysctl -p \/etc\/sysctl.conf\n<\/code><\/pre>\n<h2>\u66f4\u6539 limits \u503c<\/h2>\n<pre><code class=\"language-shell \">echo \"mqm hard nofile 10240\" &gt;&gt;\/etc\/security\/limits.conf\necho \"mqm soft nofile 10240\" &gt;&gt;\/etc\/security\/limits.conf\necho \"mqm hard nproc 4096\" &gt;&gt;\/etc\/security\/limits.conf\necho \"mqm soft nproc 4096\" &gt;&gt;\/etc\/security\/limits.conf\n<\/code><\/pre>\n<h2>\u5b89\u88c5IBM MQ<\/h2>\n<p>\u4e0a\u4f20\u5b89\u88c5\u538b\u7f29\u5305<code>IBM_MQ_9.0.5.0_LINUX_X86-64.tar.gz<\/code>\u5230<code>\/usr\/local\/src<\/code><\/p>\n<pre><code class=\"language-shell \">tar -zxvf IBM_MQ_9.0.5.0_LINUX_X86-64.tar.gz\ncd MQServer\/\nmkdir \/opt\/mqm\nuseradd mqm\n.\/mqlicense.sh -accept\nrpm -ivh *.rpm\n\n#\u68c0\u67e5\u7cfb\u7edf\u8bbe\u7f6e\u662f\u5426\u6ee1\u8db3MQ\u7684\u5b89\u88c5\u8981\u6c42\nsu mqm -c \/opt\/mqm\/bin\/mqconfig\n\n==========================================================\nmqconfig: Analyzing CentOS Linux release 7.9.2009 (Core) settings for IBM\n          MQ V9.0\nSystem V Semaphores\n  semmsl     (sem:1)  250 semaphores                     IBM&gt;=32           PASS\n  semmns     (sem:2)  0 of 32000 semaphores      (0%)    IBM&gt;=4096         PASS\n  semopm     (sem:3)  32 operations                      IBM&gt;=32           PASS\n  semmni     (sem:4)  0 of 128 sets              (0%)    IBM&gt;=128          PASS\n\nSystem V Shared Memory\n  shmmax              18446744073692774399 bytes         IBM&gt;=268435456    PASS\n  shmmni              2 of 4096 sets             (0%)    IBM&gt;=4096         PASS\n  shmall              524 of 18446744073692774399 pages (0%)    IBM&gt;=2097152      PASS\n\nSystem Settings\n  file-max            5408 of 524288 files       (1%)    IBM&gt;=524288       PASS\n  pid_max             420 of 32768 processids    (1%)    IBM&gt;=32768        PASS\n  threads-max         420 of 32768 threads       (1%)    IBM&gt;=32768        PASS\n\nCurrent User Limits (mqm)\n  nofile       (-Hn)  10240 files                        IBM&gt;=10240        PASS\n  nofile       (-Sn)  10240 files                        IBM&gt;=10240        PASS\n  nproc        (-Hu)  9 of 4096 processes        (0%)    IBM&gt;=4096         PASS\n  nproc        (-Su)  9 of 4096 processes        (0%)    IBM&gt;=4096         PASS\n\nmqconfig: Any values listed in the \"Current User Limits\" section are resource\n          limits for the user who ran mqconfig.\n\n          If the user account that is used to invoke this script (mqm)\n          is not the same as the user account that is used to start the\n          queue manager, then the assessed values will not be accurate.\n\n          If you normally start your queue managers as the mqm user, you\n          should switch to mqm and run mqconfig there.\n\n          If other members of the mqm group also start queue managers, all\n          those members should run mqconfig, to ensure that their limits\n          are suitable for IBM MQ.\n\nmqconfig: A PASS score means your system meets the minimum IBM\n          recommendations but busy systems might need higher limits to run\n          production workloads.\n\n          For performance-critical environments, further performance testing\n          should always be conducted using workloads that are representative\n          of the real volume.\n==========================================================\n\n<\/code><\/pre>\n<h2>\u914d\u7f6e\u73af\u5883\u53d8\u91cf<\/h2>\n<p><code>echo \"PATH=$PATH:\/opt\/mqm\/bin\" &gt;&gt;\/etc\/profile<\/code><\/p>\n<h2>\u9a8c\u8bc1\u5b89\u88c5<\/h2>\n<blockquote><p>\n  \u6ce8\u610fMQ\u7ba1\u7406\u547d\u4ee4\u5fc5\u987b\u662f\u5c5e\u4e8emqm\u7ec4\u7684\u7528\u6237\u624d\u6709\u6743\u9650\u6267\u884c\uff0c\u9ed8\u8ba4\u521b\u5efa\u4e86mqm\u7528\u6237\n<\/p><\/blockquote>\n<pre><code class=\"language-shell \">su - mqm \n#\u8bbe\u7f6e\u53d8\u91cf\uff0c\u4ee5\u4fbf\u4f7f\u7528\u5404\u79cdMQ\u7ba1\u7406\u547d\u4ee4\n\/opt\/mqm\/bin\/setmqenv -s\n\n\n[mqm@localhost ~]$ dspmqver\nName:        IBM MQ\nVersion:     9.0.5.0\nLevel:       p905-L180305.1\nBuildType:   IKAP - (Production)\nPlatform:    IBM MQ for Linux (x86-64 platform)\nMode:        64-bit\nO\/S:         Linux 3.10.0-1160.el7.x86_64\nInstName:    Installation1\nInstDesc:\nPrimary:     No\nInstPath:    \/opt\/mqm\nDataPath:    \/var\/mqm\nMaxCmdLevel: 905\nLicenseType: Production\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>IBMmq 9.0 &#8211; \u4e8c\u8fdb\u5236\u90e8\u7f72 \u5b89\u88c5\u5fc5\u8981\u7ec4\u4ef6 yum -y install bc rpm-bu [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[260],"tags":[458],"class_list":["post-2607","post","type-post","status-publish","format-standard","hentry","category-linux","tag-ibmmq"],"_links":{"self":[{"href":"https:\/\/199604.com\/wp-json\/wp\/v2\/posts\/2607","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/199604.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/199604.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/199604.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/199604.com\/wp-json\/wp\/v2\/comments?post=2607"}],"version-history":[{"count":1,"href":"https:\/\/199604.com\/wp-json\/wp\/v2\/posts\/2607\/revisions"}],"predecessor-version":[{"id":2608,"href":"https:\/\/199604.com\/wp-json\/wp\/v2\/posts\/2607\/revisions\/2608"}],"wp:attachment":[{"href":"https:\/\/199604.com\/wp-json\/wp\/v2\/media?parent=2607"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/199604.com\/wp-json\/wp\/v2\/categories?post=2607"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/199604.com\/wp-json\/wp\/v2\/tags?post=2607"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}