3. centos 6.5 system installation and configuration Tomcat 8 detailed process

Source: Internet
Author: User
Tags gz file

Installation environment: CentOS-6.5

Installation Method: source code Installation

Software: apache-tomcat-8.0.0.RC3.tar.gz

Prerequisites

Install Tomcat

Upload the apache-tomcat-8.0.0.rc3.tar.gz file to/usr/local and perform the following operations:

[[Email protected] ~] # Cd/usr/local

[[Email protected] ~] # Tar-zxv-F apache-tomcat-8.0.0.RC3.tar.gz // extract the compressed package

[[Email protected] ~] # Rm-RF apache-tomcat-8.0.0.RC3.tar.gz // Delete package

[[Email protected] ~] # Mv apache-tomcat-8.0.0.RC3 Tomcat

Start Tomcat

Perform the following operations:

[[Email protected] ~] #/Usr/local/tomcat/bin/startup. Sh // start Tomcat

Using catalina_base:/usr/local/tomcat

Using catalina_home:/usr/local/tomcat

Using catalina_tmpdir:/usr/local/tomcat/temp

Using jre_home:/usr/Java/jdk1.7.0 _ 45/JRE

Using classpath:/usr/local/tomcat/bin/Bootstrap. jar:/usr/local/tomcat/bin/tomcat-juli.jar

The above information indicates that the instance has been started successfully.

Open firewall port 8080

Add port 8080 to the firewall configuration and perform the following operations:

[[Email protected] ~] /Sbin/iptables-I input-P TCP -- dport 8080-J accept # enable port 8080

[[Email protected] ~] /Etc/rc. d/init. d/iptables save # Save the Configuration

[[Email protected] ~] /Etc/rc. d/init. d/iptables restart # restart the Firewall

Verify tomcat installation and running

Check whether Tomcat is running properly at the following address:

Http: // 192.168.10.138: 8080/

The Tomcat System Interface is displayed, indicating that the installation is successful!

Stop Tomcat

[[Email protected] ~] #/Usr/local/tomcat/bin/shutdown. Sh // stop Tomcat

3. centos 6.5 system installation and configuration Tomcat 8 detailed process

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.