javascript - Locate Running Node JS File -
i have running node js file in port 8888, have forget location of file when using command 'ps ax | grep node' result
1590 ? ssl 6:56 node-red 23685 pts/0 s+ 0:00 grep node how or command need use know file location ?
i try netstat command stil not reveale information location.
this netstat result
tcp 0 0 :::993 :::* listen 1842/dovecot tcp 0 0 :::995 :::* listen 1842/dovecot tcp 0 0 :::587 :::* listen 1856/exim tcp 0 0 :::110 :::* listen 1842/dovecot tcp 0 0 ::1:783 :::* listen 1876/spamd-dormant tcp 0 0 :::143 :::* listen 1842/dovecot tcp 0 0 :::8080 :::* listen 1590/node-red tcp 0 0 :::80 :::* listen 1929/httpd tcp 0 0 :::465 :::* listen 1856/exim tcp 0 0 :::21 :::* listen 1939/pure-ftpd (ser tcp 0 0 :::22 :::* listen 1613/sshd tcp 0 0 :::8888 :::* listen 1590/node-red tcp 0 0 :::25 :::* listen 1856/exim tcp 0 0 :::1883 :::* listen 1590/node-red tcp 0 0 :::443 :::* listen 1929/httpd updated question
i want know .js file location, not executeable installed.
the process.execpath property returns absolute pathname of executable started node.js process.
for example:
'/usr/local/bin/node'
Comments
Post a Comment