ITeye博客

Resin 维护

7wolfs · 2018-06-13 09:42 · Java · Resin · 编程语言 · Markdown

<!--[if gte mso 9]><xml> <o:OfficeDocumentSettings> <o:AllowPNG/> </o:OfficeDocumentSettings> </xml><![endif]-->

1、因为resin 的war部署的特点,当resin重启时,会使用最近一次war部署的内容,war部署后产生的内容不会恢复。

 

2、如果war文件过大,需要修改 ‘/mnt/resin/doc/admin/WEB-INF/resin-web.xml’ 里的

‘php-ini upload_max_filesize’ 参数值

<servlet-mapping url-pattern="*.php"
                   servlet-class="com.caucho.quercus.servlet.QuercusServlet">
     <init compile="false">
       <!--
         if the application being deployed is greater then 128Mb (134217728)
         please increase the value accordingly
       -->
       <php-ini upload_max_filesize="194217728"/>
     </init>
  </servlet-mapping>

 

 

3、war里不能包含中文及其他非英文字符集里的字符,不能包含非ascii字符。否则会无法部署。

4、如果resin里的war运行有异常,需要先停掉resin,然后清除resin-data内容(rm -dfr /mnt/resin/resin-data)。

 

5、限制 IP 访问resin-admin

修改的文件:cluster-default.xml

修改的位置:

 

<resin:if test="${web_admin_enable}">
        <web-app id="/resin-admin" root-directory="${resin.root}/doc/admin">

 在web-app下直接插入如下代码:

 

<resin:Allow url-pattern="/*">
            <resin:IfUserInRole role="resin-admin"/>
            <resin:IfNetwork value="192.168.0.12/24"/>
          </resin:Allow>

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。