Home > Linux > Install Apache tomcat di Debian

Install Apache tomcat di Debian

Langkah2 nya adalah sebagai berikut :
1. Install tomcat
download dahulu tomcat terbaru di http://tomcat.apache.org/.
taruh di folder /usr/local
tar -zxvf apache-tomcat-6.0.20.tar.gz
akan muncul apache-tomcat-6.0.20

lalu rubah folder tersebut
mv apache-tomcat-6.0.18 /usr/local/tomcat6

2. create init-script untuk tomcat6 => vim /etc/init.d/tomcat6

#!/bin/sh
# Tomcat 6 init-script
case $1 in
start)
sh /usr/local/tomcat6/bin/startup.sh
;;
stop)
sh /usr/local/tomcat6/bin/shutdown.sh
;;
restart)
sh /usr/local/tomcat6/bin/shutdown.sh
sh /usr/local/tomcat6/bin/startup.sh
;;
esac
exit 0

disimpan lalu ketik : update-rc.d tomcat6 defaults

4. jalankan http://localhost:8080/

  1. No comments yet.
  1. No trackbacks yet.

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

%d bloggers like this: