关于tuxedo的安装
Posted cc66
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了关于tuxedo的安装相关的知识,希望对你有一定的参考价值。
最近公司要求用tuxedo这个中间件开启snmp,然后以前一直没有接触过tuxedo,所以根据网上的资源,将tuxedo的安装过程记录一下,供大家参考
tuxedo安装到运行的步骤
创建用户
[[email protected] ~]# useradd tuxedo
[[email protected] ~]# passwd tuxedo
Changing password for user tuxedo.
New UNIX password:
BAD PASSWORD: it is based on a dictionary word
Retype new UNIX password:
passwd: all authentication tokens updated successfully.
Changing password for user tuxedo.
New UNIX password:
BAD PASSWORD: it is based on a dictionary word
Retype new UNIX password:
passwd: all authentication tokens updated successfully.
下载tuxedo111130_64_Linux_01_x86.bin,放到/home/tuxedo目录下
[[email protected] tuxedo]# chmod 777 tuxedo111130_64_Linux_01_x86.bin //让它变成可执行权限
[[email protected] tuxedo]# ./tuxedo111130_64_Linux_01_x86.bin -i console
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 11.1.1.3.0 (created with InstallAnywhere by Macrovision)
-------------------------------------------------------------------------------
===============================================================================
Introduction
------------
InstallAnywhere will guide you through the Tuxedo 11.1.1.3.0 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 11.1.1.3.0 installation.You
must re-install Tuxedo 11.1.1.3.0. For more information, see "Preparing to
Install the Oracle Tuxedo System" in the Tuxedo 11.1.1.3.0 Installation Guide.
PRESS TO CONTINUE:
===============================================================================
Choose Install Set
------------------
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 TO ACCEPT THE DEFAULT
: 1
===============================================================================
Choose Oracle Home
------------------
1- Create new Oracle Home
2- Use existing Oracle Home
Enter a number: 1
Specify a new Oracle Home directory: /home/tuxedo
===============================================================================
Choose Product Directory
------------------------
1- Modify Current Selection (/home/tuxedo/tuxedo11gR1)
2- Use Current Selection (/home/tuxedo/tuxedo11gR1)
Enter a number: 2
Install Samples (Y/N): Y
===============================================================================
Pre-Installation Summary
------------------------
Please Review the Following Before Continuing:
Product Name:
Tuxedo 11.1.1.3.0
Install Folder:
/home/tuxedo/tuxedo11gR1
Link Folder:
/root
Required Space:
187 MB
Available Space:
44367 MB
PRESS TO CONTINUE:
===============================================================================
Ready To Install
----------------
InstallAnywhere is now ready to install Tuxedo 11.1.1.3.0 onto your system at
the following location:
/home/tuxedo/tuxedo11gR1
PRESS TO INSTALL:
===============================================================================
Installing...
-------------
[==================|==================|==================|==================]
[------------------|------------------|------------------|------------------]
===============================================================================
Configure tlisten Service
-------------------------
Password:
Verify Password:
Password Accepted! Please wait...
===============================================================================
SSL Installation Choice.
------------------------
Would you like to install SSL Support?
->1- Yes
2- No
ENTER THE NUMBER FOR YOUR CHOICE, OR PRESS TO ACCEPT THE DEFAULT:
: 2
===============================================================================
Installation Complete
---------------------
Congratulations. Tuxedo 11.1.1.3.0 has been successfully installed to:
/home/tuxedo/tuxedo11gR1
PRESS TO EXIT THE INSTALLER:
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 11.1.1.3.0 (created with InstallAnywhere by Macrovision)
-------------------------------------------------------------------------------
===============================================================================
Introduction
------------
InstallAnywhere will guide you through the Tuxedo 11.1.1.3.0 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 11.1.1.3.0 installation.You
must re-install Tuxedo 11.1.1.3.0. For more information, see "Preparing to
Install the Oracle Tuxedo System" in the Tuxedo 11.1.1.3.0 Installation Guide.
PRESS TO CONTINUE:
===============================================================================
Choose Install Set
------------------
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 TO ACCEPT THE DEFAULT
: 1
===============================================================================
Choose Oracle Home
------------------
1- Create new Oracle Home
2- Use existing Oracle Home
Enter a number: 1
Specify a new Oracle Home directory: /home/tuxedo
===============================================================================
Choose Product Directory
------------------------
1- Modify Current Selection (/home/tuxedo/tuxedo11gR1)
2- Use Current Selection (/home/tuxedo/tuxedo11gR1)
Enter a number: 2
Install Samples (Y/N): Y
===============================================================================
Pre-Installation Summary
------------------------
Please Review the Following Before Continuing:
Product Name:
Tuxedo 11.1.1.3.0
Install Folder:
/home/tuxedo/tuxedo11gR1
Link Folder:
/root
Required Space:
187 MB
Available Space:
44367 MB
PRESS TO CONTINUE:
===============================================================================
Ready To Install
----------------
InstallAnywhere is now ready to install Tuxedo 11.1.1.3.0 onto your system at
the following location:
/home/tuxedo/tuxedo11gR1
PRESS TO INSTALL:
===============================================================================
Installing...
-------------
[==================|==================|==================|==================]
[------------------|------------------|------------------|------------------]
===============================================================================
Configure tlisten Service
-------------------------
Password:
Verify Password:
Password Accepted! Please wait...
===============================================================================
SSL Installation Choice.
------------------------
Would you like to install SSL Support?
->1- Yes
2- No
ENTER THE NUMBER FOR YOUR CHOICE, OR PRESS TO ACCEPT THE DEFAULT:
: 2
===============================================================================
Installation Complete
---------------------
Congratulations. Tuxedo 11.1.1.3.0 has been successfully installed to:
/home/tuxedo/tuxedo11gR1
PRESS TO EXIT THE INSTALLER:
安装完成;
[[email protected] atmi]# cd /home/tuxedo/tuxedo11gR1/samples/atmi //进入自带例子目录
[[email protected] atmi]# cp -R simpapp /home/tuxedo/tuxedo11gR1/ //cp例子到tuxedo11gR1目录
要编译运行Simpapp例子,使其能够为本地客户端提供服务,需要六个步骤:1)设置环境变量;2)修改编译配置文件;3)编译源程序;4)启动服务;5)运行客户端;6)关闭服务
1)设置环境变量:设置环境变量, profile文件添加以下环境变量,注意我们添加的APPDIR目录,是程序的例子,TUXDIR是tuxedo安装的目录,记得自己变更
[[email protected] etc]# vi profile
#===========tuxedo=========
TUXDIR=/home/tuxedo/tuxedo11gR1; export TUXDIR
JAVA_HOME_TUXDIR=$TUXDIR/jre; export JAVA_HOME_TUXDIR
JVMLIBS=$JAVA_HOME_TUXDIR/lib/amd64/server:$JAVA_HOME_TUXDIR/jre/bin
PATH=$PATH:$TUXDIR/bin:$JAVA_HOME_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:$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
APPDIR=/home/tuxedo/tuxedo11gR1/simpapp;export APPDIR
TUXCONFIG=$APPDIR/tuxconfig;export TUXCONFIG
WSNADDR=//20.5.193.15:9999;export WSNADDR
export LANG=c
#===========tuxedo===========
[[email protected] etc]# source profile //生效配置文件
[[email protected] atmi]# echo $APPDIR //查看环境变量是否已生效
/home/tuxedo/tuxedo11gR1/simpapp
/home/tuxedo/tuxedo11gR1/simpapp
2)修改编译配置文件 /home/tuxedo/tuxedo11gR1/simpapp/ubbsimple
[[email protected] simpapp]# cat ubbsimple
# (c) 2003 BEA Systems, Inc. All Rights Reserved.
#ident "@(#) samples/atmi/simpapp/ubbsimple $Revision: 1.7 $"
#Skeleton UBBCONFIG file for the TUXEDO Simple Application.
#Replace the items with the appropriate values.
*RESOURCES
IPCKEY 123456
#Example:
#IPCKEY 123456
DOMAINID simpapp
MASTER simple
MAXACCESSERS 10
MAXSERVERS 5
MAXSERVICES 10
MODEL SHM
LDBAL N
*MACHINES
DEFAULT:
APPDIR="/home/tuxedo/tuxedo11gR1/simpapp"
TUXCONFIG="/home/tuxedo/tuxedo11gR1/simpapp/tuxconfig"
TUXDIR="/home/tuxedo/tuxedo11gR1"
#Example:
# APPDIR="/home/me/simpapp"
# TUXCONFIG="/home/me/simpapp/tuxconfig"
# TUXDIR="/usr/tuxedo"
# //psbccfcftp 我自己的机器名 hostname显示出来
psbccfcftp LMID=simple
#Example:
#beatux LMID=simple
*GROUPS
GROUP1
LMID=simple GRPNO=1 OPENINFO=NONE
*SERVERS
DEFAULT:
CLOPT="-A"
simpserv SRVGRP=GROUP1 SRVID=1
*SERVICES
TOUPPER
[[email protected] simpapp]# tmloadcf -y ubbsimple //注: tmloadcf -y ubbsimple之后生成tuxconfig文件
# (c) 2003 BEA Systems, Inc. All Rights Reserved.
#ident "@(#) samples/atmi/simpapp/ubbsimple $Revision: 1.7 $"
#Skeleton UBBCONFIG file for the TUXEDO Simple Application.
#Replace the items with the appropriate values.
*RESOURCES
IPCKEY 123456
#Example:
#IPCKEY 123456
DOMAINID simpapp
MASTER simple
MAXACCESSERS 10
MAXSERVERS 5
MAXSERVICES 10
MODEL SHM
LDBAL N
*MACHINES
DEFAULT:
APPDIR="/home/tuxedo/tuxedo11gR1/simpapp"
TUXCONFIG="/home/tuxedo/tuxedo11gR1/simpapp/tuxconfig"
TUXDIR="/home/tuxedo/tuxedo11gR1"
#Example:
# APPDIR="/home/me/simpapp"
# TUXCONFIG="/home/me/simpapp/tuxconfig"
# TUXDIR="/usr/tuxedo"
# //psbccfcftp 我自己的机器名 hostname显示出来
psbccfcftp LMID=simple
#Example:
#beatux LMID=simple
*GROUPS
GROUP1
LMID=simple GRPNO=1 OPENINFO=NONE
*SERVERS
DEFAULT:
CLOPT="-A"
simpserv SRVGRP=GROUP1 SRVID=1
*SERVICES
TOUPPER
[[email protected] simpapp]# tmloadcf -y ubbsimple //注: tmloadcf -y ubbsimple之后生成tuxconfig文件
3)编译源程序
[[email protected] simpapp]# buildclient -o simpcl -f simpcl.c //编译客户端程序
simpcl.c: In function ‘main‘:
simpcl.c:43: warning: incompatible implicit declaration of built-in function ‘strlen‘
simpcl.c:60: warning: incompatible implicit declaration of built-in function ‘strcpy‘
[[email protected] simpapp]# buildserver -o simpserv -f simpserv.c -s TOUPPER //编译服务端程序
simpcl.c: In function ‘main‘:
simpcl.c:43: warning: incompatible implicit declaration of built-in function ‘strlen‘
simpcl.c:60: warning: incompatible implicit declaration of built-in function ‘strcpy‘
[[email protected] simpapp]# buildserver -o simpserv -f simpserv.c -s TOUPPER //编译服务端程序
4)启动服务;
[[email protected] simpapp]# tmboot -y //启动tuxedo服务
Booting all admin and server processes in /home/tuxedo/tuxedo11gR1/simpapp/tuxconfig
INFO: Oracle Tuxedo, Version 11.1.1.3.0, 64-bit, Patch Level (none)
Booting admin processes ...
exec BBL -A :
process id=26793 ... Started.
Booting server processes ...
exec simpserv -A :
process id=26795 ... Started.
2 processes started.
Booting all admin and server processes in /home/tuxedo/tuxedo11gR1/simpapp/tuxconfig
INFO: Oracle Tuxedo, Version 11.1.1.3.0, 64-bit, Patch Level (none)
Booting admin processes ...
exec BBL -A :
process id=26793 ... Started.
Booting server processes ...
exec simpserv -A :
process id=26795 ... Started.
2 processes started.
5)运行客户端;
[[email protected] simpapp]# ./simpcl hello //测试客户端程序
Returned string is: HELLO
Returned string is: HELLO
6)关闭服务
[[email protected] simpapp]# tmshutdown -y //关闭tuxedo
Shutting down all admin and server processes in /home/tuxedo/tuxedo11gR1/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.
Shutting down all admin and server processes in /home/tuxedo/tuxedo11gR1/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.
连接远程的tuxedo service
1.编译客户端:buildclient -o simpcl -f simpcl.c -w //编译客户端程序 需要带上-w参数
2.在客户端机器需要把WSNADDR环境变量设置成服务端地址和端口
3.测试客户端的时候就一样 ./simpcl hello
以上是关于关于tuxedo的安装的主要内容,如果未能解决你的问题,请参考以下文章