"리눅스 포트 프로세스 목록 확인"의 두 판 사이의 차이

잔글 (106.243.87.164(토론)의 편집을 Jmnote의 마지막 판으로 되돌림)
태그: 일괄 되돌리기
8번째 줄: 8번째 줄:
==일반==
==일반==
<source lang='console'>
<source lang='console'>
# netstat -tnlp
root@zetawiki:~# netstat -tnlp
Active Internet connections (only servers)
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address          Foreign Address        State      PID/Program name
Proto Recv-Q Send-Q Local Address          Foreign Address        State      PID/Program name
21번째 줄: 21번째 줄:
==요약 정리==
==요약 정리==
<source lang='console'>
<source lang='console'>
# netstat -tnlp | grep -v 127.0.0.1 | sed 's/:::/0 /g' | sed 's/[:\/]/ /g' | awk '{print $5"\t"$10}' | sort -ug
[root@zetawiki ~]# netstat -tnlp | grep -v 127.0.0.1 | sed 's/:::/0 /g' | sed 's/[:\/]/ /g' | awk '{print $5"\t"$10}' | sort -ug
21 vsftpd
21 vsftpd
22 sshd
22 sshd

2020년 7월 10일 (금) 21:23 판

port + process list in linux
리눅스 열린 포트+프로세스 목록 뽑기
리눅스 열린 포트 목록 보기
리눅스 열린 포트 확인
리눅스 열린 포트, 프로세스 확인
리눅스 netstat -tnlp

1 일반

root@zetawiki:~# netstat -tnlp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 127.0.0.1:8005          0.0.0.0:*               LISTEN      1212/java       
tcp        0      0 0.0.0.0:3306            0.0.0.0:*               LISTEN      1118/mysqld     
tcp        0      0 0.0.0.0:3690            0.0.0.0:*               LISTEN      919/svnserve    
tcp        0      0 0.0.0.0:8080            0.0.0.0:*               LISTEN      1212/java       
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      1157/apache2    
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      968/sshd

2 요약 정리

[root@zetawiki ~]# netstat -tnlp | grep -v 127.0.0.1 | sed 's/:::/0 /g' | sed 's/[:\/]/ /g' | awk '{print $5"\t"$10}' | sort -ug
21	vsftpd
22	sshd
80	httpd
443	httpd
3306	mysqld
8009	java
8080	java

3 같이 보기

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}