Ubuntu12.10 install Tomcat 7

Source: Internet
Author: User
You have to do something after installing Ubuntu12.10. If you cannot install it, it will be over. I am studying jsp recently. install tomcat first. (Javajdk I have been installed, a few days after the test I will install jdk, and Androidsdk installation makeup, Here Get tomcat) Windows7 hard disk installation Ubuntu12.10 graphic tutorial http://www.linuxidc.com/Linux/2012-11/73500.htm

After Ubuntu 12.10 is installed, you have to do something. I am studying jsp recently. install tomcat first. (I have already installed java jdk. After a few days of testing, I will install jdk and install Android sdk. Let's Get tomcat first)

Windows 7 hard disk installation Ubuntu 12.10 graphic tutorial http://www.linuxidc.com/Linux/2012-11/73500.htm

1. Download tomcat7.0.34. Web site: http://tomcat.apache.org/

2. decompress the downloaded file and download it. (You can follow my installation process here. You only need to install it ), then move to the/usr/local/development folder and use gedit to open apache-tomcat-7.0.34/bin/startup. sh. Because I am not familiar with vim, use gedit. (Remember to perform the above operations under root. Modify the root password sudo passwd. After the change, su enters the root user)

The mv command moves the file to the/usr/local/development folder (rutu)

Run the sudo command to open the startup. sh file.

3. Add the following at the end of the startup. sh file:

JAVA_HOME =/usr/local/development/jdk1.7.0 _ 09

PATH = $ JAVA_HOME/bin: $ PATH

CLASSPATH =.: $ JAVA_HOME/lib/dt. jar: $ JAVA_HOME/lib/tools. jar

TOMCAT_HOME =/usr/local/development/apache-tomcat-7.0.34

. JAVA_HOME is the jdk path for installation, and TOMCAT_HOME is the tomcat installation path.

4. Go to the bin folder under tomcat and run the cd command. Enter sudo./startup. sh on the terminal. If the following figure appears, the installation is successful.

Enter http: // localhost: 8080 in the browser, and the following error occurs:

5. Of course, if the default port 8080 is occupied, you need to change the default port.

In the apache-tomcat-7.0.34/conf/server. xml file:

Port = "9090" protocol = "HTTP/1.1"
ConnectionTimeout = "20000"
RedirectPort = "8443" type = "regxph" text = "yourobjectname"/>

Change 8080 to 9090. Enter http: // localhost: 9090 in the browser.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.