-1

Using termux I cannot use the root user commands.

  • I using top for see pid.

Next step i kill process.

kill pid

How can i get pid for only for app.js ?

Sergey
  • 418
  • 1
  • 7
  • 21

1 Answers1

2

You can find the port and PID with the netstat command.

netstat -lntp | grep node

ps allows you to find the full command of the process:

ps aux | grep node
  • ps aux | grep node - is working. netstat -lntp | grep node - is not working (Not all processes could be identified, non-owned process info will not be shown, you would have to be root to see it all.) netstat: no support for `AF INET (tcp)' on this system. – Sergey Jul 16 '20 at 02:43