forever start 启动不起来

使用forever 的关闭又重新运行的时候,运行不起来

forever start -l forever.log -o out.log -e err.log www

提示信息:

<code><span class="pln">info</span><span class="pun">:</span>    <span class="typ">Forever</span><span class="pln"> processing file</span><span class="pun">:</span><span class="pln"> app</span><span class="pun">.</span><span class="pln">js
error</span><span class="pun">:</span>   <span class="typ">Cannot</span><span class="pln"> start forever
error</span><span class="pun">:</span><span class="pln">   log file </span><span class="pun">/</span><span class="pln">root</span><span class="pun">/.</span><span class="pln">forever</span><span class="pun">/</span><span class="pln">forever</span><span class="pun">.</span><span class="pln">log exists</span><span class="pun">.</span> <span class="typ">Use</span><span class="pln"> the </span><span class="pun">-</span><span class="pln">a </span><span class="kwd">or</span> <span class="pun">--</span><span class="pln">append option to append log</span><span class="pun">.

其实是forever在询问是否继续补充日志,只需要在指令后面添加-a 参数就好了,如下:
<strong>forever start -l forever.log -o out.log -e err.log -a www</strong>
</span></code>


三月 12th, 2015 by