Posted by: sutrisno | January 20, 2013

Install Jakarta -tomcat di Red hat

Ini adalah catatan sedikit cara install jakarta-tomcat
Paketnya:
1.j2sdk-1_4_2_13-linux-i586.bin
2.apache-tomcat-6.0.29.zip

install java
root@sutrisno$ chmod +x j2sdk-1_4_2_13-linux-i586.bin
root@sutrisno$ ./j2sdk-1_4_2_13-linux-i586.bin
Sun Microsystems, Inc.
Binary Code License Agreement
for the
JAVATM 2 SOFTWARE DEVELOPMENT KIT (J2SDK), STANDARD EDITION,
VERSION 1.4.2_X

SUN MICROSYSTEMS, INC. (“SUN”) IS WILLING TO LICENSE THE
SOFTWARE IDENTIFIED BELOW TO YOU ONLY UPON THE CONDITION
THAT YOU ACCEPT ALL OF THE TERMS CONTAINED IN THIS BINARY
CODE LICENSE AGREEMENT AND SUPPLEMENTAL LICENSE TERMS
(COLLECTIVELY “AGREEMENT”). PLEASE READ THE AGREEMENT
CAREFULLY. BY DOWNLOADING OR INSTALLING THIS SOFTWARE, YOU
ACCEPT THE TERMS OF THE AGREEMENT. INDICATE ACCEPTANCE BY
SELECTING THE “ACCEPT” BUTTON AT THE BOTTOM OF THE
AGREEMENT. IF YOU ARE NOT WILLING TO BE BOUND BY ALL THE
TERMS, SELECT THE “DECLINE” BUTTON AT THE BOTTOM OF THE
AGREEMENT AND THE DOWNLOAD OR INSTALL PROCESS WILL NOT
CONTINUE.

1.DEFINITIONS. “Software” means the identified above in
binary form, any other machine readable materials
(including, but not limited to, libraries, source files,
header files, and data files), any updates or error

—- sampai yes misalnya kita install di /usr/java/

kemudian kita di .bash_profilnya

# .bash_profile

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi

# User specific environment and startup programs

PATH=$PATH:$HOME/bin

export PATH
unset USERNAME

JAVA_HOME=/usr/java/j2sdk1.4.2_13
export JAVA_HOME

Install Apace tomcat

Extrak Jakarta-tomcat
apache-tomcat-6.0.29.zip
masuk ketempat kita mengektrak file tersebut
service menjalaninya
[root@sutrisno ~]$ cd Enterprise/jakarta-tomcat-4.1.27-LE-jdk14/bin/
[root@sutrisno bin]$ ./startup.sh
Using CATALINA_BASE: /home/sutrisno/Enterprise/jakarta-tomcat-4.1.27-LE-jdk14
Using CATALINA_HOME: /home/sutrisno/Enterprise/jakarta-tomcat-4.1.27-LE-jdk14
Using CATALINA_TMPDIR: /home/sutrisno/Enterprise/jakarta-tomcat-4.1.27-LE-jdk14/temp
Using JAVA_HOME: /usr/java/j2sdk1.4.2_13
[root@sutrisno bin]$
[root@sutrisno bin]$ ./shutdown.sh
Using CATALINA_BASE: /home/sutrisno/Enterprise/jakarta-tomcat-4.1.27-LE-jdk14
Using CATALINA_HOME: /home/sutrisno/Enterprise/jakarta-tomcat-4.1.27-LE-jdk14
Using CATALINA_TMPDIR: /home/sutrisno/Enterprise/jakarta-tomcat-4.1.27-LE-jdk14/temp
Using JAVA_HOME: /usr/java/j2sdk1.4.2_13
Catalina.stop: java.net.ConnectException: Connection refused
java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
at java.net.Socket.connect(Socket.java:464)
at java.net.Socket.connect(Socket.java:414)
at java.net.Socket.(Socket.java:310)
at java.net.Socket.(Socket.java:125)
at org.apache.catalina.startup.Catalina.stop(Catalina.java:581)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:402)
at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)

script supaya otomatis kita buat scrip di taruh di rc.local
startnya
#!/bin/sh
export JAVA_HOME=/usr/java/j2sdk1.4.2_13
export IBCHOME=/home/sutrisno/Enterprise/IBCSolution/deploypackage/ibcsolution
export IBC_HOME=/home/sutrisno/Enterprise/IBCSolution/deploypackage/ibcsolution

/home/sutrisno/Enterprise/jakarta-tomcat-4.1.27-LE-jdk14/bin/startup.sh

shudownnya
#!/bin/sh
export JAVA_HOME=/usr/java/j2sdk1.4.2_13
export IBCHOME=/home/sutrisno/Enterprise/IBCSolution/deploypackage/ibcsolution
export IBC_HOME=/home/sutrisno/Enterprise/IBCSolution/deploypackage/ibcsolution

/home/sutrisno/Enterprise/jakarta-tomcat-4.1.27-LE-jdk14/bin/startup.sh


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Categories

%d bloggers like this: