slackware,tgz安装apache-tomcat

1.下载apache-tomcat的Source Code Distributions
wget http://apache.etoak.com/tomcat/tomcat-7/v7.0.23/src/apache-tomcat-7.0.23-src.tar.gz
2.解压tar.gz
tar -xzvf apache-tomcat-7.0.23-src.tar.gz

3.制作tgz安装文件,方便以后卸载
mv apache-tomcat-7.0.23-src apache-tomcat
mkdir works
mkdir works/local
mv apache-tomcat work/local/
cd works
sudo makepkg $HOME/tomcat.tgz
sudo installpkg $HOME/tomcat.tgz

4.启动准备
sudo rm /local/tomcat/bin/*.bat
sudo chmod +x /local/tomcat/bin/*.sh

5.启动
/local/tomcat/bin/startup.sh
输出如下代表启动成功
Using CATALINA_BASE:   /usr/local/tomcat
Using CATALINA_HOME:   /usr/local/tomcat
Using CATALINA_TMPDIR: /usr/local/tomcat/temp
Using JRE_HOME:       /usr/lib/java

6.关闭
/local/tomcat/bin/shutdown.sh
/local/tomcat/bin/shutdown.sh

你可能感兴趣的:(slackware,tgz安装apache-tomcat)