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/