在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>
  
  

猜你喜欢

转载自blog.csdn.net/qq_22771739/article/details/89003405