Directly go to http: tomcat.apache.org to download the Binary Package (BinaryDistributions). You do not need to install it. Unzip the package and run the bash file to run Tomcat. In advance to set JAVA_HOMEecho $ JAVA_HOMEoptjavajdk1.6.0_25 open: $ homeorisundevelopapache-tomcat-7.0.16binstar
Directly go to http: //McAt.apache.orgTrIbutions) does not need to be installed,ExtractRun the bash file to run Tom.Cat.
Set JAVA_HOME in advance
Echo $ JAVA_HOME
/Opt/java/jdk1.6.0 _ 25
Enable:
$/Home/oriSuN/develop/apache-tomcat-7.0.16/bin/startup. sh
Stop:
/Home/orisun/develop/apache-tomcat-7.0.16/bin/shutdown. sh
Of course, it is too troublesome to start it every time.Command, In ~ /. Add the following to bashrc:
AliasTomcat_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'
Enter http: // localhost: 8080/in the browser/