0
我已將應用程序分發到Linux(Ubuntu)。當我嘗試運行在從服務器的bin文件夾中的文件,我收到此錯誤:Play框架無法在Ubuntu中創建RUNNING_PID文件
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
我不知道如何正確設置此設置 - 是否有人知道我是否可以遵循更詳細的說明?
我欣賞的幫助......