linux resin 服务功能,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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值