I started a Node app using forever-monitor. My forever-monitor configuration is as follows.
"use strict";
var forever = require("forever-monitor");
var child = new(forever.Monitor)("index.js", {
silent: true
});
child.on("exit", function() {
console.log("bot has exited");
});
It probably has started a background process but my code doesn't work as intended. How do I go and kill that process?
答案 0 :(得分:0)
forever stopall
应该停止永远管理的所有流程。