一 zk基本概念 集群角色 Leader:为客户端提供读写服务 Follower:提供读服务,所有写服务都需要转交给 Leader 角色,参与选举 Observer:提供读服务,不参与选举过程,一般是为了增强 zk 集群的读请求并发能力 会话(session) zk 客户端与服务端之间的连接 通过心 ...
分类:
其他好文 时间:
2021-06-28 19:47:34
阅读次数:
0
简述 在常见的网站上,我们需要登录才能访问到其他资源。一般来说我们的登录信息会用session存储,所以我们可以使用filter进行一个登录验证的过滤。 package cn.itcast.web.filter; import com.sun.deploy.net.HttpRequest; impo ...
分类:
其他好文 时间:
2021-06-28 19:38:28
阅读次数:
0
OSCP Security Technology - Fuzzing Download vulnserver from the grey corner website. https://thegreycorner.com/vulnserver.html Download immunity debug ...
分类:
其他好文 时间:
2021-06-28 19:14:54
阅读次数:
0
1、前言 很多Spring Boot应用使用了Session作为缓存,一般会在用户登录后保存用户的关键信息,如: 用户ID。 用户名。 用户token。 权限角色集合。 等等。。。 在管理员修改了用户的权限后,希望能立即生效。此时,会发现一个问题,管理员的HTTP请求对象,只能获取自己的Sessio ...
分类:
其他好文 时间:
2021-06-28 19:07:45
阅读次数:
0
select 1 as id,'是' as text from dual union all select 0 as id ,'否' as text from dual 同时查询出十条数据 select * from dual connect by 0 + level <= 10; 按照这个特性计算 ...
分类:
数据库 时间:
2021-06-28 18:48:46
阅读次数:
0
命令:wevtutil cl 日志类型 wevtutil cl security wevtutil cl Setup wevtutil cl System wevtutil cl Aplication wevtutil cl Forwarded Events 使用Phantom 工具 该脚本遍历事件 ...
分类:
其他好文 时间:
2021-06-28 17:55:05
阅读次数:
0
VNCR is supported for the cluster. Use MOS note 1914282.1 to ensure you've done all the required steps How to Enable VNCR on RAC Database to Register ...
分类:
数据库 时间:
2021-06-28 17:54:34
阅读次数:
0
TCP源码分析 - 三次握手之 connect 过程 本文主要分析 TCP 协议的实现,但由于 TCP 协议比较复杂,所以分几篇文章进行分析,这篇主要介绍 TCP 协议建立连接时的三次握手过程。 TCP 协议应该是 TCP/IP 协议栈中最为复杂的一个协议(没有之一),TCP 协议的复杂性来源于其面 ...
分类:
其他好文 时间:
2021-06-28 17:41:33
阅读次数:
0
1. 当前连接会话数以及当前并发连接个数 -- 当前活跃用户会话数Select count(*) from v$session where status='ACTIVE' and USERNAME is not null;-- 当前活跃系统会话数Select count(*) from v$sess ...
分类:
数据库 时间:
2021-06-25 17:21:32
阅读次数:
0
web端:socket.io.js 小程序端:weapp.socket.io.js const params = { query:‘’,//连接参数 path: '/socket.io', 'force new connection':true //新开一个websocket连接 } const w ...
分类:
其他好文 时间:
2021-06-25 16:30:53
阅读次数:
0