A.Installation
B.Examples:simpapp,bankapp --Local shm mode
C.WSL Mode Examples:simpapp
D.Deployment of HA apps
=================================================================
A.Installation1.
useradd tuxedo
password tuxedo
groupadd BEA
usermod -g BEA tuxedo
2.
logout,then login tuxedo account.
copy tuxedo install file/key into:home/tuxedo/
or
【under root account】copy tuxedo installation file/key into:
home/tuxedo/
then
chown -R tuxedo.BEA tuxedo
3.
cd tuxedo/
vim .bashrc
将/home/tuxedo/tuxedo10.0下的 tux.env 中的环境变量复制到.bashrc中
4.
xhost +
su - tuxedo
java -version //confirm java's installation
chmod +x tuxedo100_64_linux_01_x64.bin
./tuxedo100_64_linux_01_x64.bin
.......(installation).......
5.使用tmadmin或者tmboot等命令如果出现一般的响应,则安装成功。
B Tuxedo例子--Simpapp,Bankapp1.Simpapp1) cd /home/tuxedo/tuxedo10.0/samples/atmi/
cp -r simpapp/ /home/tuxedo
cd /home/tuxedo/simpapp
2) buildclient -f simpcl.c -o simpcl
buildserver -f simpserv.c -o simpserv -s TOUPPER
3) gedit ubbsimple
修改配置:
IPCKEY 123456(任意6位数)
APPDIR="/home/tuxedo/simpapp"
TUXCONFIG="/home/tuxedo/simpapp/tuxconfig"
TUXDIR="/home/tuxedo/tuxedo10.0"
Martin2(主机名) LMID=simple
cd..
gedit .bashrc
export APPDIR="/home/tuxedo/simpapp"
export TUXCONFIG="/home/tuxedo/simpapp/tuxconfig"
logout..
login..
4) cd simpapp
tmloadcf -y ubbsimple
tmboot -y
会看到类似显示:
Booting all admin and server processes in /home/tuxedo/simpapp/tuxconfig
INFO: BEA Tuxedo, Version 10.0, 64-bit, Patch Level (none)
INFO: Serial #: 454493271161-2664984303294, Expiration NONE, Maxusers 1000000
INFO: Licensed to: Customer
Booting admin processes ...
exec BBL -A :
process id=17985 ... Started.
Booting server processes ...
exec simpserv -A :
process id=17986 ... Started.
2 processes started.
5) ./simpcl [string]
结果:变大写。
6) tmadmin
psc
psr //服务simpserv
7) ctrl+D退出tmadmin
tmshutdown –y
2.Bankapp1)
cd /home/tuxedo/tuxedo10.0/samples/atmi/
cp -r bankapp/ /home/tuxedo
cd /home/tuxedo/bankapp
2) read README and Configure bankapp【SHM】
1.copy all of the source files from
/samples/atmi/bankapp into /home/tuxedo/.
2.Edit bankvar
TUXDIR=/home/tuxedo/tuxedo10.0
APPDIR=/home/tuxedo/bankapp
BLKSIZE=512
3.Edit bankapp.mk
TUXDIR=/home/tuxedo/tuxedo10.0
APPDIR=/home/tuxedo/bankapp
BLKSIZE=512
3.1
nohup make -f bankapp.mk&
note:Check nohup.out to make sure the build was successful.
4.Edit the ubbshm
IPCKEY //..
UID/GID //id tuxedo
//uname -n
//Root directory of the TUXEDO System.
//APPDIR
6.Create Site Databases
. ./bankvar
./crbank
7.Create TUXCONFIG File
tmloadcf -y ubbshm
8.Create Transaction Log
crtlog -m
9.Boot Bankapp
tmboot -y
10.Populate
Populate
11.Testing
./audit -a/t
./bankclt
12.Shut Down
tmshutdown -y
3) run bankapp:
$audit -a 1
【Refence】
C Tuxedo例子--WSL MODE
1.Simpapp
1.
cp {TUXDIR}/sample/atmi/simpapp ~
2.
Find tux.env in {TUXDIR}
Edit .bashrc
add tux.env's content to .bashrc/.bash_profile
3.
cd {APPDIR}
Edit default Para.:TUXDIR,TUXCONFIG,APPDIR
/*WSL模式*/
*MACHINES
--add:
MAXWSCLIENTS=...
*GROUPS
--add:
WSGRP LMID=... GRPNO=..
*SERVERS
--add:
WSL SRVID=10 SRVGRP=WSGRP RESTART=Y MAXGEN=10 GRACE=3600
CLOPT="-A -- -n //ipaddr:port -m 5 -M 10 -x 5"
4.
/*本地客户端*/
buildclient -o simpcl -f simpcl.c
/*远程客户端*/
buildclient -o wsimpcl -f simpcl.c -w
/*使用wsimpcl之前*/
export WSNADDR=//server'ip:port
/*服务器*/
buildserver -o simpserv -f simpserv.c -s TOUPPER
5.
/*服务器端*/
tmloadcf -y ubbsimple
tmboot -y
Server Check: netstat -an | grep 7110
tmshutdown -y
D Deployment HA apps
For Each App
Deployment:
1. edit APP_var
set TUXDIR PATH TUXCONFIG APPDIR ....
2. Delete all ULOG*
Boot Steps:
1. EnvFiles Load
2. tmloadcf ubbxxx
3. tmboot -y
阅读(1128) | 评论(0) | 转发(0) |