一、预备:
1:关闭防火墙
2:配置机器名:/etc/hosts
二、配置master机器:(配置如下)
*RESOURCES
IPCKEY 123456
DOMAINID simpapp
MASTER TUX1,TUX2
MAXACCESSERS 20
MAXSERVERS 10
MAXSERVICES 10
MODEL MP
OPTIONS LAN
LDBAL N
*MACHINES
tux1 LMID=TUX1
APPDIR="/home/oracle/simpapp"
TUXCONFIG="/home/oracle/simpapp/tuxconfig"
TUXDIR="/home/oracle/tux11"
MAXWSCLIENTS=5
tux2 LMID=TUX2
APPDIR="/home/oracle/simpapp"
TUXCONFIG="/home/oracle/simpapp/tuxconfig"
TUXDIR="/home/oracle/tux11"
*GROUPS
GROUP1 LMID=TUX1 GRPNO=1 OPENINFO=NONE
GROUP2 LMID=TUX2 GRPNO=10 OPENINFO=NONE
*SERVERS
DEFAULT:
CLOPT="-A"
simpserv SRVGRP=GROUP1 SRVID=10
simpserv SRVGRP=GROUP2 SRVID=10
*SERVICES
TOUPPER
*NETWORK
TUX1 NADDR="//192.168.174.10:4000" NLSADDR="192.168.174.10:3000"
TUX2 NADDR="//192.168.174.11:4000" NLSADDR="192.168.174.11:3000"
三、配置remote机器
1,配置环境变量tux.env
TUXDIR=/home/oracle/tux11; 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; export LD_LIBRARY_PATH
WEBJAVADIR=TUXDIR/udataobj/webgui/java; export WEBJAVADIR
LANG=C; export LANG
APPDIR=/home/oracle/simpapp;export APPDIR
TUXCONFIG=/home/oracle/simpapp/tuxconfig;export TUXCONFIG
2,编译服务程序:
buliderserver -o simpserv -f simpserv.c -s TOUPPER
3,启动tlisten
tlisten -l //192.168.174.10:3000
4,查看tlisten是否启动
ps -ef | grep bea