Instalasi Tomcat di Centos

Langkah I

Silakan instal paket-paket dasar Java

# yum install rpm-build gcc-java

Langkah II

Silakan tambahkan

[jpackage16-generic]
name=JPackage 1.6 Generic
baseurl=ftp://jpackage.hmdc.harvard.edu/JPackage/1.6/generic/free/
gpgcheck=1

dan

[jpackage16-rhel40] 
name=JPackage 1.6 for Red Hat Enterprise Linux 4
baseurl=ftp://jpackage.hmdc.harvard.edu/JPackage/1.6/redhat-el-4.0/free/
gpgcheck=1

pada “/etc/yum.repos.d/NAMA-REPO.repo” (tanpa kutip)

Langkah III

Kita harus mengimport Jpackage GPG key

# rpm --import http://www.jpackage.org/jpackage.asc

Langkah IV

Silakan lakukan instalasi di /usr/local/src di sistem linux Anda. Bisa juga di /tmp.

# cd /usr/local/src
# wget ftp://jpackage.hmdc.harvard.edu/JPackage/1.6/generic/non-free/SRPMS/java-1.4.2-sun-1.4.2.09-1jpp.nosrc.rpm
# wget ftp://jpackage.hmdc.harvard.edu/JPackage/1.6/generic/non-free/SRPMS/jta-1.0.1-0.b.4jpp.nosrc.rpm

Langkah V

Download beberapa file yg diperlukan ke /usr/src/redhat/SOURCES:

  • jta-1_0_1B-classes.zip. URLnya di http://java.sun.com/products/jta/
  • j2sdk-1_4_2_09-linux-i586.bin. URLnya di http://javashoplm.sun.com/ECom/docs/Welcome.jsp?StoreId=22&PartDetailId=j2sdk-1.4.2_09-oth-JPR&SiteId=JSC&TransactionId=noreg

Langkah VI

Silakan kita menginstal paket dengan urutan seperti di bawah ini:

# rpmbuild --rebuild /usr/local/src/java-1.4.2-sun-1.4.2.09-1jpp.nosrc.rpm
# yum install xorg-x11-deprecated-libs
# rpm -ivh /usr/src/redhat/RPMS/i586/java-1.4.2-sun-devel-1.4.2.09-1jpp.i586.rpm
# rpmbuild --rebuild --without javadoc /usr/local/src/jta-1.0.1-0.b.4jpp.nosrc.rpm
# rpm -ivh /usr/src/redhat/RPMS/noarch/jta-1.0.1-0.b.4jpp.noarch.rpm

Langkah VII

Terakhir, silakan install tomcat nya

# yum install tomcat5 tomcat5-admin-webapps

Resita has written 706 articles