2
포트 8888에서 노드 js 파일을 실행하고 있지만 'ps ax |'명령을 사용할 때 그 파일의 위치가 어디인지 완전히 잊어 버렸습니다. grep 노드 '결과입니다실행 노드 JS 파일 찾기
1590 ? Ssl 6:56 node-red
23685 pts/0 S+ 0:00 grep node
이 파일 위치를 알아 내려면 어떻게 사용해야합니까?
이미 netstat 명령을 시도했지만 그 위치에 대한 정보는 공개되지 않습니다.
이 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 파일 위치가 아닌 설치하는 실행 파일입니다 알고 싶어
.
그게 당신이 원하는 무엇을 생각 [https://superuser.com/questions/103309 /how-can-i-know-the-absolute-path-of-a-running-process](https://superuser.com/questions/103309/how-can-i-know-the-absolute-path- 실행중인 프로세스) – EvgenyKolyakov
[코드에서 node.js 설치 경로 가져 오기] 가능한 복제본 (https://stackoverflow.com/questions/12714979/get-the-node-js-install-path-from- 코드) –
@EvgenyKolyakov 내 .js 파일을 찾지 못했지만 내 노드 만 실행할 수 있습니다. 'lrwxrwxrwx 1 루트 루트 0 9 월 11 일 04:40/proc/1590/exe ->/usr/local/bin/node' –