linux服务之resin

系统环境:

[root@resin ~]# cat /etc/redhat-release
CentOS release 6.5 (Final)
[root@resin ~]# uname -a
Linux resin 2.6.32-431.el6.x86_64 #1 SMP Fri Nov 22 03:15:09 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
[root@resin ~]# lsb_release -a
LSB Version:    :base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch
Distributor ID: CentOS
Description:    CentOS release 6.5 (Final)
Release:    6.5
Codename:   Final

开始安装:

[root@resin ~]# mkdir soft
[root@resin ~]# cd soft
[root@resin soft]# wget http://download.oracle.com/otn-pub/java/jdk/7u51-b13/jdk-7u51-linux-x64.rpm
[root@resin soft]# rpm -ivh jdk-7u51-linux-x64.rpm
Preparing...                ########################################### [100%]
   1:jdk                    ########################################### [100%]
Unpacking JAR files...
    rt.jar...
    jsse.jar...
    charsets.jar...
    tools.jar...
    localedata.jar...
    jfxrt.jar...
[root@resin soft]# 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@resin soft]# wget http://www.caucho.com/download/resin-4.0.38.tar.gz
[root@resin soft]# tar xf resin-4.0.38.tar.gz
[root@resin resin-4.0.38]# ./configure --prefix=/usr/local/resin --with-java-home=/usr/java/jdk1.7.0_51/ --enable-64bit
[root@resin resin-4.0.38]# make -j 2 && make install
[root@resin resin-4.0.38]# cd /usr/local/resin/
[root@resin resin]# cd bin/
[root@resin bin]# ./resinctl start                             启动
[root@resin bin]# ./resinctl stop                              关闭
Resin/4.0.38 launching watchdog at 127.0.0.1:6600
Resin/4.0.38 started -server 'app-0' with watchdog at 127.0.0.1:6600
[root@resin 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      901/sshd           
tcp        0      0 127.0.0.1:6800              0.0.0.0:*                   LISTEN      3455/java          
tcp        0      0 127.0.0.1:6600              0.0.0.0:*                   LISTEN      3409/java          
tcp        0     52 172.16.10.10:2222           172.16.10.253:61182         ESTABLISHED 938/sshd           
tcp        0      0 :::2222                     :::*                        LISTEN      901/sshd           
tcp        0      0 :::8080                     :::*                        LISTEN      3455/java          
tcp        0      0 ::ffff:127.0.0.1:34630      ::ffff:127.0.0.1:47175      ESTABLISHED 3455/java          
tcp        0      0 ::ffff:127.0.0.1:36844      ::ffff:127.0.0.1:6600       TIME_WAIT   -                  
tcp        0      0 ::ffff:127.0.0.1:47175      ::ffff:127.0.0.1:34630      ESTABLISHED 3409/java          
[root@resin bin]# curl -I http://127.0.0.1:8080
HTTP/1.1 200 OK
Server: Resin/4.0.38
Content-Type: text/html; charset=utf-8
Content-Length: 366
Date: Sun, 06 Apr 2014 12:50:01 GMT


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

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