Linux SSH Installation Tomcat

Source: Internet
Author: User

Installation of Tomcat 1. Download Tomcat

Download Tomcat's compression pack apache-tomcat-7.0.54.tar.gz from the Tomcat official website (http://tomcat.apache.org/download-70.cgi). The official website has three parts binary Distributions,deployer,extras, explained as follows:

[Java]View PlainCopyprint?
  1. Binary Distributions
  2. Core:
  3. Zip (PGP, MD5)
  4. tar.gz (PGP, MD5)
  5. 32-bit Windows Zip (PGP, MD5)
  6. 64-bit Windows Zip (PGP, MD5)
  7. 64-bit Itanium Windows Zip (PGP, MD5)
  8. 32-bit/64-bit Windows Service Installer (PGP, MD5)
  9. Full Documentation:
  10. tar.gz (PGP, MD5)
  11. Deployer:
  12. Zip (PGP, MD5)
  13. tar.gz (PGP, MD5)
  14. Extras:
  15. JMX Remote Jar (PGP, MD5)
  16. WEB Services Jar (PGP, MD5)
  17. Juli adapters Jar (PGP, MD5)
  18. Juli log4j Jar (PGP, MD5)
  19. Embedded:
  20. tar.gz (PGP, MD5)
  21. Zip (PGP, MD5)
  22. Zip for Windows operating systems, tar.gz for UNIX and Linux operating systems.
  23. Binary distributions Core: This column is for running the installation files directly.
  24. Deployer: This is a list of files for programmers to program.
  25. Source code distributions: This column is the Tomcat source.

2. Unzip the installation

2.1 Upload apache-tomcat-7.0.54.tar.gz to the server and move to the/usr/local directory

[Java]View PlainCopyprint?
    1. sudo mv apache-tomcat-7.0. 54.tar.gz/usr/local/

2.2 Enter/usr/local directory (cd/usr/local/) decompression

[Java]View PlainCopyprint?
    1. sudo tar-zxvf apache-tomcat-7.0. 54.tar.gz

2.3 Renaming apache-tomcat-7.0.54 to Tomcat

[Java]View PlainCopyprint?
    1. MV apache-tomcat-7.0. Si Tomcat


2.4 Delete apache-tomcat-7.0.54.tar.gz

3. Modify the Tomcat port

Enter the cd/usr/local/apache-tomcat-7.0.42/conf/directory and open server.xml (sudo vim server.xml) to change port 8080 to 8081.

[Java]View PlainCopyprint?
    1. <connector port="8081" protocol="http/1.1 "
    2. connectiontimeout="20000"
    3. redirectport="8443"/>

4. Verification

Switch to root user under Sudo–i, start Tomcat (/usr/local/apache-tomcat-7.0.42/bin/startup.sh), enter http://localhost:8081/in the browser See the Tomcat Welcome page. LocalHost is replaced with the Linux server IP.

5. Tomcat Memory optimization

Tomcat memory optimization is primarily optimized for Tomcat boot parameters individuals can be set according to their actual situation.

[Java]View PlainCopyprint?
    1. java_opts='-xms2048m-xmx4096m-xmn1g-xss1024k-xx:newratio=4-xx:survivorratio=4-xx:permsize=1024m-xx: MAXPERMSIZE=1024M-XX:MAXTENURINGTHRESHOLD=0-XX:+USEPARALLELGC-XX:PARALLELGCTHREADS=20-XX:+USEPARALLELOLDGC-XX: +useadaptivesizepolicy '


The entire installation configuration is complete, and the next section is about booting from the Linux tomcat.

Linux SSH Installation Tomcat

Related Article

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.