天天看點

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

繼續閱讀