Linux study notes 14 weeks four lessons (May 14)

Source: Internet
Author: User
Tags tomcat server

16.1 Tomcat Introduction


16.2 Installing the JDK

Official website http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

Use Xftp to copy and place to/usr/local/src/

#cd/usr/local/src/

#tar ZXVF jdk-8u144-linux-x64.tar.gz

#du-sh jdk1.8.0_114

#mv jdk1.8.0_114/usr/local/jdk1.8

#vi/etc/profile//Last surface increase

java_home=/usr/local/jdk1.8/

Java_bin=/usr/local/jdk1.8/bin

Jre_home=/usr/local/jdk1.8/jre

Path= $PATH:/usr/local/jdk1.8/bin;/usr/local/jdk1.8/jre/bin

Classpath=/usr/local/jdk1.8/jre/lib;/usr/local/jdk1.8/lib;/usr/local/jdk1.8/jre/lib/charsets.jar

#source/etc/profile

#java-version//If the display is not 1.8.0_144, search, whether the other version has been installed #rpm-qa | grep openjdk, search, uninstall can;


16.3 Installing Tomcat

#cd/USR/LOCAL/SRC

#wget http://apache.fayea.com/tomcat/tomcat-8/v8.5.20/bin/apache-tomcat-8.5.20.tar.gz

#tar zxvf apache-tomcat-8.5.20.tar.gz

#mv Apache-tomcat-8.5.20/usr/local/tomcat

Start tomcat,#/usr/local/tomcat/bin/startup.sh

#ps aux | grep Tomcat

#netstat-LNTP | grep java

Turn off the firewall and view the Web page

#systemctl Stop Firewalld

#systemctl Disable FIREWALLD

#iptables NVL

Close the service process with the command #/usr/local/tomcat/bin/shutdown.sh


Extended

Java Container comparison http://my.oschina.net/diedai/blog/271367

Http://www.360doc.com/content/11/0618/21/16915_127901371.shtml

Relationship between Java EE, J2SE, EJB, JavaBean, Serverlet, JSP http://bbs.csdn.net/topics/50015576

Tomcat Server.xml Configuration Detailed http://blog.csdn.net/yuanxuegui2008/article/details/6056754

Tomcat Common Database connection method http://wjw7702.blog.51cto.com/5210820/1109263


Linux study notes 14 weeks four lessons (May 14)

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.