Kamis, 10 Mei 2012

[Ubuntu 12.04] Instalasi Manual Tomcat 6.0.29


Download tomcatnya di sini
Ekstark hasil downloadannya ke /usr/local, sehingga menjadi /usr/local/tomcat
Buat script supaya setiap kali startup tomcatnya berjalan otomatis
sudo gedit /etc/init.d/tomcat



Copy paste script dibawah ini
 
# Tomcat auto-start
#
# description: Auto-starts tomcat
# processname: tomcat
# pidfile: /var/run/tomcat.pid
export JAVA_HOME=/usr/lib/jvm/java-6-sun
case $1 in
start)
sh /usr/local/tomcat/bin/startup.sh
;;
stop)
sh /usr/local/tomcat/bin/shutdown.sh
;;
restart)
sh /usr/local/tomcat/bin/shutdown.sh
sh /usr/local/tomcat/bin/startup.sh
;;
esac
exit 0

Save hasilnya.
Masih pada terminal:
sudo chmod 755 /etc/init.d/tomcat
sudo ln -s /etc/init.d/tomcat /etc/rc1.d/K99tomcat
sudo ln -s /etc/init.d/tomcat /etc/rc2.d/S99tomcat

Semoga bermanfaat 

◄ Posting Baru Posting Lama ►
 

Copyright © 2012. informativeonmigraine - All Rights Reserved inovLy media online by inforZa