resin笔记

1.随便下载一个resin   wget http://     http://www.caucho.com/download/
2.安装C/C++编译器 apt-get install gcc
3.安装相关构建工具 apt-get install build-essential
4.放到/usr/local下。解压tar -xvf resin.tar.gz
5.配置  cd到解压后的resin-**-**目录下 执行 ./configure --prefix=/usr/local/resin --with-java-home=/usr/local/jdk --enable-64bit;
6.编译make;(由于下载的resin是用c++编写的所以先安装一个c++编译器和相关构建build-essential 然后在make)
7.安装make install;
8.配置profile,同JDK


1.bin——主要就是添加新站点的shell脚本启动
新建run.sh  bash /usr/local/resin/bin/${1}-resin.sh restart
新增站点:cs-resin.sh  只改这里的就行 ${shpath}/../conf/cs-resin.conf -server cs-a ${1}
2.conf——resin的主要配置
新增:**-resin.conf
<server id="cs-a" address="127.0.0.1" port="6805" watchdog-port="6625" >
<http id="" port="8085"/>(此处8085接应nginx的8085)
</server>
<host id='cs.nutsplay.com'>(配置域名好像是)
<web-app id="/" document-directory="/data/webapps/cs.nutsplay.com/"  archive-path="/data/webapps/war/nuts-cs.war"/>
去执行/data/webapps/cs.nutsplay.com项目
打印日志输出:<stdout-log path="/data/log/resin/hd-out.log"
错误日志输出:<stderr-log path="/data/log/resin/hd-err.log"
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值