首页 > 系统相关 >List Ports on Linux

List Ports on Linux

时间:2022-11-09 23:36:32浏览次数:64  
标签:List netstat should list So Linux open Ports


I have often suffered this painful thing.When I start a service but the destination port is always used.So I should list all open ports and kill the occupied application.
So This is a short tip for how to list open ports on Linux



sudo netstat -tulpn

Note sometimes you should grant the command for a enough access.
For a better understanding,please



man netstat

or navigate to ​​http://linux.about.com/od/commands/l/blcmdl8_netstat.htm​

For Mac Users


1
sudo lsof -i -P | grep -i "listen"

Others

  • UNIX and Linux System Administration Handbook


标签:List,netstat,should,list,So,Linux,open,Ports
From: https://blog.51cto.com/u_3987305/5838972

相关文章