Install apache-tomcat-7.0.54.tar.gz in centos-6.4-x86_64.

Source: Internet
Author: User




1. Check the Java version information.

[[email protected] ~]# java -versionjava version "1.8.0_20"Java(TM) SE Runtime Environment (build 1.8.0_20-b26)Java HotSpot(TM) 64-Bit Server VM (build 25.20-b23, mixed mode)[[email protected] ~]#


2. decompress and install apache-tomcat-7.0.54.tar.gz

[[email protected] ~]# cd /root/Downloads/[[email protected] Downloads]# lltotal 147536-rw-r--r--. 1 root root   8886891 Oct  3 19:23 apache-tomcat-7.0.54.tar.gz-rw-r--r--. 1 root root 142183549 Sep 30 21:29 jdk-8u20-linux-x64.rpm[[email protected] Downloads]# tar zxvf apache-tomcat-7.0.54.tar.gz


3. start Tomcat

[[email protected] Downloads]# mv apache-tomcat-7.0.54 /usr/local/tomcat7[[email protected] Downloads]# cd /usr/local/tomcat7/[[email protected] tomcat7]# ./bin/startup.sh Using CATALINA_BASE:   /usr/local/tomcat7Using CATALINA_HOME:   /usr/local/tomcat7Using CATALINA_TMPDIR: /usr/local/tomcat7/tempUsing JRE_HOME:        /usr/java/jdk1.8.0_20/jreUsing CLASSPATH:       /usr/local/tomcat7/bin/bootstrap.jar:/usr/local/tomcat7/bin/tomcat-juli.jarTomcat started.[[email protected] tomcat7]#


4. Access http: // 192.168.1.200: 8080

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M02/4B/8E/wKioL1QuirDQNGFAAAZMrzgaWjM480.jpg "Title =" qq20141003193614.jpg "alt =" wkiol1quirdqngfaaazmrzgawjm480.jpg "/>


5. Set User Accounts

[[Email protected] tomcat7] # PWD/usr/local/tomcat7 # add content here <tomcat-users>, </tomcat-users> <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-SCR IPT, admin-Gui "/> </tomcat-users >########## [[email protected] tomcat7] # vi CONF/tomcat-users.xml <? XML version = '1. 0' encoding = 'utf-8'?> <! -- Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. see the notice file distributed with this work for additional information regarding copyright ownership. the ASF licenses this file to you under the Apache license, version 2.0 (the "License"); you may not use this file license t in compliance with the license. you may obtain a copy of the license Http://www.apache.org/licenses/LICENSE-2.0 unless required by applicable law or agreed to in writing, software distributed under the license is distributed on an "as is" basis, without warranties or conditions of any kind, either express or implied. see the license for the specific language governing permissions and limitations under the license. --> <tomcat-users> <! -- Note: by default, no user is authorized in the "Manager-Gui" role required to operate the "/manager/html" Web application. if you wish to use this app, you must define such a user-the username and password are arbitrary. --> <! -- Note: The sample user and role entries below are wrapped in a comment and thus are ignored when reading this file. Do not forget to remove <!.. ...> That surrounds them. --> <! -- <Role rolename = "Tomcat"/> <role rolename = "role1"/> <User Username = "Tomcat" Password = "Tomcat" roles = "Tomcat"/> <user username = "both" Password = "Tomcat" roles = "tomcat, role1 "/> <User Username =" role1 "Password =" Tomcat "roles =" role1 "/> --> <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 "/> </tomcat-users>" CONF/tomcat-users.xml "43l, 1850c written


6. Restart the service

[[email protected] tomcat7]# ./bin/shutdown.shUsing CATALINA_BASE:   /usr/local/tomcat7Using CATALINA_HOME:   /usr/local/tomcat7Using CATALINA_TMPDIR: /usr/local/tomcat7/tempUsing JRE_HOME:        /usr/java/jdk1.8.0_20/jreUsing CLASSPATH:       /usr/local/tomcat7/bin/bootstrap.jar:/usr/local/tomcat7/bin/tomcat-juli.jar[[email protected] tomcat7]# ./bin/startup.shUsing CATALINA_BASE:   /usr/local/tomcat7Using CATALINA_HOME:   /usr/local/tomcat7Using CATALINA_TMPDIR: /usr/local/tomcat7/tempUsing JRE_HOME:        /usr/java/jdk1.8.0_20/jreUsing CLASSPATH:       /usr/local/tomcat7/bin/bootstrap.jar:/usr/local/tomcat7/bin/tomcat-juli.jarTomcat started.[[email protected] tomcat7]#

 

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M02/4B/8F/wKioL1Quj-CAYYV6AAQ9uB95TTU575.jpg "Title =" qq20141003195839.jpg "alt =" wKioL1Quj-CAYYV6AAQ9uB95TTU575.jpg "/>

This article is from the "Jerry" blog, please be sure to keep this source http://alipay.blog.51cto.com/7119970/1560500

Install apache-tomcat-7.0.54.tar.gz in centos-6.4-x86_64.

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.