当前位置:网站首页>安全20220715
安全20220715
2022-07-31 03:18:00 【北栀 鹿℡】
nmap的应用:
- 主机探测
- 端口扫描
- 版本检测
- 系统检测
- 支持探测脚本的编写
我们可以通过设置让Linux对nmap扫描无回应,利用iptables工具来过滤网络信息,从而让系统无法回应扫描请求的信息
配置命令如下:
#iptables -F
#iptables -A INPUT -p tcp --tcp-flags ALL FIN,URG,PSH -j Drop
#iptables -A INPUT -p tcp --tcp-flags SYN,RST SYN,RST -j Drop
#iptables -A INPUT -p tcp --tcp-flags SYN,FIN SYN,FIN -j Drop
#iptables -A INPUT -p tcp --tcp-flags SYN,SYN --dport 80 -j Drop
binlog增量备份的实现步骤:
1.开启二进制日志
log_bin(log-bin也可以) #启用日志
server_id=50 #id只能是1-255
#max_binlog_size=数值 #默认是1G,超了1G就创建新的binlog日志
2.重启MySQL服务
systemctl restart mysqld
3.检查是否启用日志
1)进入数据库,show master status; #查看本机的binlog日志文件
position ---> 偏移量 ---> 记录命令的编号
2)查看/var/lib/mysql 可以看到binlog日志文件和日志的索引文件
配置命令:
1.手动生成新的日志文件 #每个binlog日志的偏移量从154开始
-flush logs 或 mysql -uroot -p123456 -e ‘flush logs’
-systemctl restart mysqld
-mysqldump
2.清理日志
1.删除指定日志文件前的所有日志 purge master logs to “binlog文件名”
2.删除所有 reset master;
3.自定义存储名称
1.在配置文件中配置,
bin_log=/mylog/rzc
2.重启服务即可
边栏推荐
- MP使用时的几个常见报错
- IDEA 注释报红解决
- 下载jar包的好地方
- 【AUTOSAR-RTE】-5-Explicit(显式)和Implicit(隐式) Sender-Receiver communication
- JS function this context runtime syntax parentheses array IIFE timer delay self.backup context call apply
- Mycat's master-slave relationship, vertical sub-database, horizontal sub-table, and detailed configuration of mycat fragmented table query (mysql5.7 series)
- False positives and false negatives in testing are equally worthy of repeated corrections
- TCP详解(三)
- Discussion on Service Commitment of Class Objects under Multithreading
- LeetCode中等题之分数加减运算
猜你喜欢
MultipartFile文件上传
[Compilation principle] Lexical analysis program design principle and implementation
LeetCode简单题之找到和最大的长度为 K 的子序列
Mysql 45讲学习笔记(二十四)MYSQL主从一致
What is a distributed lock?Three ways of implementing distributed lock
Chapter 9 SVM Practice
Getting Started with CefSharp - winform
MultipartFile file upload
VS QT——ui不显示新添加成员(控件)||代码无提示
一份高质量的测试用例如何养成?
随机推荐
addressable in Golang
【CocosCreator 3.5】CocosCreator 获取网络状态
LeetCode中等题之分数加减运算
TCP详解(二)
Detailed explanation of TCP (3)
刚出道“一战成名”,安全、舒适一个不落
Ambiguous method call.both
Use of QML
Discussion on Service Commitment of Class Objects under Multithreading
立足本土,链接全球 | 施耐德电气“工业SI同盟”携手伙伴共赴未来工业
【C语言】进制转换一般方法
els 方块向左移动条件判断
分布式锁以及实现方式三种
Automation strategies for legacy systems
10 Permission introduction
下载jar包的好地方
The els block moves the boundary to the right, and accelerates downward.
【HCIP】ISIS
6. Display comments and replies
Atomic operation CAS