标签:targe oracle javase 目录 blog version hand build jdk安装
tomcat介绍[root@akuilinux01 src]# tar zxvf jdk-8u171-linux-x64.tar.gz
[root@akuilinux01 src]# mv jdk1.8.0_171/ /usr/local/jdk1.8
[root@akuilinux01 src]# vim /etc/profile
AVA_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
root@akuilinux01 src]# source /etc/profile
[root@akuilinux01 src]# java -version
java version "1.8.0_171"
Java(TM) SE Runtime Environment (build 1.8.0_171-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.171-b11, mixed mode)
[root@akuilinux01 src]# cd /usr/local/src/
[root@akuilinux01 src]# wget http://apache.fayea.com/tomcat/tomcat-8/v8.5.20/bin/apache-tomcat-8.5.20.tar.gz
[root@akuilinux01 src]# tar zxvf apache-tomcat-8.5.31.tar.gz
[root@akuilinux01 src]# mv apache-tomcat-8.5.31 /usr/local/tomcat
[root@akuilinux01 src]# /usr/local/tomcat/bin/startup.sh
Using CATALINA_BASE: /usr/local/tomcat
Using CATALINA_HOME: /usr/local/tomcat
Using CATALINA_TMPDIR: /usr/local/tomcat/temp
Using JRE_HOME: /usr/local/jdk1.8
Using CLASSPATH: /usr/local/tomcat/bin/bootstrap.jar:/usr/local/tomcat/bin/tomcat-juli.jar
Tomcat started.
[root@akuilinux01 src]# ps aux |grep java
root 3304 56.0 5.4 4058116 101556 pts/0 Sl 21:55 0:13 /usr/local/jdk1.8/bin/java -Djav.util.logging.config.file=/usr/local/tomcat/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djdk.tls.ephemeralDHKeySize=2048 -Djava.protocol.handler.pkgs=org.apache.catalina.webresources -Dorg.apache.catalina.security.SecurityListener.UMASK=0027 -Dignore.endorsed.dirs= -classpath /usr/local/tomcat/bin/bootstrap.jar:/usr/local/tomcat/bin/tomcat-juli.jar -Dcatalina.base=/usr/local/tomcat -Dcatalina.home=/usr/local/tomcat -Djava.io.tmpdir=/usr/local/tomcat/temp org.apache.catalina.startup.Bootstrap start
root 3355 0.0 0.0 112676 984 pts/0 S+ 21:56 0:00 grep --color=auto
[root@akuilinux01 src]# /usr/local/tomcat/bin/shutdown.sh
Using CATALINA_BASE: /usr/local/tomcat
Using CATALINA_HOME: /usr/local/tomcat
Using CATALINA_TMPDIR: /usr/local/tomcat/temp
Using JRE_HOME: /usr/local/jdk1.8
Using CLASSPATH: /usr/local/tomcat/bin/bootstrap.jar:/usr/local/tomcat/bin/tomcat-juli.jar
[root@akuilinux01 src]# ps aux |grep java
root 3391 0.0 0.0 112676 984 pts/0 S+ 21:57 0:00 grep --color=auto java
[root@akuilinux01 ~]# netstat -lntp |grep java
tcp6 0 0 :::8080 :::* LISTEN 3407/java
tcp6 0 0 127.0.0.1:8005 :::* LISTEN 3407/java
tcp6 0 0 :::8009 :::* LISTEN 3407/java
[root@akuilinux01 ~]# systemctl stop firewalld
[root@akuilinux01 ~]# systemctl disable firewalld
[root@akuilinux01 ~]# iptables -nvL
Chain INPUT (policy ACCEPT 14339 packets, 206M bytes)
pkts bytes target prot opt in out source destination
Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
Chain OUTPUT (policy ACCEPT 11657 packets, 1493K bytes)
pkts bytes target prot opt in out source destination
标签:targe oracle javase 目录 blog version hand build jdk安装
原文地址:http://blog.51cto.com/akui2521/2132639