您的位置:首页 > 运维架构 > Linux

linux 查询端口占用

2016-11-09 19:48 387 查看

windows 端口占用查询

1.cmd 窗口

2.netstat -ano|findstr “8081” 记下pid xxxx

3.tasklist|findstr “xxxx” 找出对应的程序

linux 端口占用查询

1.根据端口查询进程

netstat -apn|grep 11000



2.根据进程查询程序

ps -ef|grep 819



3.确定是什么程序占用了端口

是 ctpf 的这个程序占用了端口
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  windows linux