Linux tomcat installation

Source: Internet
Author: User
To learn Java, a server is required. Therefore, tomcat, which is popular, is used. According to the introduction to installing Tomcat on the internet, I have installed Tomcat on my own. Now, I have recorded the installation process for your reference.
1. Download the Tomcat software package from the official website.
Http://tomcat.apache.org/
Click a version of download on the left. I chose tomcat6.x. You can choose to install the version based on your actual situation. Click "hyper-connection" and select Under binary distributionsTar.gz (Pgp, MD5) Compressed package for download
2. Download the package to your local computer and decompress it.

# Tar zxvf apach-tomcat-6.0.16.tar.gz
# Music apach-tomcat-6.0.16/usr/local

3. Configure the Tomcat environment (ensure that JDK is installed)
# Vi/etc/profile

Export java_home =/usr/local/jdk1.6.0 _ 04
Export tomcat_home =/usr/local/apach-tomcat-6.0.16

Save and exit

# Source/etc/profile // make the current configuration take effect immediately

4. Start the Tomcat server
$/Usr/local/apach-tomcat-6.0.16/bin/startup. Sh
The following content appears on my computer:
Using catalina_base:/usr/local/Apache-Tomcat-6.0.16
Using catalina_home:/usr/local/Apache-Tomcat-6.0.16
Using catalina_tmpdir:/usr/local/Apache-Tomcat-6.0.16/temp
Using jre_home:/usr/local/jdk1.6.0 _ 04
5. Enter http: // localhost: 8080/in the browser to view the Tomcat log.
Tomcat installation ends here.

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.