find正在运行的节点JS文件
我已经在端口8888运行节点js文件,但我已经完全忘记了那个文件的位置,当我使用命令'ps ax | grep节点“这是结果
1590 ? Ssl 6:56 node-red 23685 pts/0 S+ 0:00 grep node
如何知道这个文件的位置或者需要什么命令?
我已经尝试netstat命令,但stil没有发现任何关于位置的信息。
这是netstat的结果
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
更新的问题
我想知道.js文件位置,而不是可执行安装。
process.execPath属性返回启动Node.js进程的可执行文件的绝对path名。
例如:
'在/ usr / local / bin目录/节点'
process.execPath
- 为vue-cli运行“npm run dev”时出现跨环境问题
- 如何在我的专用服务器上安装Node Js
- 如何在CentOS 6.6 vps上部署使用Visual Studio开发的Node JS应用程序
- 如何将node-js应用程序打包到单个rpm?
- Nodejs错误:无效:inherits@2.0.0 / usr / lib / node_modules / inherits @ 2
- 无法在Centos Server上安装bcrypt node.js模块
- 在VirtualBox CentOS机器上的node.js,没有连接?
- node.js无法连接到mysql数据库
- Node.js没有被Rails / execjsfind