resin安装与配置
resion安装与配置官网:cacho.com
# cd /usr/local/src/
# wget http://caucho.com/download/resin-4.0.36.tar.gz
# ls
resin-4.0.36.tar.gz
# tar zxvf resin-4.0.36.tar.gz
# cd resin-4.0.36
# ls
# ./configure --prefix=/usr/local/resin --with-java-home=/usr/local/jdk1.8.0_51
# make
# make install
# ls /usr/local/resin/
# /etc/init.d/tomcat stop
# /etc/init.d/resin start
# ps aux |grep resin
# 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默认页面
# cd /usr/local/resin/
# ls
# cd conf/
# ls
# vim resin.properties
将app.http : 8080 中8080改成80
# /etc/init.d/resin restart
客户端访问192.168.137.22可不用加8080到网站
# 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>
# mkdir /tmp/resin
# cp /data/tomcatweb/1.jsp /tmp/resin/
# /etc/init.d/resin stop
# /etc/init.d/resin start
# 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
# 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>
//正常解析时间
页:
[1]