You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
wget http://apache.mirrors.spacedump.net/tomcat/tomcat-7/v7.0.23/bin/apache-tomcat-7.0.23.tar.gz
tar -xvf apache-tomcat-7.0.23.tar.gz
move into place
mv apache-tomcat-7.0.23 /etc/tomcat7
install APR
apt-get install libaprutil1-dev libssl-dev
build apache APR
tar -xvf /etc/tomcat7/bin/tomcat-native.tar.gz
cd /etc/tomcat7/bin/tomcat-native-1.1.22-src/jni/native
./configure --with-apr="/usr/bin/apr-1-config" && make && make install
Link into tomcat library path
cd /etc/lib
ln -s /usr/local/apr/lib/libtcnative-1.so libtcnative-1.so
setup autostart, add /etc/init.d/tomcat7
# Tomcat auto-start
#
# description: Auto-starts tomcat
# processname: tomcat
# pidfile: /var/run/tomcat.pid
case $1 in
start)
sh /etc/tomcat7/bin/startup.sh
;;
stop)
sh /etc/tomcat7/bin/shutdown.sh
;;
restart)
sh /etc/tomcat7/bin/shutdown.sh
sh /etc/tomcat7/bin/startup.sh
;;
esac
exit 0