删除linux端口,linux查看删除端口

引用:

[root@gzcourt bin]# netstat -an |grep 80

tcp 0 0 ::ffff:127.0.0.1:8005 :::* LIST

EN

tcp 0 0 :::8009 :::* LIST

EN

tcp 0 0 :::80 :::* LIST

EN

tcp 0 0 :::8080 :::* LIST

EN

tcp 0 0 ::ffff:172.16.1.153:80 ::ffff:202.160.179.12:36057 TIME

_WAIT

tcp 0 0 ::ffff:172.16.1.153:80 ::ffff:202.160.178.15:39176 TIME

_WAIT

tcp 0 0 ::ffff:172.16.1.153:80 ::ffff:218.20.57.173:55001 ESTA

BLISHED

tcp 0 0 ::ffff:172.16.1.153:80 ::ffff:218.20.57.173:3516 ESTA

BLISHED

tcp 0 0 ::ffff:172.16.1.153:80 ::ffff:218.20.57.173:55037 ESTA

BLISHED

tcp 0 0 ::ffff:172.16.1.153:80 ::ffff:218.20.57.173:3518 ESTA

BLISHED

tcp 0 0 ::ffff:172.16.1.153:80 ::ffff:61.135.162.208:57893 TIME

_WAIT

tcp 0 0 ::ffff:172.16.1.153:80 ::ffff:210.72.4.122:39196 ESTA

BLISHED

tcp 0 0 ::ffff:172.16.1.153:80 ::ffff:59.32.124.136:22529 ESTA

BLISHED

tcp 0 0 ::ffff:172.16.1.153:80 ::ffff:218.20.57.173:55222 ESTA

BLISHED

tcp 0 0 ::ffff:172.16.1.153:80 ::ffff:218.20.57.173:3510 ESTA

BLISHED

tcp 0 0 ::ffff:172.16.1.153:80 ::ffff:59.32.124.136:22530 ESTA

BLISHED

tcp 0 0 ::ffff:172.16.1.153:80 ::ffff:210.72.4.122:39198 ESTA

BLISHED

unix 3 [ ] STREAM CONNECTED 6880 /tmp/.X11-unix/X0

# lsof -i :80|grep -v "PID"|awk '{print "kill -9",$2}'|sh

表情包
插入表情
评论将由博主筛选后显示,对所有人可见 | 还能输入1000个字符
相关推荐
©️2020 CSDN 皮肤主题: 数字20 设计师:CSDN官方博客 返回首页