简体   繁体   English

在数字海洋液滴上找不到 nodemon 实例

[英]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.

相关问题 在数字海洋液滴上连接我的域名 - Connecting my domain name on digital ocean droplet 如何在单个液滴上将不同的 MERN 应用程序部署到数字海洋? - How to deploy different MERN apps to digital ocean on a single droplet? 如何在数字海洋飞沫上运行我的Express应用程序 - How to run my express app on digital ocean droplet HTML到PDF的node-wkhtmltopdf在Digital Ocean Droplet服务器上崩溃 - HTML to PDF with node-wkhtmltopdf crashing on a Digital Ocean Droplet server 如何从Github将文件拉至Digital Ocean Droplet - How to pull a file from Github to a Digital Ocean droplet 从Digital Ocean Dropout外部访问节点应用程序还需要什么? - What else is required to access a node app from outside a Digital Ocean droplet? 将多个 Angular SSR 应用程序部署到 Digital Ocean 液滴的最佳方法是什么? - What is the best way to deploy multiple Angular SSR apps to Digital Ocean droplet? 无法在Digital Ocean node.js实例上安装bcrypt - Unable to install bcrypt on Digital Ocean node.js instance 在 Digital Ocean Droplet 中部署 Strapi 时出错:因为它违反了以下内容安全策略指令:“connect-src 'self' https: - Errors deploying Strapi in Digital Ocean Droplet: because it violates the following Content Security Policy directive: "connect-src 'self' https: node ace build --production, [error] 在 Digital Ocean Apps 上找不到“build”命令错误 - node ace build --production, [ error ] "build" command not found error on Digital Ocean Apps
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM