How to build a Java Web Environment in Linux

Source: Internet
Author: User

How to build a Java Web Environment in Linux

How to build a Java Web Environment in Linux

1. Preface
2. Java installation
3. tomcat installation
4. Simple tomcat commands

 

I. Preface

This blog post records the creation of the Java Web Environment in Linux. The content of this article is based on the following:

Http://m.blog.csdn.net/article/details? Id = 7727927 (detailed steps for setting up a java web development environment under ubuntu)
Http://blog.csdn.net/xiaoyao6650/article/details/4029946 (using Ant to compile Java Web programs)

Learning materials about JavaWeb
Http://www.cnblogs.com/xdp-gacl/p/3729033.html (Java Web Learning Summary (I) -- Java Web development beginners)

 

Ii. Java installation

For the installation of Java in Linux, refer to the previous blog: Java learning experience to build a Java environment in Linux.

 

Iii. tomcat installation

Go to the Apache official website (http://tomcat.apache.org/uninstall, download the apache-atat-6.0.32.tar.gz file, unzip.
Modify the profile file under the/etc directory, for example:

export CATALINA_HOME=/usr/local/tomcat export CLASSPATH=.:$JAVA_HOME/lib:$CATALINA_HOME/lib export PATH=$PATH:$CATALINA_HOME/bin

 

4. Simple tomcat commands
Start tomcat: catalina. sh start close tomcat: shutdown. sh stop check whether Tomcat has been started: netstat-ntl | grep 8080 enter: http: // localhost: 8080/in the address bar of the browser/

 

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.