Os
:as4 u5
服务器可以不选 必须安装vi
和开发工具 tux_9.1.txt
(license
文件) tuxedo91_32_SLES_9_x86.bin
(软件包,最好选择此版本的) 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
Extracting the JRE from the installer archive...
Extracting the installation resources from the installer archive...
Configuring the installer for this system's environment...
Preparing CONSOLE Mode Installation...
===============================================================================
---------------- ->1- English
CHOOSE LOCALE BY NUMBER:
1 (语言为英文) ===============================================================================
Tuxedo 9.1 (created with InstallAnywhere by Macrovision)
===============================================================================
InstallAnywhere will guide you through the Tuxedo 9.1 installation.
It is strongly recommended that you quit all programs before continuing with
Enter "next' to proceed to the next screen. Enter "back" to modify the previous
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.
DO YOU ACCEPT THE TERMS OF THIS LICENSE AGREEMENT? (Y/N):
y (输入 y 同意协议) ===============================================================================
Please choose the Install Set to be installed by this installer.
ENTER THE NUMBER FOR THE INSTALL SET, OR PRESS <ENTER> TO ACCEPT THE DEFAULT
: 1 (完全安装:包括 server 和 client 两个组件,安装在一台机器上) ===============================================================================
Enter a number
:1 (创建一个新目录) Specify a new BEA Home directory:
/home/BEA Specify a new BEA Home directory: /home/BEA
===============================================================================
1- Modify Current Selection (/home/BEA/tuxedo9.1)
2- Use Current Selection (/home/BEA/tuxedo9.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 (使用当前选项) ===============================================================================
Please Review the Following Before Continuing:
Disk Space Information (for Installation Target):
Required: 161,016,001 bytes
Available: 7,033,978,880 bytes
PRESS <ENTER> TO CONTINUE:
(回车,继续安装) ===============================================================================
InstallAnywhere is now ready to install Tuxedo 9.1 onto your system at the
PRESS <ENTER> TO INSTALL:
(回车,安装软件) ===============================================================================
[==================|==================|==================|==================]
===============================================================================
[==================|==================|==================|==================]
[-------------------------------|-------------------------------|------------------------------|------------------------------]
===============================================================================
Configure tlisten Service
-------------------------
Password :
bea (tlisten
密码) Verify Password:
bea (tlisten
密码) ===============================================================================
Would you like to install SSL Support?
ENTER THE NUMBER FOR YOUR CHOICE, OR PRESS <ENTER> TO ACCEPT THE DEFAULT:
===============================================================================
License Installation Choice
---------------------------
Would you like to install your license now?
ENTER THE NUMBER FOR YOUR CHOICE, OR PRESS <ENTER> TO ACCEPT THE DEFAULT:
===============================================================================
Congratulations. Tuxedo 9.1 has been successfully installed to:
PRESS <ENTER> TO EXIT THE INSTALLER:
(回车,退出) [bea@mail 9.1]$
cd /home/BEA/tux/ (产品目录) bin help lib samples
udataobj cobinclude include locale tux.env uninstaller
[bea@mail tux]$
cd udataobj/ 3rd_party_licenses.txt mib_views.V tmib_views.V
dmadmin32 security tpldap
DMTYPE sendlen0_unsafe_tpmbenc tuxmetasvc.xsd
java SysRegiiop.rdp Usysfl32
jolt SysRegtgiop.rdp Usysflds
jrep.f32 System.rdp webgui
[bea@mail udataobj]$
cp /home/tuxedo/9.1/tux_9.1.txt ./lic.txt 3rd_party_licenses.txt
lic.txt (新增) tlisten.pw
dmadmin mib_views.V tmib_views.V
evt_mib sendlen0_unsafe_tpmbenc tuxmetasvc.xsd
jolt SysRegiiop.rdp Usysfl32
jrep.f32 SysRegtgiop.rdp Usysflds
jwsladmin.f32 System.rdp webgui
[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
[bea@mail tux]$ env |grep TUX
(输出为空) [bea@mail tux]$
. 空格 . /tux .env [bea@mail tux]$
env|grep TUX [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
1.
运行/home/BEA/tux/samples/atmi
目录下的 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]$ cd simpapp/
README simpcl.c simpserv.c ubbsimple
[bea@mail simpapp]$
cp /home/BEA/tux/tux.env . (拷贝环境文件到当前目录下) README simpcl.c simpserv.c
tux.env ubbsimple
-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
(配置文件) 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
APPDIR=/home/BEA/simpapp; export APPDIR TUXCONFIG=$APPDIR/tuxconfig; export TUXCONFIG [bea@mail simpapp]$
. 空格 ./tux.env [bea@mail simpapp]$
env |grep APP [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.
#IPCKEY <Replace with a valid IPC Key>
APPDIR="
/home/BEA/simpapp"
TUXCONFIG="
/home/BEA/simpapp/tuxconfig"
# APPDIR="/home/me/simpapp"
# TUXCONFIG="/home/me/simpapp/tuxconfig"
LMID=simple GRPNO=1 OPENINFO=NONE
simpserv SRVGRP=GROUP1 SRVID=1
[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
-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]$ tmboot -y
Booting all admin and server processes in /home/BEA/simpapp/tuxconfig
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
Booting admin processes ...
process id=22752 ... Started.
Booting server processes ...
process id=22753 ... Started.
[bea@mail simpapp]$ tmboot -y
Booting all admin and server processes in /home/BEA/simpapp/tuxconfig
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
Booting admin processes ...
process id=22752 ... Started.
Booting server processes ...
process id=22753 ... 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
[bea@mail simpapp]$
./client hello Returned string is:
HELLO 程序功能:使客户端 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.
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 )
[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
每次执行client
程序必须使用. ./tux.env
设置环境变量 [bea@mail simpapp]$
tmboot -y Booting all admin and server processes in /home/BEA/simpapp/tuxconfig
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
Booting admin processes ...
process id=22837 ... Started.
Booting server processes ...
process id=22838 ... Started.
[bea@mail simpapp]$
tmshutdown -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
[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.
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 )
本文转自 pgmia 51CTO博客,原文链接:http://blog.51cto.com/heyiyi/117953