Node.js/pm2:修订间差异

来自康健生活
Kangkk​(留言 | 贡献)
Kangkk​(留言 | 贡献)
 
(未显示同一用户的1个中间版本)
第49行: 第49行:


== 配置文件 ==
== 配置文件 ==
== 技巧 ==
使用 <code>npm start</code> 启动并为进程命名。
{{shc|<syntaxhighlight lang="bash">
pm2 start npm --name newname -- start</syntaxhighlight>|$|/home/kangkk}}
运行一个自定义的脚本
{{shc|<syntaxhighlight lang="bash">
pm2 start npm -- run custom
</syntaxhighlight>|$|/home/kangkk}}
== 内存 ==
== 内存 ==
=== 最大内存 ===
=== 最大内存 ===
第61行: 第73行:
core.12064        core.17588        core.21868        core.29462        core.32854        core.36950        core.6157          error.log          view
core.12064        core.17588        core.21868        core.29462        core.32854        core.36950        core.6157          error.log          view
core.12648        core.17661        core.23078        core.30426        core.33591        core.37015        core.6284          nginxStarter.sh
core.12648        core.17661        core.23078        core.30426        core.33591        core.37015        core.6284          nginxStarter.sh
</syntaxhighlight>|$|/home/kangkk}}
==== file ====
使用 file。
{{Shc_out|<syntaxhighlight lang="bash">
file core.38790</syntaxhighlight>|<syntaxhighlight lang="bash">
core.38790: ELF 64-bit LSB core file, x86-64, version 1 (SYSV), too many program headers (3594)
</syntaxhighlight>|$|/home/kangkk}}
</syntaxhighlight>|$|/home/kangkk}}