In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Extend:
Java containers compare http://my.oschina.net/diedai/blog/271367
Http://www.360doc.com/content/11/0618/21/16915_127901371.shtml
Relationship among j2ee, j2se, ejb, javabean, serverlet, jsp
Http://blog.csdn.net/ququhu/article/details/73470
Tomcat server.xml configuration details
Http://blog.csdn.net/yuanxuegui2008/article/details/6056754
Methods of database connection commonly used in tomcat
Http://wjw7702.blog.51cto.com/5210820/1109263
16.1 Tomcat introduction
1. Tomcat is a core project of the Jakarta project of the Apache Software Foundation (Apache Software Foundation), which is jointly developed by Apache, Sun and other companies and individuals.
2. The website written by java program is run by tomcat+jdk.
3. Tomcat is a middleware, and it is jdk that really works to parse java scripts.
4. Jdk (java development kit) is the core of the entire java, which contains the java runtime environment and a bunch of java-related tools as well as java basic libraries.
5. The most mainstream jdk is the jdk released by sun. In addition, IBM has also released that openjdk can also be installed with yum on JDK,CentOS.
16.2 install jdk
Download address of jdk official website:
Http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
1. Download it from Google browser and upload it to the centos system / usr/local/src/ directory:
[root@hao-01 ~] # cd / usr/local/src/
[root@hao-01 src] # rz
two。 Unpack:
[root@hao-01 src] # tar zxvf jdk-8u144-linux-x64.tar.gz
3. Move and rename:
[root@hao-01 src] # mv jdk1.8.0_144 / usr/local/jdk1.8
4. Edit the / etc/profile file:
[root@hao-01 src] # vim / etc/profile
Add content:
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
5. To give effect to its file:
[root@hao-01 src] # source / etc/profile
6. View the version number:
[root@hao-01 src] # java-version
7. Is the search openjdk command installed?
[root@hao-01 src] # rpm-qa | grep openjdk
16.3 install Tomcat
1. Go to the download package directory:
[root@hao-01 ~] # cd / usr/local/src
two。 Download the tomcat installation package:
[root@hao-01 src] # wget http://apache.fayea.com/tomcat/tomcat-8/v8.5.20/bin/apache-tomcat-8.5.20.tar.gz
3. Unpack:
[root@hao-01 src] # tar zxvf apache-tomcat-8.5.20.tar.gz
4. Move and rename:
[root@hao-01 src] # mv apache-tomcat-8.5.20 / usr/local/tomcat
5. Start the tomcat service:
[root@hao-01 src] # / usr/local/tomcat/bin/startup.sh
6. Does the search for tomcat start?
[root@hao-01 src] # ps aux | grep tomcat
7. Close the tomcat process:
[root@hao-01 src] # / usr/local/tomcat/bin/shutdown.sh
8. Check the java port number (port 8005 starts slowly):
[root@hao-01 src] # netstat-lntp | grep java
Three ports:
8080 is the port that provides web services
8005 is the management port
Port 8009 is a port for third-party service calls, such as when combining httpd and Tomcat.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.