吃饭的时候吃饭,睡觉的时候睡觉,工作的时候工作,学习的时候学习......
❝ AIX6.1下TLQ6.3的安装过程 ❞
作者:彭新 日期:2014-05-12 分类:TLQ 点击: 来源:www.wo81.com

转载声明:本站文章若无特别说明,皆为原创,转载请注明来源,谢谢 !

1、拿到TLQ6.3 for AIX的安装光盘,共两张盘,第一张是安装介质和license,第二张是TLQ的手册。
第一张安装介质盘的文件有如下7个:
2012/09/21  00:00         4,513,683 R_TLQ6.3.14.5_AIX5.1_32.tar.Z
2013/03/20  00:00         4,542,007 R_TLQ6.3.14.8_AIX53_32.tar.Z
2013/05/31  00:00         5,167,083 R_TLQ6.3.14.9_AIX61_32.tar.Z
2012/09/21  00:00         1,192,913 R_TLQCli6.3.14.5_AIX5.1_32.tar.Z
2013/03/20  00:00         1,203,541 R_TLQCli6.3.14.8_AIX53_32.tar.Z
2013/05/31  00:00         1,268,135 R_TLQCli6.3.14.9_AIX61_32.tar.Z
2014/04/21  16:13               261 TlqLicense
第二张手册盘的文件有如下9个:
2006/08/02  13:39         1,324,854 JMS for TongLINKQ6.3管理与开发手册.pdf
2006/08/02  13:47           178,304 TLQ6.3安全出口使用和编写指南.pdf
2006/08/02  13:50           135,448 TLQ63新增API接口函数.pdf
2006/08/02  14:10           697,074 TongLINKQ6.2客户端开发手册.pdf
2006/08/02  14:04           894,717 TongLinkQ6.2管理工具.pdf
2006/08/02  14:14           466,875 TongLinkQ6.2系统概述.pdf
2006/08/02  14:18           686,637 TongLinkQ6.2系统管理.pdf
2006/08/02  13:58           508,908 TongLinkQ6.2编程参考.pdf
2006/08/02  14:19            63,264 发送队列合并方式的使用说明.pdf
2、创建tlq文件系统(建议单独创建,可选)
文件系统类型:jfs2
卷组:rootvg
文件系统大小:5G
挂载点:/tlq   注:也有使用/home/tlq的,如需使用/home/tlq,请将后面的/tlq都改成/home/tlq
开机自动挂载:yes
实现:
# crfs -v jfs2 -g'datavg' -a size='5G' -m '/tlq' -A'yes'
或者 smit fs创建
3、创建tlq用户和tlq用户组
创建tlq用户组:
系统分配GID:mkgroup -'A' tlq
指定GID:mkgroup -'A' id='363' tlq
创建tlq用户:
系统分配UID:mkuser pgrp='tlq' home='/tlq' tlq
指定UID:mkuser id='369' pgrp='tlq' home='/tlq'tlq
实际环境一般都需要将tlq用户加入其他用户组,如下示例:
创建时指定groups:mkuser id='369' pgrp='tlq' groups='grp1,grp2' home='/tlq' tlq
已经创建了tlq用户,然后将tlq用户加入组:
chgrpmem -m + tlq grp1
chgrpmem -m + tlq grp2
也可能需要将grp1,grp2加入到tlq用户组
chgrpmem -m + usr1 tlq
chgrpmem -m + usr2 tlq
4、将TLQ安装包R_TLQ6.3.14.9_AIX61_32.tar.Z和TLQ许可证文件TlqLicense上传到/tlq
5、解压与解包:R_TLQ6.3.14.9_AIX61_32.tar.Z
# uncompress R_TLQ6.3.14.9_AIX61_32.tar.Z
# tar xvf *.tar
x ./TLQ63/bin
x ./TLQ63/bin/changepwd, 240004 bytes, 469 media blocks.
x ./TLQ63/bin/dispipc, 45028 bytes, 88 media blocks.
x ./TLQ63/bin/dispshm, 810523 bytes, 1584 media blocks.
x ./TLQ63/bin/tlq, 819699 bytes, 1601 media blocks.
x ./TLQ63/bin/tlqclibroker, 582944 bytes, 1139 media blocks.
x ./TLQ63/bin/tlqd, 773591 bytes, 1511 media blocks.
x ./TLQ63/bin/tlqdebug, 134972 bytes, 264 media blocks.
x ./TLQ63/bin/tlqerr, 45168 bytes, 89 media blocks.
x ./TLQ63/bin/tlqmoni, 777411 bytes, 1519 media blocks.
x ./TLQ63/bin/tlqpsbroker, 867231 bytes, 1694 media blocks.
x ./TLQ63/bin/tlqready, 324667 bytes, 635 media blocks.
x ./TLQ63/bin/tlqstat, 796019 bytes, 1555 media blocks.
x ./TLQ63/bin/tlqsupervise, 909095 bytes, 1776 media blocks.
x ./TLQ63/bin/tlqmng, 214 bytes, 1 media blocks.
x ./TLQ63/errormsg.xml, 16992 bytes, 34 media blocks.
x ./TLQ63/etc
x ./TLQ63/etc/TongUser.Conf, 3406 bytes, 7 media blocks.
x ./TLQ63/files
x ./TLQ63/incl
x ./TLQ63/incl/tlq_api.h, 9942 bytes, 20 media blocks.
x ./TLQ63/incl/tlq_error.h, 5308 bytes, 11 media blocks.
x ./TLQ63/incl/tlq_confapi.h, 7166 bytes, 14 media blocks.
x ./TLQ63/java
x ./TLQ63/java/bin
x ./TLQ63/java/bin/JMSAdmin.config, 2772 bytes, 6 media blocks.
x ./TLQ63/java/bin/jmsadmin, 35 bytes, 1 media blocks.
x ./TLQ63/java/lib
x ./TLQ63/java/lib/TlqMng.jar, 584625 bytes, 1142 media blocks.
x ./TLQ63/java/lib/tlclient.jar, 163431 bytes, 320 media blocks.
x ./TLQ63/java/lib/log4j.properties, 1113 bytes, 3 media blocks.
x ./TLQ63/java/lib/jndi.properties, 113 bytes, 1 media blocks.
x ./TLQ63/java/lib/commons-logging-1.0.4.jar, 38015 bytes, 75 media blocks.
x ./TLQ63/java/lib/log4j-1.2.11.jar, 311890 bytes, 610 media blocks.
x ./TLQ63/java/lib/TLQRmtMng.jar, 16922 bytes, 34 media blocks.
x ./TLQ63/java/lib/TLQRmtMngDoc.rar, 74900 bytes, 147 media blocks.
x ./TLQ63/java/lib/tlqConf.jar, 132212 bytes, 259 media blocks.
x ./TLQ63/java/lib/tlqadapter.jar, 8015 bytes, 16 media blocks.
x ./TLQ63/lib
x ./TLQ63/lib/libjtlq_adapter.so, 450082 bytes, 880 media blocks.
x ./TLQ63/lib/libtlqapi.so, 383220 bytes, 749 media blocks.
x ./TLQ63/lib/libtlqconfapi.so, 308849 bytes, 604 media blocks.
x ./TLQ63/lib/libtlqcrypt.so, 120686 bytes, 236 media blocks.
x ./TLQ63/lib/libtlqgz.so, 127460 bytes, 249 media blocks.
x ./TLQ63/lib/libtlqpublic.so, 64173 bytes, 126 media blocks.
x ./TLQ63/log
x ./TLQ63/msg
x ./TLQ63/rcvfiles
x ./TLQ63/readme.txt, 767 bytes, 2 media blocks.
x ./TLQ63/samples
x ./TLQ63/samples/demo_c
x ./TLQ63/samples/demo_c/conftest.c, 26340 bytes, 52 media blocks.
x ./TLQ63/samples/demo_c/delmsg.c, 1741 bytes, 4 media blocks.
x ./TLQ63/samples/demo_c/delpub.c, 1260 bytes, 3 media blocks.
x ./TLQ63/samples/demo_c/delsub.c, 1491 bytes, 3 media blocks.
x ./TLQ63/samples/demo_c/get_nodeinfo.c, 3921 bytes, 8 media blocks.
x ./TLQ63/samples/demo_c/getevent.c, 3874 bytes, 8 media blocks.
x ./TLQ63/samples/demo_c/getmsg.c, 1788 bytes, 4 media blocks.
x ./TLQ63/samples/demo_c/getsubmsg.c, 1479 bytes, 3 media blocks.
x ./TLQ63/samples/demo_c/gettrans.c, 1932 bytes, 4 media blocks.
x ./TLQ63/samples/demo_c/mt_csendmsg.c, 10297 bytes, 21 media blocks.
x ./TLQ63/samples/demo_c/pubmsg.c, 2288 bytes, 5 media blocks.
x ./TLQ63/samples/demo_c/sendmsg.c, 3648 bytes, 8 media blocks.
x ./TLQ63/samples/demo_c/sendmsg_cli.c, 3592 bytes, 8 media blocks.
x ./TLQ63/samples/demo_c/sendtran.c, 3646 bytes, 8 media blocks.
x ./TLQ63/samples/demo_c/submsg.c, 2567 bytes, 6 media blocks.
x ./TLQ63/samples/demo_c/Makefile, 2898 bytes, 6 media blocks.
x ./TLQ63/samples/CS
x ./TLQ63/samples/CS/sendmsg.cs, 1496 bytes, 3 media blocks.
x ./TLQ63/samples/CS/getmsg.cs, 1589 bytes, 4 media blocks.
x ./TLQ63/samples/Jms
x ./TLQ63/samples/Jms/JMS-C
x ./TLQ63/samples/Jms/JMS-C/sendmsg.c, 3993 bytes, 8 media blocks.
x ./TLQ63/samples/Jms/JMS-C/Snd.java, 4201 bytes, 9 media blocks.
x ./TLQ63/samples/Jms/JMS-C/getmsg.c, 3234 bytes, 7 media blocks.
x ./TLQ63/samples/Jms/JMS-C/Rcv.java, 5144 bytes, 11 media blocks.
x ./TLQ63/samples/Jms/Makefile, 74 bytes, 1 media blocks.
x ./TLQ63/samples/Jms/mdb
x ./TLQ63/samples/Jms/mdb/weblogic-ejb-jar.xml, 1471 bytes, 3 media blocks.
x ./TLQ63/samples/Jms/mdb/ejb-jar.xml, 851 bytes, 2 media blocks.
x ./TLQ63/samples/Jms/mdb/examples.properties, 748 bytes, 2 media blocks.
x ./TLQ63/samples/Jms/mdb/MessageBean.java, 1404 bytes, 3 media blocks.
x ./TLQ63/samples/Jms/mdb/setWLSEnvMQ.cmd, 4216 bytes, 9 media blocks.
x ./TLQ63/samples/Jms/mdb/tlkq_message.jar, 2635 bytes, 6 media blocks.
x ./TLQ63/samples/Jms/mdb/README.TXT, 1635 bytes, 4 media blocks.
x ./TLQ63/samples/Jms/mdb/SendMessage.java, 2565 bytes, 6 media blocks.
x ./TLQ63/samples/Jms/mdb/build.xml, 2429 bytes, 5 media blocks.
x ./TLQ63/samples/Jms/mdb/build
x ./TLQ63/samples/Jms/mdb/build/META-INF
x ./TLQ63/samples/Jms/mdb/build/META-INF/weblogic-ejb-jar.xml, 1471 bytes, 3 media blocks.
x ./TLQ63/samples/Jms/mdb/build/META-INF/ejb-jar.xml, 851 bytes, 2 media blocks.
x ./TLQ63/samples/Jms/mdb/dist
x ./TLQ63/samples/Jms/mdb/dist/tlkq_basic_message.jar, 2323 bytes, 5 media blocks.
x ./TLQ63/samples/Jms/src
x ./TLQ63/samples/Jms/src/AsynQreceiver.java, 2995 bytes, 6 media blocks.
x ./TLQ63/samples/Jms/src/QSelector.java, 2839 bytes, 6 media blocks.
x ./TLQ63/samples/Jms/src/QSender.java, 5376 bytes, 11 media blocks.
x ./TLQ63/samples/Jms/src/QSub_Asyn.java, 3034 bytes, 6 media blocks.
x ./TLQ63/samples/Jms/src/QSub_non.java, 4436 bytes, 9 media blocks.
x ./TLQ63/samples/Jms/src/Xid.java, 1413 bytes, 3 media blocks.
x ./TLQ63/samples/Jms/src/QReceiver.java, 5372 bytes, 11 media blocks.
x ./TLQ63/samples/Jms/src/QPub.java, 3702 bytes, 8 media blocks.
x ./TLQ63/samples/Jms/src/QSelectorServer.java, 3212 bytes, 7 media blocks.
x ./TLQ63/samples/Jms/src/QSub.java, 5201 bytes, 11 media blocks.
x ./TLQ63/samples/Jms/src/XAQSender.java, 6578 bytes, 13 media blocks.
x ./TLQ63/samples/Jms/src/XAQReceiver.java, 5151 bytes, 11 media blocks.
x ./TLQ63/samples/Jni
x ./TLQ63/samples/Jni/jniRecv.java, 5708 bytes, 12 media blocks.
x ./TLQ63/samples/Jni/jniSend.java, 4127 bytes, 9 media blocks.
x ./TLQ63/samples/Jni/jniPubSub.java, 7575 bytes, 15 media blocks.
x ./TLQ63/samples/Jni/Makefile, 64 bytes, 1 media blocks.
x ./TLQ63/samples/bin
x ./TLQ63/samples/sendnode
x ./TLQ63/samples/sendnode/log
x ./TLQ63/samples/sendnode/msg
x ./TLQ63/samples/sendnode/files
x ./TLQ63/samples/sendnode/sndfiles
x ./TLQ63/samples/sendnode/rcvfiles
x ./TLQ63/samples/sendnode/etc
x ./TLQ63/samples/sendnode/etc/TongUser.Conf, 5036 bytes, 10 media blocks.
x ./TLQ63/samples/sendnode/setp, 655 bytes, 2 media blocks.
x ./TLQ63/samples/getnode
x ./TLQ63/samples/getnode/log
x ./TLQ63/samples/getnode/msg
x ./TLQ63/samples/getnode/files
x ./TLQ63/samples/getnode/sndfiles
x ./TLQ63/samples/getnode/rcvfiles
x ./TLQ63/samples/getnode/etc
x ./TLQ63/samples/getnode/etc/TongUser.Conf, 4972 bytes, 10 media blocks.
x ./TLQ63/samples/getnode/setp, 657 bytes, 2 media blocks.
x ./TLQ63/samples/readme.txt, 758 bytes, 2 media blocks.
x ./TLQ63/setp, 908 bytes, 2 media blocks.
x ./TLQ63/sndfiles
x ./TLQ63/tlq_ver.dat, 28 bytes, 1 media blocks.
6、拷贝许可证文件
# cp TlqLicense /home/tlq/TLQ63/etc
7、修改文件属性
# chown -R tlq:tlq /tlq
# chmod -R 775 /tlq
# chown root:tlq /tlq/TLQ63/bin/*
# chmod +s /tlq/TLQ63/bin/*
注:曾有客户因为没有chmod +s /tlq/TLQ63/bin/*,报文可以发出,但是收不到。
8、修改tlq用户.profile(su - tlq;vi .profile),添加如下内容(这些数据来自安装介质下的TLQ63/setp)
TLQHOMEDIR=$PWD; export TLQHOMEDIR
TLQCONFDIR=$TLQHOMEDIR/etc; export TLQCONFDIR
TLQLOGDIR=$TLQHOMEDIR/log; export TLQLOGDIR
TLQFILESDIR=$TLQHOMEDIR/files; export TLQFILESDIR
TLQSNDFILESDIR=$TLQHOMEDIR/sndfiles; export TLQSNDFILESDIR
TLQRCVFILESDIR=$TLQHOMEDIR/rcvfiles; export TLQRCVFILESDIR
TLQMSGDIR=$TLQHOMEDIR/msg; export TLQMSGDIR
PATH=$TLQHOMEDIR/bin:$TLQHOMEDIR/bin:$TLQHOMEDIR/java/bin:.:$PATH
export PATH
 
CLASSPATH=$TLQHOMEDIR/java/lib:$TLQHOMEDIR/java/lib/tlclient.jar:$TLQHOMEDIR/java/lib/tlqadapter.jar:$TLQHOMEDIR/java/lib/commons-logging-1.0.4.jar:$TLQHOMEDIR/java/lib/log4j-1.2.11.jar:$TLQHOMEDIR/java/lib/TLQRmtMng.jar:$TLQHOMEDIR/java/lib:$TLQHOMEDIR/samples/Jni:.:$CLASSPATH
export CLASSPATH
LD_LIBRARY_PATH=$TLQHOMEDIR/lib  #for DEC SCO SUN  LINUX
export LD_LIBRARY_PATH
LIBPATH=$TLQHOMEDIR/lib          #for IBM
export LIBPATH
SHLIB_PATH=$TLQHOMEDIR/lib       #for HP
export SHLIB_PATH
注:
(1)#for DEC SCO SUN  LINUX 和 #for HP 的四行代码可以删除(因为是AIX)
(2)实际环境可能还需要添加其它代码。
9、其它用户环境变量可能需要增加TLQ的部分,如下示例(注意:TLQHOMEDIR=/tlq;)
# su - usr1
$ vi .profile
……
# -------- 开始:TongLink/Q6.3 的配置 --------
TLQHOMEDIR=/tlq; export TLQHOMEDIR
TLQCONFDIR=$TLQHOMEDIR/etc; export TLQCONFDIR
TLQLOGDIR=$TLQHOMEDIR/log; export TLQLOGDIR
TLQFILESDIR=$TLQHOMEDIR/files; export TLQFILESDIR
TLQSNDFILESDIR=$TLQHOMEDIR/sndfiles; export TLQSNDFILESDIR
TLQRCVFILESDIR=$TLQHOMEDIR/rcvfiles; export TLQRCVFILESDIR
TLQMSGDIR=$TLQHOMEDIR/msg; export TLQMSGDIR
PATH=$TLQHOMEDIR/bin:$TLQHOMEDIR/bin:$TLQHOMEDIR/java/bin:.:$PATH
export PATH
 
CLASSPATH=$TLQHOMEDIR/java/lib:$TLQHOMEDIR/java/lib/tlclient.jar:$TLQHOMEDIR/java/lib/tlqadapter.jar:$TLQHOMEDIR/java/lib/commons-logging-1.0.4.jar:$TLQHOMEDIR/java/lib/log4j-1.2.11.jar:$TLQHOMEDIR/java/lib/TLQRmtMng.jar:$TLQHOMEDIR/java/lib:$TLQHOMEDIR/samples/Jni:.:$CLASSPATH
export CLASSPATH
LIBPATH=$TLQHOMEDIR/lib          #for IBM
export LIBPATH
# --------结束:TongLink/Q6.3 的配置 --------
……
10、应用TongLink/Q配置文件:/tlq/TLQ63/etc/TongUser.Conf
这个一般是开发的同事做的,集成的工程师只需要了解其作用即可,直接拿来使用。也要学会根据客户实际情况修改(比如上级节点、本地节点等)。
这需要专门一篇文章介绍了,具体请参考:。。。。
11、至此,安装、配置TonkLink/Q(TLQ)6.3的工作就完成了,最后记得让客户将TonkLink/Q的介质、证书存放好就行了。

本文链接:AIX6.1下TLQ6.3的安装过程

转载声明:本站文章若无特别说明,皆为原创,转载请注明来源,谢谢 !