Recently installed the JDK under Linux, in order to round my previous wish, the Tomcat also installed, the way to deploy a project, but also a small and fulfilling sense
Nonsense not to say, directly on the process
One. Download and install the corresponding JDK and configure the Java environment.
For installation of JDK see my last Post http://www.cnblogs.com/cl1255674805/p/5720665.html
two. Download install tomcat(http://tomcat.apache.org/)
[Email protected] ~]# Unzip Apache-tomcat-6.0.30.zip
[Email protected] ~]# MV apache-tomcat-6.0.30//usr/local/
[Email protected] ~]cd/usr/local/
[Email protected] local]# ln-s/usr/local/apache-tomcat-6.0.30//usr/local/tomcat
Three. Modify the boot port of the Tomcat server
[Email protected] apache-tomcat-7.0.70]# cd/usr/local/apache-tomcat-7.0.70/conf
[[email protected] conf]# ls
Catalina catalina.properties logging.properties Tomcat-users.xml
Catalina.policy context.xml server.xml web. xml
[Email protected] conf]# VI server.xml
1. Press I on the keyboard to enter the editing state
2. Modify the port to 9999
3. Press ESC, then enter the colon ":", then w,q press ENTER again to save the exit
Four. Start the Tomcat server
[Email protected] conf]# Cd/usr/local/tomcat/bin
[[email protected] bin]# ls
Bootstrap.jar daemon.sh startup.sh
Catalina.bat Digest.bat Tomcat-juli.jar
catalina.sh digest.sh tomcat-native.tar.gz
Catalina-tasks.xml Setclasspath.bat Tool-wrapper.bat
Commons-daemon.jar setclasspath.sh tool-wrapper.sh
commons-daemon-native.tar.gz Shutdown.bat Version.bat
Configtest.bat shutdown.sh version.sh
Configtest.sh Startup.bat
[Email protected] 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
Using CLASSPATH:/usr/local/tomcat/bin/bootstrap.jar:/usr/local/tomcat/bin/tomcat-juli.jar
Tomcat started.
[Email protected] bin]#
1. Access Tomcat
OK, indicating successful start
Five. Deployment project
1. Place the war pack under the path
[Email protected] apache-tomcat-7.0.70]# Cd/usr/local/apache-tomcat-7.0.70/webapps
2. Visit the page of the project
OK, access successful
Installation and project deployment of Tomcat under Linux