随笔分类 -  安全

摘要:cat /var/log/secure | awk '/Failed/{print $(NF-3)}' | sort | uniq -c | awk '{print $2" = "$1;}' 查看ip访问错误次数统计cat /dev/null > nohup.out 清空nohup文件 du -sh 阅读全文
posted @ 2024-07-04 19:01 云飞飏 阅读(14) 评论(0) 推荐(0) 编辑
摘要:常用命令 文件与目录操作 以下是CentOS 7 防火墙的完整操作命令: 查看防火墙状态。systemctl status firewalld 开启/关闭防火墙。systemctl start/stop firewalld 查看已安装防火墙规则。firewall-cmd --list-ports 添 阅读全文
posted @ 2023-12-08 09:34 云飞飏 阅读(43) 评论(0) 推荐(0) 编辑
摘要:cat /etc/centos-release uname -a *************************************************************************************************** #!/bin/bash # 定义失 阅读全文
posted @ 2023-12-07 10:44 云飞飏 阅读(102) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示