标签:resin安装与配置
resion安装与配置
官网:cacho.com
[root@wangchao tomcatweb]# cd /usr/local/src/
[root@wangchao src]# wget http://caucho.com/download/resin-4.0.36.tar.gz
[root@wangchao src]# ls
resin-4.0.36.tar.gz
[root@wangchao src]# tar zxvf resin-4.0.36.tar.gz
[root@wangchao src]# cd resin-4.0.36
[root@wangchao resin-4.0.36]# ls
[root@wangchao resin-4.0.36]# ./configure --prefix=/usr/local/resin --with-java-home=/usr/local/jdk1.8.0_51
[root@wangchao resin-4.0.36]# make
[root@wangchao resin-4.0.36]# make install
[root@wangchao resin-4.0.36]# ls /usr/local/resin/
[root@wangchao resin-4.0.36]# /etc/init.d/tomcat stop
[root@wangchao resin-4.0.36]# /etc/init.d/resin start
[root@wangchao resin-4.0.36]# ps aux |grep resin
[root@wangchao resin-4.0.36]# netstat -lnp |grep java
tcp 0 0 127.0.0.1:6600 0.0.0.0:* LISTEN 6150/java
tcp 0 0 127.0.0.1:6800 0.0.0.0:* LISTEN 6192/java
tcp 0 0 :::8080 :::* LISTEN 6192/java
客户端访问192.168.137.22:8080到resin默认页面
[root@wangchao resin-4.0.36]# cd /usr/local/resin/
[root@wangchao resin]# ls
[root@wangchao resin]# cd conf/
[root@wangchao conf]# ls
[root@wangchao conf]# vim resin.properties
将app.http : 8080 中8080改成80
[root@wangchao conf]# /etc/init.d/resin restart
客户端访问192.168.137.22可不用加8080到网站
[root@wangchao conf]# vim resin.xml
<!-- the default host, matching any host name -->
<host id="" root-directory=".">
<!--
- webapps can be overridden/extended in the resin.xml
-->
<web-app id="/" root-directory="webapps/ROOT"/>
</host>
<host id="www.123.com" root-directory="."> //在此输入
<web-app id="/" root-directory="/tmp/resin"/>
</host>
[root@wangchao conf]# mkdir /tmp/resin
[root@wangchao conf]# cp /data/tomcatweb/1.jsp /tmp/resin/
[root@wangchao conf]# /etc/init.d/resin stop
[root@wangchao conf]# /etc/init.d/resin start
[root@wangchao conf]# netstat -lnp |grep java
tcp 0 0 127.0.0.1:6600 0.0.0.0:* LISTEN 6728/java
tcp 0 0 127.0.0.1:6800 0.0.0.0:* LISTEN 6770/java
tcp 0 0 :::80 :::* LISTEN 6770/java
[root@wangchao conf]# curl -x127.0.0.1:80 www.123.com/1.jsp
<html><body><center>
Now time is: Thu Jul 23 05:20:11 CST 2015
</center></body></html>
//正常解析时间
本文出自 “Linux学习笔记” 博客,请务必保留此出处http://9656134.blog.51cto.com/9646134/1677229
标签:resin安装与配置
原文地址:http://9656134.blog.51cto.com/9646134/1677229