当前位置:网站首页>安全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.重启服务即可
边栏推荐
- The distance value between two arrays of LeetCode simple questions
- Day32 LeetCode
- PMP微信群日常习题
- MultipartFile file upload
- 解析小结—自用
- Mysql 45讲学习笔记(二十五)MYSQL保证高可用
- 3.5 】 【 Cocos Creator slow operating system to stop all animations
- 5. How does the SAP ABAP OData service support the $filter operation
- Use of QML
- 一份高质量的测试用例如何养成?
猜你喜欢
[Dynamic programming] Maximum sum of consecutive subarrays
Use of QML
What is distributed and clustered?What is the difference?
Moxa NPort device flaw could expose critical infrastructure to devastating attack
LeetCode simple problem to find the subsequence of length K with the largest sum
Mysql 45 study notes (23) How does MYSQL ensure that data is not lost
浅识Flutter 基本组件之showDatePicker方法
What skills do I need to learn to move from manual testing to automated testing?
[Android] Room - Alternative to SQLite
Project (5) - Small target detection tph-yolov5
随机推荐
CorelDRAW2022 streamlined Asia Pacific new features in detail
什么是系统?
Golang中的addressable
Graphical lower_bound & upper_bound
[C language foundation] Solve C language error: expected ';', ',' or ')' before '&' token
Key Technologies of Interface Testing
浅识Flutter 基本组件之showDatePicker方法
Day32 LeetCode
【CocosCreator 3.5】CocosCreator get network status
分布式系统架构需要解决的问题
TCP详解(一)
从滴滴罚款后数据治理思考
postgresql 15源码浅析(5)—— pg_control
Ambiguous method call.both
日志级别 和 打印log注意
Distributed locks and three implementation methods
LeetCode每日一练 —— 138. 复制带随机指针的链表
Getting Started with CefSharp - winform
学习DAVID数据库(1)
Addition and Subtraction of Scores in LeetCode Medium Questions