Server Deployment - Resin
Try to install resin on my local server. Deploy my instances on ubuntu as the same as tomcat/jetty.
1. Install resin
>tar zxvf resin-4.0.18.tar.gz
>cd resin-4.0.18
>./configure --prefix=/home/luohua/tools/resin
>sudo make
>sudo make install
2. My shell scripts
start-resin1.sh
#!/bin/sh
RESIN_HOME="/home/luohua/tools/resin"
RESIN_BASE="/home/luohua/tools/shellscript/resin1"
export RESIN_HOME RESIN_BASE
cd ${RESIN_HOME}
java -jar lib/resin.jar -conf "${RESIN_BASE}/resin.xml" -server resin1 start
start-resin2.sh is almost the same as start-resin1.sh, so was start-resin3.sh
#!/bin/sh
RESIN_HOME="/home/luohua/tools/resin"
RESIN_BASE="/home/luohua/tools/shellscript/resin2"
export RESIN_HOME RESIN_BASE
cd ${RESIN_HOME}
java -jar lib/resin.jar -conf "${RESIN_BASE}/resin.xml" -server resin2 start
3. Configuration files
resin1/resin.xml
<cluster id="resin1">
<server id="resin1" address="127.0.0.1" port="6801">
<http id="" port="8083"/>
</server>
<host id="" root-directory=".">
<web-app id="/easymarket" root-directory="/home/luohua/tools/shellscript/apps/easymarket"/>
</host>
</cluster>
resin1/app-default.xml is copied from the resin installed directory.
resin2/resin.xml:
<cluster id="resin2">
<server id="resin2" address="127.0.0.1" port="6802">
<http id="" port="8084"/>
</server>
<host id="" root-directory=".">
<web-app id="/easymarket" root-directory="/home/luohua/tools/shellscript/apps/easymarket"/>
</host>
</cluster>
resin3/resin.xml:
<cluster id="resin3">
<server id="resin3" address="127.0.0.1" port="6803">
<http id="" port="8085"/>
</server>
<host id="" root-directory=".">
<web-app id="/easymarket" root-directory="/home/luohua/tools/shellscript/apps/easymarket"/>
</host>
</cluster>
4. Test these URLs
http://localhost:8083/easymarket
http://localhost:8084/easymarket
http://localhost:8085/easymarket
references:
http://www.caucho.com/
http://caucho.com/resin-4.0/admin/starting-resin.xtp
http://www.vinceruan.info/java/deploy_muti_resin_4_one_server/
http://rqyyy.iteye.com/blog/314928
分享到:
相关推荐
Lync-Server-2010-RTM-Standard-Edition-Deployment-Document.pdf
Lync-Server-2010-RTM-Enterprise-Edition-Deployment-Document.pdf
Black Belt HyperFlex Deployment - Stage1 是思科在2019年6月为合作伙伴推出的一项高级认证考试。这个题库是针对那些希望深入理解和熟练掌握HyperFlex解决方案部署的专业人士所设计的。HyperFlex是思科的一种超融合...
本文将深入探讨如何使用"alfresco-deployment-484-2.9.3B.jar.zip"这个压缩包进行Alfresco的部署,以及其中的"alfresco-deployment-484-2.9.3B.jar"文件在部署过程中的关键作用。 首先,我们要明确"jar"文件的含义...
DigitalOcean-Nodejs-Deployment--源码.rar
**前端开源库-esh-deployment-cloud** 在当前的IT领域,前端开发已经成为互联网产品不可或缺的一部分。随着技术的不断发展,各种前端框架和库层出不穷,极大地提高了开发效率和用户体验。"前端开源库-esh-...
maven-deployment-linker-1.3-sources.jar
maven-deployment-linker-1.2-sources.jar
maven-deployment-linker-1.1-sources.jar
maven-deployment-linker-1.0-sources.jar
deployment-ucc-service.yml
maven-deployment-linker-1.2.jar
maven-deployment-linker-1.1.jar
maven-deployment-linker-1.0.jar
VMware-View4-Deployment-Guide-Q309.pdf
Accelerate-Deployment-of-Space-Missions-Through-Digitalization (10).pdf
Accelerate-Deployment-of-Space-Missions-Through-Digitalization (7).pdf
Accelerate-Deployment-of-Space-Missions-Through-Digitalization (8).pdf
nexus-deployment-pod.yaml
[RT-CN]Exchange_Deployment-Migration-Hybrid-Mgmt-TechDeck.pptx