码迷,mamicode.com
首页 > 其他好文 > 详细

resin安装配置

时间:2018-01-22 22:53:30      阅读:172      评论:0      收藏:0      [点我收藏+]

标签:web   body   with   安装配置   direct   tar   一段   主机   glin   

wget www.aminglinux.com/bbs/data/attachment/forum/resin-4.0.36.tar.gz
tar zxvf resin-4.0.36.tar.gz
cd resin-4.0.36
./configure --prefix=/usr/local/resin --with-java-home=/usr/local/jdk1.8.0_31
vim resin.xml
结构: <cluster id="app"> <host></host> </cluster> 虚拟主机配置就在<host></host>里配置
<host id="www.123.com" root-directory=".">
vim /tmp/123/111.jsp //加入
<html><body><center>
测试 :
curl -x127.0.0.1:8080 www.123.com/111.jsp

安装resin
make && make install
/etc/init.d/resin start
配置resin
cd /usr/local/resin/conf
vim resin.properties 更改监听端口 app行
<web-app id="/" root-directory="/tmp/123"/>
</host>
注意,这里并不是在</host>下面再加一段,而是直接更改里面的<host></host>
Now time is: <%=new java.util.Date()%>
</center></body></html>

resin安装配置

标签:web   body   with   安装配置   direct   tar   一段   主机   glin   

原文地址:http://blog.51cto.com/amazing61/2063906

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!