John-zero's Share

略略略...

Picture-Project 之 缩略图

照片项目 之 缩略图

缩略图 单反拍摄高清无码照片大小3MB+, 导致 WEB 页面加载贼慢, 所以优化生成缩略图来代替. 使用的 Google Java Library: <!-- https://github.com/coobird/thumbnailator --> <!-- https://mvnrepository.com/artifact/net.coobird/thumbna...

MYSQL 库表 使用 Script 操作

MYSQL 查看版本 SELECT VERSION(); 显示引擎 SHOW ENGINES; 连接通信状态 SHOW FULL PROCESSLIST; (注意: 非 SUPER 权限只能查看当前账户运行的线程) ... Account Management Statements: https://dev.mysql.com/doc/refman/...

Redis 私有云平台

搜狐视频(sohu tv) Redis 私有云平台

搜狐视频(sohu tv) Redis 私有云平台 搜狐视频(sohu tv) CacheCloud 官方博客 部署安装 参考: 服务器端接入文档 Download V1.2 https://pan.baidu.com/s/1nvTv90l 解压 tar -xvf cachecloud-bin-1.2.tar.gz cd cachecloud-web/ vim jdbc.p...

Java Logging

Java 日志

日志接口 Commons-Logging (JCL 简称], Jakarta Commons Logging, Apache Commons Logging) (官网) (GitHub) 对外提供统一的接口, 然后采用 适配器模式 将日志的具体操作委托给集成的具体的日志框架, 比如 Log4J, Log4J 2 等 S...

IntelliJ IDEA

Java 开发工具 IntelliJ IDEA

下载, 安装, 破解 下载 Download (UItimate 旗舰版, Community 社区版) 安装 省略… 破解 IntelliJ IDEA License Server 本地搭建教程 编码设置 在 bin/idea.exe....

Redis Sentinel

Redis 哨兵

官网 Sentinel 官网 Sentinel Clients 指南 Sentinel 节点 Sentinel 节点本身就是独立的 Redis 节点. 只不过特殊一些, 不存储数据, 并且只支持部分命令. 比如支持: ping, sentinel, subscribe, unsubscribe, psubscribe, punsubscribe, publish, info, rol...

Redis Distributed Lock

Redis 分布式锁

实现方式 0: setnx(), expire(), del() 悲观锁模式 缺点: expire() 执行前宕机, 有概率会导致死锁 1: setnx(), get(), getset(), del() 悲观锁模式 缺点: 如果多台服务器本地时间不一致容易出现过期时间判断问题 2: set(SET KEY VALUE EX 5秒 NX), get(), del() [推荐使用...

Redis Memory

Redis 内存

内存监控 info 监控 (V4.01) 类型 属性 描述 Clients       connected_clients 已连接客户端的数量 Memory   ...

Redis Monitor

Redis 运维监控

单机监控项 监控数据来源    info 命令 (官网 info) 建议监控属性 类型 属性 描述 Server 服务器信息         Clients 客户端...

Redis Persistence

Redis 持久化

官网 Persistence 如果只是将 Redis 作为缓存, 那么是不建议开启持久化功能的. RDB (默认开启) 相关配置: (V3.2) save 900 1 save 300 10 save 60 10000 stop-writes-on-bgsave-error yes rdbcompression yes rdbchecksum yes db...