linux服务之tomcat

系统环境:

[root@tomcat ~]# cat /etc/redhat-release
CentOS release 5.9 (Final)
[root@tomcat ~]# uname -a
Linux tomcat 2.6.18-348.el5 #1 SMP Tue Jan 8 17:53:53 EST 2013 x86_64 x86_64 x86_64 GNU/Linux
[root@tomcat ~]# lsb_release -a
LSB Version:    :core-4.0-amd64:core-4.0-ia32:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-ia32:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-ia32:printing-4.0-noarch
Distributor ID: CentOS
Description:    CentOS release 5.9 (Final)
Release:    5.9
Codename:   Final

开始安装:

[root@tomcat ~]# mkdir soft
[root@tomcat ~]# cd soft
[root@tomcat soft]# wget http://download.oracle.com/otn-pub/java/jdk/7u51-b13/jdk-7u51-linux-x64.rpm
[root@tomcat soft]# rpm -ivh jdk-7u51-linux-x64.rpm
[root@tomcat ~]# java -version
java version "1.7.0_45"
OpenJDK Runtime Environment (rhel-2.4.3.3.el6-x86_64 u45-b15)
OpenJDK 64-Bit Server VM (build 24.45-b08, mixed mode)
[root@tomcat soft]# wget http://mirror.nus.edu.sg/apache/tomcat/tomcat-7/v7.0.53/bin/apache-tomcat-7.0.53.tar.gz
[root@tomcat soft]# mv apache-tomcat-7.0.53.tar.gz /usr/local/
[root@tomcat soft]# cd /usr/local/
[root@tomcat local]# mv apache-tomcat-7.0.53 tomcat
[root@tomcat local]# cd tomcat/
[root@tomcat tomcat]# cd bin/
[root@tomcat bin]# ./catalina.sh start
Using CATALINA_BASE:   /usr/local/tomcat
Using CATALINA_HOME:   /usr/local/tomcat
Using CATALINA_TMPDIR: /usr/local/tomcat/temp
Using JRE_HOME:        /usr
Using CLASSPATH:       /usr/local/tomcat/bin/bootstrap.jar:/usr/local/tomcat/bin/tomcat-juli.jar
Tomcat started.
[root@tomcat bin]# netstat -tulnpan
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address               Foreign Address             State       PID/Program name  
tcp        0      0 0.0.0.0:2222                0.0.0.0:*                   LISTEN      910/sshd           
tcp        0     52 172.16.10.10:2222           172.16.10.253:59975         ESTABLISHED 23115/sshd         
tcp        0      0 :::2222                     :::*                        LISTEN      910/sshd           
tcp        0      0 :::8080                     :::*                        LISTEN      23288/java         
tcp        0      0 :::8009                     :::*                        LISTEN      23288/java         
udp        0      0 172.16.10.10:49338          172.16.10.254:53            ESTABLISHED 23288/java         
[root@tomcat bin]# curl -I http://127.0.0.1:8080
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Type: text/html;charset=ISO-8859-1
Transfer-Encoding: chunked
Date: Sun, 06 Apr 2014 11:59:57 GMT


本文出自 “devops” 博客,谢绝转载!

你可能感兴趣的:(jdk,tomcat,linux,jre,release)