天天看点

tuxedo install and configure in as4 u5

\\

安装tuxedo91 on AS4 U5

一、所需软件

Os:as4 u5 服务器可以不选 必须安装vi和开发工具

tux_9.1.txt(license文件)  tuxedo91_32_SLES_9_x86.bin(软件包,最好选择此版本的)

二、软件安装

1.       选择控制台安装(非图形方式)

[bea@mail 9.1]$ ls

tux_9.1.txt  tux_9.1.txt.bak.txt  tuxedo91_32_SLES_9_x86.bin

[bea@mail 9.1]$ ./tuxedo91_32_SLES_9_x86.bin -i console

2.       选择安装语言

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 9.1                        (created with InstallAnywhere by Macrovision)

3.       同意协议

Introduction

------------

InstallAnywhere will guide you through the Tuxedo 9.1 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 9.1 installation.You must

re-install Tuxedo 9.1. For more information, see "Preparing to Install the BEA

Tuxedo System" in the Tuxedo 9.1 Installation Guide.

显示许可协议内容(一直回车)

BEA End User Clickwrap 001205

Copyright (c) BEA Systems, Inc.

All Rights Reserved.

DO YOU ACCEPT THE TERMS OF THIS LICENSE AGREEMENT? (Y/N): y(输入y同意协议)

Choose Install Set

------------------

4.       选择安装方式

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 <ENTER> TO ACCEPT THE DEFAULT : 1

(完全安装:包括server和client两个组件,安装在一台机器上)

5.         创建目录

Choose BEA Home

---------------

    1- Create new BEA Home

Enter a number:1(创建一个新目录)

Specify a new BEA Home directory: /home/BEA

Specify a new BEA Home directory: /home/BEA

6.         选择产品目录

Choose Product Directory

------------------------

    1- Modify Current Selection (/home/BEA/tuxedo9.1)

    2- Use Current Selection (/home/BEA/tuxedo9.1)

Enter a number: 1(修改)

Specify Product Installation Directory: /home/BEA/tux

    1- Modify Current Selection (/home/BEA/tux)

    2- Use Current Selection (/home/BEA/tux)

Enter a number: 2(使用当前选项)

7.         安装预览

Pre-Installation Summary

Please Review the Following Before Continuing:

Product Name:

    Tuxedo 9.1

Install Folder:

    /home/BEA/tux

Link Folder:

    /home/bea

Disk Space Information (for Installation Target):

    Required:  161,016,001 bytes

    Available: 7,033,978,880 bytes

PRESS <ENTER> TO CONTINUE:(回车,继续安装)

8.         软件安装进度开始

Ready To Install

----------------

InstallAnywhere is now ready to install Tuxedo 9.1 onto your system at the

following location:

   /home/BEA/tux

PRESS <ENTER> TO INSTALL: (回车,安装软件)

Installing...

-------------

 [==================|==================|==================|==================]

 [

9.         安装进度结束

 [-------------------------------|-------------------------------|------------------------------|------------------------------]

10.     配置监听密码

Configure tlisten Service

-------------------------

Password : bea(tlisten密码)

Verify Password: bea(tlisten密码)

11.     配置ssl支持

SSL Installation Choice.

Would you like to install SSL Support?

  ->1- Yes

    2- No

ENTER THE NUMBER FOR YOUR CHOICE, OR PRESS <ENTER> TO ACCEPT THE DEFAULT:

   : 2(不支持ssl)

12.     是否安装license

License Installation Choice

---------------------------

Would you like to install your license now?

   :2(暂不安装)

13.     安装完成

Installation Complete

---------------------

Congratulations. Tuxedo 9.1 has been successfully installed to:

PRESS <ENTER> TO EXIT THE INSTALLER:(回车,退出)

14.     安装license

[bea@mail 9.1]$ cd /home/BEA/tux/(产品目录)

[bea@mail tux]$ ls

bin         help     lib     samples  udataobj

cobinclude  include  locale  tux.env  uninstaller

[bea@mail tux]$ cd udataobj/

[bea@mail udataobj]$ ls

3rd_party_licenses.txt  mib_views.V              tmib_views.V

dmadmin                 RM                       tpadm

dmadmin32               security                 tpldap

DMTYPE                  sendlen0_unsafe_tpmbenc  tuxmetasvc.xsd

evt_mib                 snmp                     tuxwsvr.ini

java                    SysRegiiop.rdp           Usysfl32

jolt                    SysRegtgiop.rdp          Usysflds

jrep.f32                System.rdp               webgui

jwsladmin.f32           tlisten.pw

[bea@mail udataobj]$ cp /home/tuxedo/9.1/tux_9.1.txt ./lic.txt

[bea@mail udataobj]$ ls

3rd_party_licenses.txt       lic.txt(新增)                tlisten.pw

dmadmin                 mib_views.V              tmib_views.V

dmadmin32               RM                       tpadm

DMTYPE                  security                 tpldap

evt_mib                 sendlen0_unsafe_tpmbenc  tuxmetasvc.xsd

java                    snmp                     tuxwsvr.ini

jolt                    SysRegiiop.rdp           Usysfl32

jrep.f32                SysRegtgiop.rdp          Usysflds

jwsladmin.f32           System.rdp               webgui

[bea@mail udataobj]$

三、设置环境变量

1.         tux.env

在目录 /home/BEA/tux下

[bea@mail tux]$ vi tux.env

TUXDIR=/home/BEA/tux; export TUXDIR

PATH=$TUXDIR/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:$SHLIB_PATH; export SHLIB_PATH

LIBPATH=$TUXDIR/lib:$LIBPATH; export LIBPATH

LD_LIBRARY_PATH=$TUXDIR/lib:$LD_LIBRARY_PATH; export LD_LIBRARY_PATH

WEBJAVADIR=$TUXDIR/udataobj/webgui/java

LANG=C;export LANG(新增行)

注意:黑体为默认,红色字体为新添加的

保存退出

1.         验证环境变量

[bea@mail tux]$ env |grep TUX(输出为空)

[bea@mail tux]$ .空格./tux .env

[bea@mail tux]$ env|grep TUX

TUXDIR=/home/BEA/tux

2.         验证安装是否成功

[bea@mail tux]$ tmadmin -v

[bea@mail tux]$ tmadmin -v 

INFO: BEA Tuxedo, Version 9.1, 32-bit, Patch Level (none)

INFO: Serial #: 454493271161-2617347438265, Expiration 2008-08-15, Maxusers 100

INFO: Licensed to: BEA Evaluation Customer

INFO: 56-bit Encryption Package

 [bea@mail tux]$

四、运行Tuxedo程序

1.         运行/home/BEA/tux/samples/atmi目录下的

[bea@mail atmi]$ ls   

CSIMPAPP  bankapp    libutrace  simpapp  xmlfmlapp

STOCKAPP  creditapp  qsample    ws       xmlstockapp

[bea@mail atmi]$ cp -R simpapp/ /home/BEA

[bea@mail atmi]$ cd /home/BEA/

[bea@mail BEA]$ ls

jre  logs  simpapp  tux

[bea@mail BEA]$ cd simpapp/

[bea@mail simpapp]$ ls

README  simpcl.c  simpserv.c  ubbsimple

[bea@mail simpapp]$cp /home/BEA/tux/tux.env .(拷贝环境文件到当前目录下)

README  simpcl.c  simpserv.c  tux.env  ubbsimple

[bea@mail simpapp]$ ll

total 20

-rw-rw-r--  1 bea bea 2943 Dec  8 12:43 README

-rw-rw-r--  1 bea bea 1826 Dec  8 12:43 simpcl.c(客户端)

-rw-rw-r--  1 bea bea 1632 Dec  8 12:43 simpserv.c(服务端)

-rw-r--r--  1 bea bea  425 Dec  8 12:46 tux.env(环境变量文件)

-rw-rw-r--  1 bea bea  886 Dec  8 12:43 ubbsimple(配置文件)

2.         设置环境变量文件tux.env

LANG=C;export LANG

APPDIR=/home/BEA/simpapp; export APPDIR

TUXCONFIG=$APPDIR/tuxconfig; export TUXCONFIG

(红色为新增内容)

3.         使环境变量生效并查看

[bea@mail simpapp]$ .空格./tux.env

 [bea@mail simpapp]$ env |grep APP

APPDIR=/home/BEA/simpapp

4.         设置配置文件ubbsimple

[bea@mail simpapp]$ vi ubbsimple

#       (c) 2003 BEA Systems, Inc. All Rights Reserved.

#ident  "@(#) samples/atmi/simpapp/ubbsimple    $Revision: 1.5 $"

#Skeleton UBBCONFIG file for the TUXEDO Simple Application.

#Replace the <bracketed> items with the appropriate values.

*RESOURCES

#IPCKEY          <Replace with a valid IPC Key>

#Example:

(#)去掉# IPCKEY         123456

DOMAINID        simpapp

MASTER          simple

MAXACCESSERS    10

MAXSERVERS      5

MAXSERVICES     10

MODEL           SHM

LDBAL           N

*MACHINES

DEFAULT:

                APPDIR="/home/BEA/simpapp"

                TUXCONFIG="/home/BEA/simpapp/tuxconfig"

                TUXDIR="/home/BEA/tux"

#               APPDIR="/home/me/simpapp"

#               TUXCONFIG="/home/me/simpapp/tuxconfig"

#               TUXDIR="/usr/tuxedo"

mail(主机名)  LMID=simple

#beatux         LMID=simple

*GROUPS

GROUP1

        LMID=simple     GRPNO=1 OPENINFO=NONE

*SERVERS

               CLOPT="-A"

simpserv        SRVGRP=GROUP1 SRVID=1

*SERVICES

TOUPPER

5.         启动程序

[bea@mail simpapp]$ tmloadcf -y ubbsimple

[bea@mail simpapp]$ buildserver -f simpserv.c -o simpserv -s TOUPPER

[bea@mail simpapp]$ buildclient -f simpcl.c -o client

total 416

-rw-rw-r--  1 bea bea   2943 Dec  8  2008 README

-rw-rw-rw-  1 bea bea    205 Dec  8 13:55 ULOG.120806

-rw-rw-rw-  1 bea bea    334 Dec  8  2008 ULOG.120808

-rwxrwxr-x  1 bea bea   6996 Dec  8 13:59 client

-rw-rw-r--  1 bea bea   1826 Dec  8  2008 simpcl.c

-rwxrwxr-x  1 bea bea   7105 Dec  8 13:56 simpserv

-rw-rw-r--  1 bea bea   1632 Dec  8  2008 simpserv.c

-rw-r--r--  1 bea bea    513 Dec  8  2008 tux.env

-rw-rw-r--  1 bea bea 375808 Dec  8 13:55 tuxconfig

-rw-rw-r--  1 bea bea    813 Dec  8  2008 ubbsimple

[bea@mail simpapp]$

6.         启动服务

[bea@mail simpapp]$ tmboot -y

Booting all admin and server processes in /home/BEA/simpapp/tuxconfig

Booting admin processes ...

exec BBL -A :

       process id=22752 ... Started.

Booting server processes ...

exec simpserv -A :

       process id=22753 ... Started.

2 processes started.

[bea@mail simpapp]$ ps -ef

UID        PID  PPID  C STIME TTY          TIME CMD

root         1     0  0 09:12 ?        00:00:00 init [5]                      

root         2     1  0 09:12 ?        00:00:00 [migration/0]

root         3     1  0 09:12 ?        00:00:00 [ksoftirqd/0]

root         4     1  0 09:12 ?        00:00:00 [events/0]

root         5     4  0 09:12 ?        00:00:00 [khelper]

root         6     4  0 09:12 ?        00:00:00 [kacpid]

root        17     4  0 09:12 ?        00:00:00 [kblockd/0]

root        18     1  0 09:12 ?        00:00:00 [khubd]

root        35     4  0 09:12 ?        00:00:00 [pdflush]

root        36     4  0 09:12 ?        00:00:04 [pdflush]

root        37     1  0 09:12 ?        00:00:03 [kswapd0]

root        38     4  0 09:12 ?        00:00:00 [aio/0]

root       184     1  0 09:12 ?        00:00:00 [kseriod]

root       422     1  0 09:12 ?        00:00:00 [scsi_eh_0]

root       439     4  0 09:12 ?        00:00:00 [ata/0]

root       440     4  0 09:12 ?        00:00:00 [ata_aux]

root       448     1  0 09:12 ?        00:00:06 [kjournald]

root      1736     1  0 09:13 ?        00:00:00 udevd

root      2008     4  0 09:13 ?        00:00:00 [kauditd]

root      2088     1  0 09:13 ?        00:00:00 [kjournald]

root      2089     1  0 09:13 ?        00:00:00 [kjournald]

root      2090     1  0 09:13 ?        00:00:02 [kjournald]

root      2514     1  0 09:14 ?        00:00:00 syslogd -m 0

root      2518     1  0 09:14 ?        00:00:00 klogd -x

rpc       2541     1  0 09:14 ?        00:00:00 portmap

rpcuser   2561     1  0 09:14 ?        00:00:00 rpc.statd

root      2590     1  0 09:14 ?        00:00:00 rpc.idmapd

root      2680     1  0 09:14 ?        00:00:00 /usr/sbin/acpid

root      2743     1  0 09:14 ?        00:00:00 /usr/sbin/sshd

root      2758     1  0 09:14 ?        00:00:00 xinetd -stayalive -pidfile /va

root      2768     1  0 09:14 ?        00:00:02 gpm -m /dev/input/mice -t imps

htt       2799     1  0 09:14 ?        00:00:00 /usr/sbin/htt -retryonerror 0

htt       2800  2799  0 09:14 ?        00:00:00 htt_server -nodaemon

root      2810     1  0 09:14 ?        00:00:00 crond

xfs       2835     1  0 09:14 ?        00:00:00 xfs -droppriv -daemon

root      2854     1  0 09:14 ?        00:00:00 /usr/sbin/atd

dbus      2873     1  0 09:14 ?        00:00:00 dbus-daemon-1 --system

root      2886     1  0 09:14 ?        00:00:00 cups-config-daemon

root      2897     1  0 09:14 ?        00:00:21 hald

root      2996     1  0 09:14 tty1     00:00:00 /sbin/mingetty tty1

root      3075     1  0 09:14 tty2     00:00:00 /sbin/mingetty tty2

root      3076     1  0 09:14 tty3     00:00:00 /sbin/mingetty tty3

root      3089     1  0 09:14 tty4     00:00:00 /sbin/mingetty tty4

root      3090     1  0 09:14 tty5     00:00:00 /sbin/mingetty tty5

root      3091     1  0 09:14 tty6     00:00:00 /sbin/mingetty tty6

root      3551     1  0 09:14 ?        00:00:00 /usr/bin/gdm-binary -nodaemon

root      3742  3551  0 09:14 ?        00:00:00 /usr/bin/gdm-binary -nodaemon

root      3792  3742  3 09:14 ?        00:08:57 /usr/X11R6/bin/X :0 -audit 0 -

root      4044     1  0 09:19 ?        00:00:10 /usr/libexec/gam_server

root      5134     1  0 10:19 ?        00:00:00 cupsd

root     17878  2743  0 11:22 ?        00:00:03 sshd: root@pts/2

root     17880 17878  0 11:23 pts/2    00:00:00 -bash

root     22396  2743  0 13:38 ?        00:00:00 sshd: root@notty

root     22398 22396  0 13:38 ?        00:00:00 /usr/libexec/openssh/sftp-serv

root     22415 22396  0 13:39 ?        00:00:00 /usr/libexec/openssh/sftp-serv

root     22504     1  0 13:41 ?        00:00:03 /usr/libexec/gconfd-2 13

root     22507  3742  0 13:41 ?        00:00:01 /usr/bin/gnome-session

root     22565 22507  0 13:41 ?        00:00:00 /usr/bin/ssh-agent /usr/bin/db

root     22568     1  0 13:41 ?        00:00:00 /usr/bin/dbus-launch --exit-wi

root     22569     1  0 13:41 ?        00:00:00 dbus-daemon-1 --fork --print-p

root     22574     1  0 13:41 ?        00:00:00 /usr/bin/gnome-keyring-daemon

root     22576     1  0 13:41 ?        00:00:00 /usr/libexec/bonobo-activation

root     22578     1  0 13:41 ?        00:00:00 /usr/libexec/gnome-settings-da

root     22602     1  0 13:41 ?        00:00:00 /usr/bin/metacity --sm-client-

root     22618     1  0 13:42 ?        00:00:03 gnome-panel --sm-client-id def

root     22620     1  0 13:42 ?        00:00:03 nautilus --no-default-window -

root     22622     1  0 13:42 ?        00:00:00 gnome-volume-manager --sm-clie

root     22624     1  0 13:42 ?        00:00:00 eggcups --sm-client-id default

root     22626     1  0 13:42 ?        00:00:00 pam-panel-icon --sm-client-id

root     22628     1  2 13:42 ?        00:00:28 /usr/bin/python /usr/bin/rhn-a

root     22630 22626  0 13:42 ?        00:00:00 /sbin/pam_timestamp_check -d r

root     22633     1  0 13:42 ?        00:00:00 /usr/libexec/gnome-vfs-daemon

root     22642     1  0 13:42 ?        00:00:00 /usr/libexec/mapping-daemon

root     22644     1  0 13:42 ?        00:00:01 /usr/libexec/wnck-applet --oaf

root     22646     1  0 13:42 ?        00:00:02 /usr/libexec/mixer_applet2 --o

root     22648     1  0 13:42 ?        00:00:00 /usr/libexec/clock-applet --oa

root     22650     1  0 13:42 ?        00:00:00 /usr/libexec/notification-area

root     22653     1  0 13:42 ?        00:00:00 /usr/libexec/evolution-data-se

root     22659 17880  0 13:43 pts/2    00:00:00 su - bea

bea      22660 22659  0 13:43 pts/2    00:00:00 -bash

bea      22752     1  0 14:01 pts/2    00:00:00 BBL -C dom=simpapp -g 30002 -i

bea      22753     1  0 14:01 pts/2    00:00:00 simpserv -C dom=simpapp -g 1 -

bea      22754 22660  0 14:02 pts/2    00:00:00 ps -ef

7.         测试程序

[bea@mail simpapp]$ ./client hello

Returned string is: HELLO

[bea@mail simpapp]$ t

注意:

程序功能:使客户端client敲入一个小写字符串 服务器端simpserv返回相应的大写字符串如,客户端输入hello 服务器端返回 HELLO

[bea@mail simpapp]$ tmadmin  

tmadmin - Copyright (c) 1996-1999 BEA Systems, Inc.

Portions * Copyright 1986-1997 RSA Data Security, Inc.

Distributed under license by BEA Systems, Inc.

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       00001.00001 GROUP1         1      1        50 (  IDLE )

> quit(退出tmadmin)

[bea@mail simpapp]$ tmshutdown(关闭程序)

Shutdown all admin and server processes? (y/n): y

Shutting down all admin and server processes in /home/BEA/simpapp/tuxconfig

Shutting down server processes ...

       Server Id = 1 Group Id = GROUP1 Machine = simple:       shutdown succeeded

Shutting down admin processes ...

       Server Id = 0 Group Id = simple Machine = simple:    shutdown succeeded

2 processes stopped.

每次执行client程序必须使用. ./tux.env设置环境变量

五、关于服务的启动与关闭

1.         启动tuxedo服务

[bea@mail simpapp]$ tmboot -y

       process id=22837 ... Started.

       process id=22838 ... Started.

2.         关闭tuxedo服务

[bea@mail simpapp]$ tmshutdown -y

3.         查看服务状态

> psr(查看交易)

BBL            123456      simple         0      0               0 (  IDLE )

simpserv       00001.00001 GROUP1         1      1 (交易次数)  50 (  IDLE )

[bea@mail simpapp] $

本文转自 pgmia 51CTO博客,原文链接:http://blog.51cto.com/heyiyi/117953

继续阅读