Ubuntu14.04 Kylin installation Configuration Tomcat7 server

Source: Internet
Author: User

Ubuntu14.04 Kylin Installation Configuration TOMCAT7 server:

Put the current logged in user root directory: ~

1, still is decompression

Tar–xzf apache-tomcat-7.0.40.tar.gz

Get apache-tomcat-7.0.40 Folder

2, change a name, or knock on the egg pain:

MV apache-tomcat-7.0.40 Tomcat

3, put/usr/local/

sudo mv tomcat/usr/local/

4. Enter/usr/local/tomcat

Cd/usr/local/tomcat

5, change the user (security first)

sudo chown-r root.

sudo chgrp-r root.

6. Add Environment variables

sudo su-

Vi/etc/profile

At the bottom, add:

Catalina_home=/usr/local/tomcat

Export Catalina_home

Save exit

7. Enter $catalina_home/bin

CD $CATALINA _home/bin

8, modify the catalina.sh

VI catalina.sh, find

# OS specific support. $var _must_ is set to either true or false.

Define Catalina_home and Java_home again on this line:

Catalina_home=/usr/local/tomcat

Java_home=/usr/local/java/jdk1.7.0_21

Save exit

9. Log out of Root and try to start Tomcat

Logout

sudo./bin/startup.sh

If the following is displayed without any exceptions, the startup succeeds:

Using catalina_base:/usr/local/tomcat

Using Catalina_home:/usr/local/tomcat

Using Catalina_tmpdir:/usr/local/tomcat/temp

Using Jre_home:/usr/local/java/jdk1.7.0_21

Using CLASSPATH:/usr/local/tomcat/bin/bootstrap.jar:/usr/local/tomcat/bin/tomcat-juli.jar

10, stop Tomcat:sudo./bin/shutdown.sh

11. Install Tomcat Service:

sudo cp bin/catalina.sh/etc/init.d/tomcat

View Services:

sudo service tomcat status

Lists a bunch of operation options, which means that the service is installed properly.

12. Let Tomcat boot

sudo update-rc.d–f tomcat defaults

13, through the service to start a test

sudo service tomcat start

Get! Please refer to the friends who need it!


Ubuntu14.04 Kylin installation Configuration Tomcat7 server

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.