Linux Safe

 Linux防火墙:iptables禁IP与解封IP常用命令

https://blog.csdn.net/qjc_501165091/article/details/51225984

iptables -I INPUT -s ***.***.***.*** -j DROP
iptables -L

Linux查看端口使用状态、关闭端口方法

https://www.cnblogs.com/alantu2018/p/8462574.html

netstat -anp

查看linux中的TCP连接数

一、查看哪些IP连接本机

netstat -an

二、查看TCP连接数

1)统计80端口连接数
netstat -nat|grep -i "80"|wc -l

 当前用户

who

echo ""> /var/log/wtmp  //清除last
last

echo ""> /var/log/btmp  //清除lastb
lastb

history -c //清除history
history

猜你喜欢

转载自www.cnblogs.com/soghipg/p/9429883.html