简体   繁体   English

我如何在 linux 中获得没有 sudo 的 pid

[英]How can i get pid without sudo in linux

Using termux I cannot use the root user commands.使用 termux 我不能使用 root 用户命令。

  • I using top for see pid .我使用top查看pid

Next step i kill process.下一步我杀死进程。

kill pid

How can i get pid for only for app.js?我怎样才能获得仅适用于 app.js 的 pid?

You can find the port and PID with the netstat command.您可以使用 netstat 命令找到端口和 PID。

netstat -lntp | grep node

ps allows you to find the full command of the process: ps 允许您找到该进程的完整命令:

ps aux | grep node

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM