【发布时间】:2017-05-01 16:00:50
【问题描述】:
我已将我的应用程序分发到 Linux (Ubuntu)。当我尝试从服务器运行 bin 文件夹中的文件时,我收到此错误:
Oops, cannot start the server.
java.io.FileNotFoundException: /opt/co-assist/RUNNING_PID (Permission denied)
at java.io.FileOutputStream.open0(Native Method)
at java.io.FileOutputStream.open(FileOutputStream.java:270)
at java.io.FileOutputStream.<init>(FileOutputStream.java:213)
at java.io.FileOutputStream.<init>(FileOutputStream.java:162)
at play.core.server.ProdServerStart$.createPidFile(ProdServerStart.scala:131)
at play.core.server.ProdServerStart$.start(ProdServerStart.scala:45)
at play.core.server.ProdServerStart$.main(ProdServerStart.scala:27)
at play.core.server.ProdServerStart.main(ProdServerStart.scala)
我看到了一些关于此错误的帖子,但没有解决我的问题。
我已尝试创建 application.ini 文件并添加 play.pid 文件,但我猜这不是解决方法: https://playframework.com/documentation/2.5.x/Deploying#Play-PID-Configuration
我不确定如何正确设置 - 有谁知道我是否可以遵循更详细的说明?
感谢您的帮助...
【问题讨论】:
标签: ubuntu playframework