Tomcat Settings JSP development environment, there are two kinds, either with the source installation, or download their own configuration Tomcat, recommend the latter. Tomcat is the Jakarta of the Http://www.aliyun.com/zixun/aggregation/14417.html ">apache Software Foundation (Apache Software Foundation) A core project in the project, developed jointly by Apache, Sun, and other companies and individuals. With Sun's involvement and support, the latest servlet and JSP specifications are always reflected in Tomcat, and Tomcat 5 supports the latest servlet 2.4 and JSP 2.0 specifications. Because Tomcat technology advanced, stable performance, and free, so deeply loved by the Java enthusiasts and has been recognized by some software developers, as the current more popular Web application server. The current version is 6.0.
Install Tomcat
Tomcat is a network service software developed by the Apache Foundation to support JSP (Java Server Page).
sudo apt install tomcat6
Wait a moment, TOMCAT6 will be automatically installed in the/USR/SHARE/TOMCAT5 directory
To set the Java environment for Tomcat running
First make sure that Sun's Java Development Toolkit is installed. If it is not already installed, refer to Java.
Start and stop Tomcat
To start Tomcat, run
qii@ubuntu:~$ Sudo/etc/init.d/tomcat6 Start
* Starting Tomcat servlet engine Tomcat6 [OK]
Open the browser at this time, enter http://localhost:8080 in the address bar
Tomcat Installation Succeeded
To stop Tomcat, run
qii@ubuntu:~$ Sudo/etc/init.d/tomcat6 Stop
* Stopping Tomcat servlet engine tomcat6 [OK]