1、解决DOS攻击生产案例:根据web日志或者或者网络连接数,监控当某个IP 并发连接数或者短时内PV达到100,即调用防火墙命令封掉对应的IP,监控频 率每隔5分钟。防火墙命令为:iptables -A INPUT -s IP -j REJECT 根据并发链接数 编写脚本: root@gitlab ...
分类:
其他好文 时间:
2021-06-16 17:47:42
阅读次数:
0
一、连接Redis服务器 redis-cli -h host -p port -a password 二、查询所有的keys keys * 三、获取指定的key对应的值 1)查询key对应的value type <key> 2)不同的type,查询的命令不一样 if value is of type ...
分类:
其他好文 时间:
2021-06-15 18:44:46
阅读次数:
0
Apache Flink Apache Flink is an open source stream processing framework with powerful stream- and batch-processing capabilities. Learn more about Flin ...
分类:
其他好文 时间:
2021-06-15 18:01:00
阅读次数:
0
import redisr = redis.Redis(host="0.0.3.40",password="123123&*",port=6379,db=4,decode_responses=True)#字符 string k-v#哈希 hash#字符串 string k-v {"name":111 ...
分类:
编程语言 时间:
2021-06-13 10:56:05
阅读次数:
0
import java.sql.*; public class JdbcDemo2 { public static void main(String[] args) throws SQLException { //创建连接 Connection con = DriverManager.getConn ...
分类:
数据库 时间:
2021-06-13 10:15:56
阅读次数:
0
Mongodb的ReplicaSet实验 标签(空格分隔): MongoDB 本文验证了:要保证mongodb RS集群在宕机情况下的可用性,至少需要三台机器。 目的 本实验的ReplicaSet集群为 1*Primary, 1*Secondary, n*Arbiter。 目的是为了验证: 三机环境 ...
分类:
数据库 时间:
2021-06-13 10:01:36
阅读次数:
0
问题背景 什么是TCP timestamps(TCP 时间戳)? The remote host implements TCP Timestamps, as defined by RFC1323 (https://www.ietf.org/rfc/rfc1323.txt). A side effec ...
分类:
移动开发 时间:
2021-06-13 09:49:28
阅读次数:
0
pymysql连接报错: _init__() takes 1 positional argument but 5 positional arguments (and 1 keyword-only argument) were given 解决方法: 连接方法加属性名称,例 pymysql.conne ...
分类:
其他好文 时间:
2021-06-13 09:42:22
阅读次数:
0
Sampler-http请求之KeepAlive使用总结 测试环境 apache-jmeter-2.13 KeepAlive使用介绍 说明: 1、Use KeepAlive 勾上,则表示为求连接设置请求头Connection: keep-alive,该配置对默认的HTTP实现不起作用,因为连接重用不 ...
分类:
Web程序 时间:
2021-06-11 18:19:02
阅读次数:
0
生产者: package com.gavin.mq.direct; import com.gavin.utils.RabbitMQUtils; import com.rabbitmq.client.Channel; import com.rabbitmq.client.Connection; imp ...
分类:
其他好文 时间:
2021-06-10 18:34:25
阅读次数:
0