Tuxedo Getting Started

Source: Internet
Author: User

To increase user execution permissions for a file:

Official website Download Tuxedo111120_64_linux_01_x86.bin

Su//Enter root operation to prevent insufficient permissions

Create a folder to do the installation path for the tuxedo file

mkdir/opt/tuxedo/
Ls-l//view User execution permissions
You will find that the created user does not have permission to execute the file, and then authorize
chmod 755 Tuxedo111120_32_linux_01_x86.bin

Can./tuxedo111130_64_linux_01_x86.bin Direct graphical installation, installed using command mode below
./tuxedo111130_64_linux_01_x86.bin-i Console
Executes the installation file,-I console makes it installed in the character interface

Confirmation of installation Completion:

Go to the installation directory and add execute permissions for the Tux.env file
chmod 755 tux.env
. ./tux.env
env | grep UX
Shown below:
Selinux_init=yes
Tuxdir=/opt/tuxedo/tuxedo11gr1
View version Information
Tmadmin-v

Info:oracle Tuxedo, Version 11.1.1.2.0, 64-bit, Patch level (none)

Run Example:

Enter the installation directory of the Tuxedo, with some examples from the Samples directory
Cd/opt/tuxedo/tuxedo11gr1/samples/atmi
All the students who know Tuxedo know that there is a famous example Simpapp, its function is to convert the lowercase letters sent by the client to uppercase to return to the client. Let's take this example and run it up.
Pre-Preparation:
Cp-r simpapp//opt/tuxedo/for ease of operation, to prevent data modification or loss, the Simpapp copy to the/opt/tuxedo/directory below.
Cp-r tux.env/opt/tuxedo/simpapp/, copy the tux.env configuration file under the Tuxedo installation directory to the/opt/tuxedo/simpapp/directory

Configuration Run Simpapp Example
Configuring the Tux.env File
VI tux.env Modify the configuration files and add them to the last side
Appdir=/opt/tuxedo/simpapp; Export Appdir
tuxconfig= $APPDIR/tuxconfig; Export Tuxconfig
Lang=c; Export LANG

command hostname//view native hostname

VI ubbsimple, configuring the Ubbsimple file, this is the entire contents of the file that I modified according to my example

# (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 <bracketed> items with the appropriate values.

*resources
#IPCKEY <replace with a valid IPC key>

#Example:
IPCKEY123456

Domainidsimpapp
Mastersimple
MAXACCESSERS10
MAXSERVERS5
MAXSERVICES10
Modelshm
Ldbaln

*machines
DEFAULT:
appdir= "/opt/tuxedo/simpapp"
Tuxconfig= "/opt/tuxedo/simpapp/tuxconfig"
Tuxdir= "/opt/tuxedo/tuxedo11gr1"
#Example:
#APPDIR = "/home/me/simpapp"
#TUXCONFIG = "/home/me/simpapp/tuxconfig"
#TUXDIR = "/usr/tuxedo"

Tfjus Lmid=simple//tfjus is the native hostname name, this sentence is just a description, it is best to delete the comment, because this file does not recognize//represent the comment

#Example:
#beatux Lmid=simple

*groups
GROUP1
Lmid=simplegrpno=1openinfo=none

*servers
DEFAULT:
clopt= "-A"

Simpservsrvgrp=group1 srvid=1

*services
TOUPPER


Cannot contain Chinese comments

Note: The paths to the three options for Appdir, Tuxconfig, and Tuxdir are consistent with the configuration in the Tux.env file.
Modify complete, save exit

Online said need to configure the user root directory. PROFILE,.BASHRC i configured, no error, delete the configuration, also did not error, the original rational things to be strengthened, the scientific road is still very far, error on the configuration try it

. Profile
Tuxdir=/opt/tuxedo/tuxedo11gr1
Path= $PATH: $TUXDIR/bin
Ld_library_path= $LD _library_path: $TUXDIR/lib
Tuxconfig=/opt/tuxedo/simpapp/tuxconfig
Export Tuxdir
Export PATH
Export Ld_library_path
Export Tuxconfig

. BASHRC
Export Lang=c

Make configuration effective

Source. Profile

source. BASHRC

Start running:


. ./tux.env
Tmloadcf-y ubbsimple//Run this command without any hint, indicating that everything is OK
If the CMDTUX_CAT:883:ERROR:TMLOADCF cannot run on an active node appears
Just turn the process off, and in the back, say how to close it.
Buildserver-f simpserv.c-o simpserv-s TOUPPER//Compiling server-side programs
Buildclient-f Simpcl.c-o SIMPCL//Compiling client program
Ubuntu:
Buildclient-o simpcl-f "-xlinker--no-as-needed simpcl.c"
It should be explained here that the Buildserver and Buildclient commands require the system to be installed GCC to be executed, gcc-v to see if GCC is installed in this machine, and the installation of GCC is not described here.
Tmboot-y START Process
//
Info:oracle Tuxedo, Version 11.1.1.2.0, 64-bit, Patch level (none)

Booting admin processes ...

EXEC bbl-a:
Process id=2658 ... Started.

Booting Server processes ...

EXEC simpserv-a:
Process id=2659 ... Started.
2 processes started.
//

Ps-ef Viewing the startup process
Root 2658 1653 0 16:50 pts/19 00:00:00 bbl-c dom=simpapp-g 30002-i 0
Root 2659 1653 0 16:50 pts/19 00:00:00 simpserv-c dom=simpapp-g 1-i
Root 2936 2614 0 16:54 pts/19 00:00:00 ps-ef
Can find the above several processes the surface has started successfully

Start Validation:

[Email PROTECTED]:/OPT/TUXEDO/SIMPAPP#./SIMPCL Hello
Returned string Is:hello
The client sends a lowercase hello, and the server side returns an uppercase Hello
TMSHUTDOWN-Y//Stop process

Communication using the Wlan0 physical network card via the TCP/IP protocol

Modify the Tux.env file to continue adding later:
wsnaddr=//192.168.30.177:3200; Export WSNADDR

Modify the Ubbsimple file
Tfjus Lmid=simple
Maxwsclients=5


Simpserv Srvgrp=group1 srvid=1
WSL Srvgrp=group1 srvid=10
clopt= "-A---N//192.168.30.177:3200"

Tmloadcf-y ubbsimple//Compiling files
Buildclient-f Simpcl.c-o ws-w
Ubuntu:
Buildclient-o ws-f "-xlinker--no-as-needed simpcl.c"-W
Tmboot-y//START process

//
Booting all admin and server processes In/opt/tuxedo/simpapp/tuxconfig
Info:oracle Tuxedo, Version 11.1.1.2.0, 64-bit, Patch level (none)

Booting admin processes ...

EXEC bbl-a:
Process id=3301 ... Started.

Booting Server processes ...

EXEC simpserv-a:
Process id=3302 ... Started.
EXEC wsl-a---N//192.168.30.177:3200:
Process id=3303 ... Started.
3 processes started.
//
./ws Hello

Returned string Is:hello

Tuxedo Getting Started

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.