[英]nodemon instance not found on digital ocean droplet
i deployed my node app on Digital Ocean Droplet.我在 Digital Ocean Droplet 上部署了我的节点应用程序。
after installing the dependencies i ran yarn dev安装依赖项后,我运行了 yarn dev
my script:我的脚本:
"scripts": {
"dev": "nodemon --delay 10ms --exec babel-node -- app.js"
}
after few minutes the ssh connection broke.几分钟后,ssh 连接断开。 i connected again to the ssh, but i am unable to run yarn dev script again, as the previous nodeman is still running on port 3000. how to get a instance of nodeman and stop it so that i could run it new instance.
我再次连接到 ssh,但我无法再次运行 yarn dev 脚本,因为之前的 nodeman 仍在端口 3000 上运行。如何获取 nodeman 的实例并停止它以便我可以运行它新的实例。
did some more research...做了一些更多的研究......
To find the nodemon process, use:要查找 nodemon 进程,请使用:
sudo netstat -plten |grep node
This should list all currently running node processes and their PIDs.这应该列出所有当前正在运行的节点进程及其 PID。 Find the correct PID and then kill it with
找到正确的 PID,然后用
kill [PID goes here]
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.