http://www.ibm.com/developerworks/downloads/ws/wmq/?S_TACT=105AGX10&S_CMP=LP
からダウンロードした
WebSphere MQ V7.0 90 day trial Version 7.0 for Sun Solaris 10 x86-64
を Solaris 10 x86-32 にインストールしてみたら動いた。
- OSグループ・OSユーザを作成する。
# groupadd -g 601 mqm # useradd -u 601 -d /var/mqm -g mqm mqm # useradd -u 602 -d /var/crtmqm -g mqm crtmqm # useradd -u 603 -d /var/strmqm strmqm -g mqm strmqm # mkdir /var/{mqm,crtmqm,strmqm} # chown mqm:mqm /var/mqm # chown crtmqm:mqm /var/crtmqm # chown strmqm:mqm /var/strmqm
- Resource limitの設定を行う。
# projadd -c "WebSphere MQ default settings" \ -K "process.max-file-descriptor=(basic,10000,deny)" \ -K "project.max-shm-memory=(priv,4GB,deny)" \ -K "project.max-shm-ids=(priv,1024,deny)" \ -K "project.max-sem-ids=(priv,1024,deny)" group.mqm # projects -l
- WMQ Server をインストールする
# mkdir /var/mqm/software/WMQv700Trial-amd64_solaris/ # zcat WMQv700Trial-amd64_solaris.tar.Z | tar xvf - # ./mqlicense.sh -text_only 1<RETURN> # pkgadd -d. The following packages are available: 1 gsk7bas Certificate and SSL Base Runtime (gsk7bas) (i386) 7.0.4.14 2 gsk7bas64 Certificate and SSL Base Runtime (gsk7bas64) (i386) 7.0.4.14 3 mqm WebSphere MQ for Sun Solaris (x86_64) 7.0.0.0 Select package(s) you wish to process (or 'all' to process all packages). (default: all) [?,??,q]: all<RETURN> ... You do not appear to have a /var/mqm filesystem mounted. It is recommended that you create and mount separate /var/mqm and /var/mqm/log filesystems before installation. Continue installation? [y,n,q] : y<RETURN> 1) WebSphere MQ Server 2) Man pages 3) Sample programs 4) WebSphere MQ Client libraries ( including Java, JMS and Web Services support) 5) IBM (c) SDK for Solaris(TM), Java(TM) 2 Technology Edition, Version 5 6) IBM (c) Java runtime for Solaris(TM), Java(TM) 2 Technology Edition, Version 5 7) WebSphere MQ Extended Transactional Client 8) Spanish message catalog 9) French message catalog 10) German message catalog 11) Japanese message catalog 12) Italian message catalog 13) Brazilian Portuguese message catalog 14) Traditional Chinese message catalog 15) Simplified Chinese message catalog 16) Korean message catalog 17) Russian message catalog 18) Hungarian message catalog 19) Polish message catalog 20) Czech message catalog Enter options to be installed [1-20,all,q,?] all<RETURN> ... The following files are being installed with setuid and/or setgid permissions: /opt/mqm/bin/amqcrsta_nd <setuid mqm setgid mqm> /opt/mqm/bin/amqfcxba <setuid mqm setgid mqm> /opt/mqm/bin/amqfqpub <setuid mqm setgid mqm> /opt/mqm/bin/amqharmx <setuid mqm setgid mqm> /opt/mqm/bin/amqhasmx <setuid mqm setgid mqm> /opt/mqm/bin/amqldmpa <setuid mqm setgid mqm> /opt/mqm/bin/amqpcsea <setuid mqm setgid mqm> /opt/mqm/bin/amqrcmla <setuid mqm setgid mqm> /opt/mqm/bin/amqrdbgm <setuid mqm setgid mqm> /opt/mqm/bin/amqrfdm <setuid mqm setgid mqm> /opt/mqm/bin/amqrmppa <setuid mqm setgid mqm> /opt/mqm/bin/amqrrmfa <setuid mqm setgid mqm> /opt/mqm/bin/amqxmsg0 <setuid mqm setgid mqm> /opt/mqm/bin/amqzdmaa <setuid mqm setgid mqm> /opt/mqm/bin/amqzfuma <setuid mqm setgid mqm> /opt/mqm/bin/amqzlaa0_nd <setuid mqm setgid mqm> /opt/mqm/bin/amqzllp0 <setuid mqm setgid mqm> /opt/mqm/bin/amqzlsa0_nd <setuid mqm setgid mqm> /opt/mqm/bin/amqzlwa0 <setuid mqm setgid mqm> [Hit <RETURN> to continue display] <RETURN> ... Do you want to install these as setuid/setgid files [y,n,?,q] y<RETURN> ... This package contains scripts which will be executed with super-user permission during the process of installing this package. Do you want to continue with the installation of <mqm> [y,n,?] y<RETURN> ... Installation of <mqm> was successful.
- 動作確認する。
# su - mqm $ bash $ crtmqm -q saturn.queue.manager $ strmqm $ runmqsc : define qlocal (queue1) : define channel (channel1) chltype (svrconn) trptype (tcp) mcauser ('mqm') : define listener (listener1) trptype (tcp) control (qmgr) : start listener (listener1) : end $ export MQSERVER='CHANNEL1/TCP/192.168.45.101(1414)' $ cd /opt/mqm/samp/bin $ ./amqsputc QUEUE1 saturn.queue.manager test<RETURN> <RETURN> $ ./amqsgetc QUEUE1 saturn.queue.manager ample AMQSGET0 start message <test> no more messages Sample AMQSGET0 end
- 動作確認後設定を削除する
$ runmqsc : alter channel(channel1) chltype (svrconn) mcauser(' ') : end
[参考]
IBM Knowledge Center