resin4.0.53安装部署文档
来源:互联网 发布:数据挖掘软件容易使用 编辑:程序博客网 时间:2024/05/21 22:33
resin4.0.53安装部署文档
1.下载安装包
wget http://caucho.com/download/resin-4.0.53.tar.gz
2.解压安装
tar xzvf resin-4.0.53.tar.gzcd resin-4.0.53./configure --prefix=/data/resin-4.0.53make && make install
3.配置resin.properties
cd /data/resin-4.0.53/confvim resin.properties
将app_servers参数改为127.0.0.1:6852
注释app.http和web.http
一定要注释app.http,app_servers参数改不改也可以,因为我们会在resin.xml中不使用它,不改的话,会有歧义
4.配置resin.xml,修改端口与部署war包
vim resin.xml
删除id不是app的cluster,只保留app cluster,其余不需要,此cluster的示例配置如下:
<cluster id="app"><!--<server-multi id-prefix="app-" address-list="${app_servers}" port="6800"/>--><server id="app" address="127.0.0.1" port="6852" > <watchdog-port>4852</watchdog-port> <http address="*" port="8852"/></server><host-default> <!-- creates the webapps directory for .war expansion --> <web-app-deploy path="webapps" expand-preserve-fileset="WEB-INF/work/**" multiversion-routing="${webapp_multiversion_routing}" path-suffix="${elastic_webapp?resin.id:''}"/></host-default><!-- the default host, matching any host name --><host id="" root-directory="."> <web-app id="/" root-directory="/path/to/appdir"/> </host><resin:if test="${resin_doc}"> <host id="${resin_doc_host}" root-directory="${resin_doc_host}"> <web-app id="/resin-doc" root-directory="${resin.root}/doc/resin-doc"/> </host></resin:if></cluster>
重点关注server与host标签
server配置了管理端口:6852,监控端口:4852,http端口:8852
管理端口:resin内部管理使用
监控端口:类似守护进度,时刻关注resin是否挂了,若挂了则重启
http端口:对外开放使用的http端口
host配置了app路径,如果是部署war包,使用以下配置
<host id="" root-directory="."> <web-app id="/" root-directory="webapps/app" archive-path="/path/to/app.war"/></host>
web-app标签解释
archive-path:war包路径
root-directory:war包解压之后的文件存放路径
5.启动/停止/重启 resin
cd resin-4.0.53/bin./resinctl start./resinctl stop./resinctl restart./resinctl status./resinctl console
附加说明
在resin中使用spring框架注入properties文件时,若properties文件未找到,则需要修改配置
<bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"> <property name="locations" value="classpath:*.properties" /> <property name="ignoreUnresolvablePlaceholders" value="true" /></bean>
将classpath:*.properties
改为classpath*:*.properties
即可
阅读全文
0 0
- resin4.0.53安装部署文档
- Fedora安装resin4
- centos下安装resin4
- resin4 + JDK7环境部署记录
- resin4
- GlusterFs安装部署文档
- MetaQ安装部署文档
- pptpd安装部署文档
- MetaQ安装部署文档
- elasticsearch安装部署文档
- FastDFS安装部署文档
- FastDHT安装部署文档
- FastDHT安装部署文档
- Linux Resin4.0 安装配置
- Linux安装resin4 +防火墙问题
- 开源版Resin4服务器的集群部署
- mongos 集群安装部署文档
- Lustre2.4安装部署文档
- 数组排序算法
- 最短路径Floyd算法
- Atitit 财政支出减少之道---------蹭银行与金融机构的补贴之道
- jetty9.4.5安装部署文档
- 2017阿里校招笔试附加题2 菜鸟仓库货架编号问题
- resin4.0.53安装部署文档
- [PAT甲级]1012. The Best Rank (25)(最好排名)
- 它可以通过前述的 Kafka, Flume等数据源
- android ExpandableListView三级菜单的使用
- 字符串问题---最小包含子串的长度
- Beginning Spring学习笔记——第3章(三)文件上传、异常处理和个性化
- 单例模式
- CORS——跨域请求那些事儿
- AVL 平衡二叉搜索树原理及编程实现 (C++)版本 第二版