我是靠谱客的博主 温柔蚂蚁,这篇文章主要介绍在centos下安装resin,现在分享给大家,希望可以做个参考。

前提条件

得现在centos下安装java环境:参考地址


安装

我们先去官网获得下载地址:
这里写图片描述
我们选择rpm格式。

在centos命令行下执行命令下载:

wget http://caucho.com/download/rpm-6.5/4.0.43/x86_64/resin-pro-4.0.43-1.x86_64.rpm

安装

# rpm -ivh resin-4.0.43-1.x86_64.rpm

查看运行状态

# service resin status
Resin/4.0.43 status for watchdog at 127.0.0.1:6600
watchdog:
watchdog-pid: 1154
server 'app-0' : ACTIVE
password: missing
watchdog-user: root
user: resin(resin)
root: /var/resin
conf: /etc/resin/resin.xml
pid: 1245
uptime: 0 days 00h26


resin一些目录说明

./usr/local/share/resin resin应用到的库和一些命令
./etc/resin 配置文件,比如resin.xml等配置文件
./var/resin webapps的所在目录
./var/log/resin resin运行日志


设置resin编码为UTF-8

<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:''}"/>
<character-encoding>UTF-8</character-encoding><!-- 设置编码为UTF-8 -->
</host-default>

最后

以上就是温柔蚂蚁最近收集整理的关于在centos下安装resin的全部内容,更多相关在centos下安装resin内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(47)

评论列表共有 0 条评论

立即
投稿
返回
顶部