欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

linux下启动resin 错误 [resin is an unknown user]

程序员文章站 2024-02-21 17:18:16
...
[email protected]:~ > ./resin.sh

java.lang.IllegalArgumentException: resin is an unknown user
at com.caucho.bootjni.JniProcess.exec(Native Method)
at com.caucho.bootjni.JniProcess.<init>(JniProcess.java:75)
at com.caucho.bootjni.JniProcess.create(JniProcess.java:105)
at com.caucho.bootjni.JniProcess.create(JniProcess.java:27)
at com.caucho.bootjni.JniBoot.exec(JniBoot.java:61)
at com.caucho.boot.WatchdogProcess.createProcess(WatchdogProcess.java:552)
at com.caucho.boot.WatchdogProcess.run(WatchdogProcess.java:95)
at com.caucho.boot.WatchdogTask.run(WatchdogTask.java:106)
at java.lang.Thread.run(Thread.java:619)



仔细一瞧原来问题在这呢:

conf/resin.xml文件中有这么一段


<resin:if test="${resin.userName == 'root'}">
<user-name>resin</user-name>
<group-name>resin</group-name>
</resin:if>


1. useradd resin
2. chown -R resin /var/server/resin-3.2.1


[color=red][b]注: /var/server/resin-3.2.1是系统中的resin目录[/b][/color]

重启resin