Tomcat安装并与Apache整合,安装SVN-WebClient

直接去 http://tomcat.apache.org下载二进制包(Binary Distributions)就不需要安装了,解压后直接运行bash文件即可运行Tomcat。

事先要设置好JAVA_HOME

echo $JAVA_HOME

/opt/java/jdk1.6.0_25

开启:

$ /home/orisun/develop/apache-tomcat-7.0.16/bin/startup.sh

停止:

/home/orisun/develop/apache-tomcat-7.0.16/bin/shutdown.sh

当然每次这么启动也太麻烦了,搞个简短一点的命令,在~/.bashrc中添加:

alias tomcat_start='/home/orisun/develop/apache-tomcat-7.0.16/bin/startup.sh'

alias tomcat_stop='/home/orisun/develop/apache-tomcat-7.0.16/bin/shutdown.sh'

alias tomcat_restart='tomcat_stop && tomcat_start'

在浏览器中输入 http://localhost:8080/

相关推荐