CENTOS Install TOMCAT

Source: Internet
Author: User

Directory:

I. Environment

1.1 System Environment

1.2 Software Environment

1.3 Software version

Two. Installation

2.1 Download software

2.2 Installation

Three. Verification


Body

I. Environment

1.1 System Environment CENTOS 6.5

[Email protected] ~]# lsb_release-alsb Version:: Base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:    Graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarchdistributor id:centosdescription: CentOS Release 6.6 (Final) release:6.6codename:final[[email protected] ~]#

?

1.2 Software Environment SUN JDK 1.6

Installation Address: http://my.oschina.net/u/234018/blog/498118

[[email protected] ~]# Java-versionjava version "1.6.0_45" Java (TM) SE Runtime Environment (build 1.6.0_45-b06) Java HOTSPO T (TM) 64-bit Server VM (build 20.45-b01, Mixed mode) [[email protected] ~]# Javac-versionjavac 1.6.0_45[[email protected] ~]#

1.3 Software version

apache-tomcat-7.0.63

Two-Installation

2.1

Official website: http://tomcat.apache.org/

Baidu Network disk: Link: http://pan.baidu.com/s/1ntzQVzF Password: 9o0o

2.2 Installation

2.1 Unzip the package to the directory you want to install

Tar-zxvf/soft/apache-tomcat-7.0.63.tar.gz

2.2 Starting Tomcat

[Email protected] bin]# Pwd/usr/local/apache-tomcat-7.0.63/bin[[email protected] bin]#./startup.sh

Three-proof

3.1 Direct point direct access to http:x.x.x.x:8080

3.2 Implicit point check whether the process is restarted, whether the port is listening

[[email protected] bin]# netstat -an | grep 8080tcp         0      0 :::8080                      :::*                           listen      [[email protected] bin]#  ps -ef | grep tomcatroot     23512 23356  0  17:11 pts/0    00:00:00 grep tomcatroot      27856     1  0 aug25 ?         00:21:40 /usr/local/jdk1.6.0_45/bin/java -djava.util.logging.config.file=/usr/local/ Apache-tomcat-7.0.63/conf/logging.properties -djava.util.logging.manager=org.apache.juli.classloaderlogmanager -djava.endorsed.dirs=/usr/ local/apache-tomcat-7.0.63/endorsed -classpath /usr/local/apache-tomcat-7.0.63/bin/bootstrap.jar:/ usr/local/apache-tomcat-7.0.63/bin/tomcat-juli.jar -dcatalina.base=/usr/local/apache-tomcat-7.0.63 - Dcatalina.home=/usr/local/apache-tomcat-7.0.63 -djava.io.tmpdir=/usr/local/apache-tomcat-7.0.63/temp  org.apache.catalina.startup.bootstrap start


Four configuring Tomcat administrative users

Modify/usr/local/apache-tomcat-7.0.63/conf/tomcat-users.xml

<role rolename= "Admin-gui"/><role rolename= "Admin-script"/><role rolename= "Manager-gui"/>< Role rolename= "Manager-script"/><role rolename= "manager-jmx"/><role rolename= "Manager-status"/> <user username= "Tomcat" password= "Tomcat" roles= "Manager-gui,manager-script,manager-jmx,manager-status, Admin-script,admin-gui "/>


CENTOS Install 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.