MQ配置文件
索引:
后缀为.ini,两种类型文件:MQSeries configuration file, 每个节点一个;Queue manager configuration files,每个队列管理器一个。
1.MQSeries configuration file
文件名:mqs.ini,安装时自动建立,缺省在/var/mqm目录下。
包括队列管理器的名字、缺省队列管理器、对应的文件、日志等。
有以下几个小节:AllQueueManagers、DefaultQueueManager、QueueManager、LogDefaults。
如:
#*****************************************************# #* Module Name: mqs.ini *# #* Type : MQSeries Configuration File *# #* Function : Define MQSeries resources for the node *# #* *# #*****************************************************# #* Notes : *# #* 1) This is an example MQSeries configuration file *# #* *# #*****************************************************# AllQueueManagers: #*****************************************************# #* The path to the qmgrs directory, below which queue*# #* manager data is stored *# #*****************************************************# DefaultPrefix=/var/mqm LogDefaults: LogPrimaryFiles=3 LogSecondaryFiles=2 LogFilePages=1024 LogType=CIRCULAR LogBufferPages=17 LogDefaultPath=/var/mqm/log QueueManager: Name=saturn.queue.manager Prefix=/var/mqm Directory=saturn!queue!manager QueueManager: Name=pluto.queue.manager Prefix=/var/mqm Directory=pluto!queue!manager DefaultQueueManager: Name=saturn.queue.manager
2.Queue manager configuration file
文件名:qm.ini
存放位置:以QMNAME为例:/var/mqm/qmgrs/QMNAME/qm.ini
有以下几个小节:Service、ServiceComponent、Log、Channels、TCP。
如:
#****************************************************# #* Module Name: qm.ini *# #* Type : MQSeries queue manager configuration file *# # Function : Define the configuration of a single queue manager *# #* *# #****************************************************************# #* Notes : *# #* 1) This file defines the configuration of the queue manager *# #* *# #****************************************************************# Service: Name=AuthorizationService EntryPoints=9 ServiceComponent: Service=AuthorizationService Name=MQSeries.UNIX.auth.service Module=mqmtop/bin/amqzfu.o ComponentDataSize=0 Service: Name=NameService EntryPoints=9 ServiceComponent: Service=NameService Name=MQSeries.UNIX.name.service Module=/u/opman/abctest.o ComponentDataSize=128 Log: LogPrimaryFiles=3 LogSecondaryFiles=2 LogFilePages=1024 LogType=CIRCULAR LogBufferPages=17 LogPath=/var/mqm/log/saturn!queue!manager/ CHANNELS: MaxChannels = 20 ; Maximum number of Channels allowed, ; the default number is 100 MaxActiveChannels = 10 ; Maximum number of Channels allowed to be ; active at any time. The default is the ; value of MaxChannels. TCP: ; TCP/IP entries Port = 1800 ; use port 1800 instead of the default 1414 KeepAlive = Yes ; Switch KeepAlive on