субота, 13 грудня 2014 р.

Установка Tomcat на ubuntu

cd /usr/local/src
wget http://apache.osuosl.org/tomcat/tomcat-8/v8.0.5/bin/apache-tomcat-8.0.5.tar.gz
tar -xvf apache-tomcat-8.0.5.tar.gz
sudo mv apache-tomcat-8.0.5 /usr/local/
sudo vim /etc/init.d/tomcat8
#!/bin/bash
export CATALINA_HOME=/usr/local/apache-tomcat-8.0.5
PATH=/sbin:/bin:/usr/sbin:/usr/bin
start() {
sh $CATALINA_HOME/bin/startup.sh
}
stop() {
sh $CATALINA_HOME/bin/shutdown.sh
}
case $1 in
start|stop) $1;;
restart) stop; start;;
*) echo "Run as $0 <start|stop|restart>"; exit 1;;
esac
sudo chmod 755 /etc/init.d/tomcat8

тут

Немає коментарів:

Дописати коментар

HyperComments for Blogger

comments powered by HyperComments