然后vi resin.conf 文件,找到如下这段代码:
2 <host id="" root-directory="."> //找呢标志段开头ok
3 <!--
4 - configures an explicit root web-app matching the
5 - webapp's ROOT
6 -->
7 <web-app id="/" root-directory="webapps/ROOT"/>
8
9 <web-app id="/resin-admin" root-directory="${resin.home}/php/admin">
10 <!--
11 - Administration application /resin-admin
12 -->
13 <prologue>
14 <resin:set var="resin_admin_external" value="false"/>
15 <resin:set var="resin_admin_insecure" value="true"/>
16 </prologue>
17 </web-app>
18 </host>
archive-path="/data/wars/hrs.war"/>
好了,保存,退出vi。
http://dltyxh.com/resin-doc/doc/webapp-tags.xtp 本文档配置参考
http://dltyxh.com/resin-doc/doc/index.xtp resin3.1 官方参考文档