湖南IP网认证计费系统
中间件安装与配置手册
1、Tuxedo安装
、所需软件
Tuxedo 或者以后的版本
Oracle Tuxedo 11gR1的软件包(),下载地址:
客户端
Altibase客户端
gcc编译器
License文件License文件
Tuxedo 10gR3之后不需要
、软件安装
、选择控制台安装(非图形方式)
$ ls
$ ./ -i console
、选择安装语言
Preparing to install...
Extracting the JRE from the installer archive...
Unpacking the JRE...
Extracting the installation resources from the installer archive...
Configuring the installer for this system's environment...
Launching installer...
Preparing CONSOLE Mode Installation...
=============================================================
Choose Locale...
----------------
->1- English
CHOOSE LOCALE BY NUMBER: 1(语言为英文)
=============================================================
Tuxedo .0 (created with InstallAnywhere by Macrovision)
、同意协议
==============================================================
Introduction
------------
InstallAnywhere will guide you through the Tuxedo .0 installation.
It is strongly recommended that you quit all programs before continuing with
this installation.
Enter \"next' to proceed to the next screen. Enter \"back\" to modify the previous
screen.
You may cancel this installation at any time by typing \"quit\".
WARNING: \"Quitting\" creates an incomplete Tuxedo .0
must re-install Tuxedo .0. For more information, see \"Preparing to
Install the Oracle Tuxedo System\" in the Tuxedo .0 Installation Guide.
PRESS 显示许可协议内容(一直回车) DO YOU ACCEPT THE TERMS OF THIS LICENSE AGREEMENT (Y/N): y(输入y同意协议) ============================================================= Choose Install Set ------------------ 、选择安装方式 Please choose the Install Set to be installed by this installer. ->1- Full Install 2- Server Install 3- Full Client Install 4- Jolt Client Install 5- ATMI Client Install 6- CORBA Client Install 7- Customize... ENTER THE NUMBER FOR THE INSTALL SET, OR PRESS (完全安装:包括server和client两个组件,安装在一台机器上) 、创建目录 ============================================================= Choose Oracle Home ------------------ 1- Create new Oracle Home 2- Use existing Oracle Home Enter a number: 1(创建一个新目录) Specify a new Oracle Home directory: /app1/tux11g 、选择产品目录 ============================================================== Choose Product Directory ------------------------ 1- Modify Current Selection (/app1/tux11g/tuxedo11gR1) 2- Use Current Selection (/app1/tux11g/tuxedo11gR1) Enter a number: 1(修改) Specify Product Installation Directory: /home/tuxedo/tux11g Install Samples (Y/N): Y 、安装预览 ============================================================== Pre-Installation Summary Please Review the Following Before Continuing: Product Name: Tuxedo .0 Install Folder: /home/tuxedo/tux11g Link Folder: /home/tuxedo Disk Space Information (for Installation Target): Required: 209,943,511 bytes Available: 2,432,757,760 bytes PRESS ============================================================= 、软件安装进度开始 Ready To Install ---------------- InstallAnywhere is now ready to install Tuxedo .0 onto your system at the following location: /home/tuxedo/tux11g PRESS 、安装进度结束 ================================================== =========== Installing... ------------- [==================|==================|==================|==================] [------------------|------------------|------------------|------------------] 、配置监听密码 ============================================================== Configure tlisten Service ------------------------- Password: hniiosbea(tlisten密码,这个tlisten是在集群环境下使用的) Verify Password: hniiosbea(tlisten密码,这个tlisten是在集群环境下使用的) Password Accepted! Please wait... 、配置ssl支持 ============================================================= SSL Installation Choice. ------------------------ Would you like to install SSL Support ->1- Yes 2- No ENTER THE NUMBER FOR YOUR CHOICE, OR PRESS : 2(不支持ssl) 、安装完成 ============================================================= Installation Complete --------------------- Congratulations. Tuxedo .0 has been successfully installed to: /home/tuxedo/tux11g PRESS [tuxedo@node1 ~]$ 、安装完成后确认 $ ls bin cobinclude help include inventory jre locale logs samples udataobj uninstaller $ pwd /home/tuxedo/tux11g 确认安装是否成功,可以用两种方法: 1. 用tmadmin检查一下,如果执行不出错说明OK; lib 2. 部署simpapp应用进行测试,运行成功,说明OK . 执行命令检查 首先要设置一下环境变量,执行自动产生的脚本即可: $ . ./ $ tmadmin -v INFO: Oracle Tuxedo, Version .0, 32-bit, Patch Level (none) 部署simpapp Simpapp是一个产品自带的示例程序,功能是将客户端发过来的小写字符串改为大写字符串之后再返回给客户端。 目录:/home/tuxedo/tux11g/samples/atmi Copy到如下目录: /home/tuxedo/tux11g/applications/simpapp 2、Tuxedo Services部署 、设置环境变量 $ vi TUXDIR=/home/tuxedo/tux11g; export TUXDIR JAVA_HOME=$TUXDIR/jre; export JAVA_HOME JVMLIBS=$JAVA_HOME/lib/i386/server:$JAVA_HOME/jre/bin PATH=$TUXDIR/bin:$JAVA_HOME/bin:$PATH; export PATH COBCPY=:$TUXDIR/cobinclude; export COBCPY COBOPT=\"-C ANS85 -C ALIGN=8 -C NOIBMCOMP -C TRUNC=ANSI -C OSEXT=cbl\"; export COBOPT SHLIB_PATH=$TUXDIR/lib:$JVMLIBS:$SHLIB_PATH; export SHLIB_PATH LIBPATH=$TUXDIR/lib:$JVMLIBS:$LIBPATH; export LIBPATH LD_LIBRARY_PATH=$TUXDIR/lib:$JVMLIBS:$LD_LIBRARY_PATH; LD_LIBRARY_PATH export WEBJAVADIR=$TUXDIR/udataobj/webgui/java; export WEBJAVADIR LANG=C; export LANG APPDIR=$TUXDIR/applications/simpapp; export APPDIR TUXCONFIG=$APPDIR/tuxconfig; export TUXCONFIG 同时将Oracle以及Altibase的环境变量附加在后面,Tuxedo Service需要访问Oracle数据库和Altibase数据库。 、配置UBBCONFIG UBBCONFIG文件类似如下,在安装时,将现有117/118服务器上的ubb文件拷贝过来,然后根据实际情况,修改一些PATH及KEY即可。 *RESOURCES IPCKEY 123456 #Example: #IPCKEY 123456 DOMAINID simpapp MASTER simple MAXACCESSERS 10 MAXSERVERS 5 MAXSERVICES 10 MODEL SHM LDBAL N *MACHINES DEFAULT: APPDIR=\"/app1/tux11g/applications/simpapp\" TUXCONFIG=\"/app1/tux11g/applications/simpapp/tuxconfig\" TUXDIR=\"/app1/tux11g\" #Example: # APPDIR=\"/home/me/simpapp\" # TUXCONFIG=\"/home/me/simpapp/tuxconfig\" # TUXDIR=\"/usr/tuxedo\" node1 LMID=simple #Example: #beatux LMID=simple *GROUPS GROUP1 LMID=simple GRPNO=1 OPENINFO=NONE *SERVERS DEFAULT: CLOPT=\"-A\" simpserv SRVGRP=GROUP1 SRVID=1 *SERVICES TOUPPER 、编译UBBCONFIG $ tmloadcf -y ubb 、编译server端程序 将现有117/118服务器上的所以Service的源代码文件拷贝过来,然后编译所有Service服务端程序。命令参考如下。 $ buildserver -o simpserv -f -s TOUPPER 、编译client端程序 $ buildclient -o client -f 、启动服务 $ tmboot -y Booting all admin and server processes in /home/tuxedo/iios/exe/tuxconfig INFO: BEA Tuxedo, Version INFO: Serial #: 91637, Expiration NONE, Maxusers 50 INFO: Licensed to: China Telecom HuNan Booting admin processes ... exec BBL -A : process id=303708 ... Started. Booting server processes ... exec execute_sql -A : process id=295554 ... Started. exec execute_sql -A : process id=401442 ... Started. …… exec WSL -A -- -n . Started. 20 processes started. Attaching to active bulletin board. 、测试 $ ./client \"hello\" Returned string is: HELLO 在上述基础,将现有CS前台配置为该地址,正式测试。 、监测 # ipcs ------ Shared Memory Segments -------- key shmid owner perms bytes status 0x00000000 32768 gdm 600 393216 2 0x0001e240 65537 tuxedo 600 550040 2 ------ Semaphore Arrays -------- key semid owner perms nsems 0x0001e240 0 tuxedo 600 3 0x00000000 65537 tuxedo 600 31 ------ Message Queues -------- dest nattch key msqid owner perms used-bytes messages 0x0001e240 32769 tuxedo 600 0 0 0x00000000 65538 tuxedo 600 0 0 $ tmadmin tmadmin - Copyright (c) 1996-2010 Oracle. Portions * Copyright 1986-1997 RSA Data Security, Inc. All Rights Reserved. Distributed under license by Oracle. Tuxedo is a registered trademark. > psr Prog Name Queue Name Grp Name ID RqDone Load Done Current Service --------- ---------- -------- -- ------ --------- --------------- BBL 123456 simple 0 0 0 ( IDLE ) simpserv GROUP1 1 2 100 ( IDLE ) > psc Service Name Routine Name Prog Name Grp Name ID Machine # Done Status ------------ ------------ --------- -------- -- ------- ------ ------ TOUPPER TOUPPER simpserv GROUP1 1 simple 2 AVAIL > pq Prog Name Queue Name # Serve Wk Queued # Queued Ave. Len Machine --------- ------------------- --------- -------- -------- ------- simpserv 1 - 0 - simple BBL 123456 1 - 0 - simple
因篇幅问题不能全部显示,请点此查看更多更全内容