黑苹果忘记root密码

黑苹果忘记root密码 原理是新建一个不同名字的账号为管理员。设置忘记密码用户 具体操作如下 clove或者变色龙引导的时候,按空格,输入-s,回

线上服务器资源排查

linux下获取占用CPU资源最多的10个进程,可以使用如下命令组合: ps aux|head -1;ps aux|grep -v PID|sort -rn -k +3|head linux下获取占用内存资源最多的10个进程,可以使

OpenSSL 验证证书模

SSL双向认证的认证模式设置问题 OpenSSL 验证证书模式 OpenSSL 有四种验证证书的模式,这样可以自己根据验证结构来决定应用程序的行为。四种验证模式分别是: SS

常用shell收集

限制文件修改删除 创建容器挂在需要的目录 启动目录并挂在文件 1docker run --rm --privileged -it -v /autoupd:/tt alpine sh 安装所需命令 1apk add e2fsprogs-extra 2lsattr tt 3chattr +sia tt 4lsattr tt 5chattr -sia tt awk 1echo "11 22, 33 44, 55 55, 56 77, 89 99" | awk

常用MySQL语句

创建可以无主机限制的账号 1create USER 'clibing'@'%' IDENTIFIED BY 'ty88yYMQH0udg1pC'; 创建数据库 1CREATE SCHEMA IF NOT EXISTS `clibing` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ; 授权所有数据库权限 1grant all on *.* to 'clibing'@'%'; 撤销授权所有数据库权限 1revoke all on *.* from …

Coap

COAP协议简介 Coap(Constrained Application Protocol)是一种在物联网世界的类web协议,它的详细规范定义在 RFC 7252。COAP

Spring_aop 事务 Mapper

Spring AOP AOP 原理 mapper 1 此处可以查看 mapper 2 org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator#postProcessAfterInitialization 3 org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator#wrapIfNecessary 4 org.springframework.aop.support.AopUtils#findAdvisorsThatCanApply 事务 1Supplier …

Proxmox Nat

因为环境需求,只有一个ip,只能做nat 1auto lo 2iface lo inet loopback 3 4auto enp8s0 5iface enp8s0 inet static 6 address 172.16.11.100 7 netmask 255.255.255.0 8 gateway 172.16.11.1 9 10auto vmbr0 11iface vmbr0 inet static 12 address 172.16.200.1 13 netmask 255.255.255.0 14 bridge_ports none 15 bridge_stp off 16 bridge_fd 0 17 # 开启ip

Kubernetes Deployment Yml说明

部署 调度 1apiVersion: apps/v1 2kind: Deployment 3# 元数据 4metadata: 5 name: linuxcrypt-web 6 labels: 7 app: linuxcrypt-web 8# 属性 9spec: 10 # 副本数量 11 replicas: 3 12 # 滚动升级时,容器准备就绪时间最少为30s 13 minReadySeconds: 30 14 # 选择器 15 selector: 16 # 匹配

HttpClient 工具类

HttpClient 工具类 1package cn.linuxcrypt.utils; 2 3import org.apache.http.*; 4import org.apache.http.client.ClientProtocolException; 5import org.apache.http.client.ResponseHandler; 6import org.apache.http.client.config.CookieSpecs; 7import org.apache.http.client.config.RequestConfig; 8import …

Iostat 笔记

iostat 说明 iostat用于输出CPU和磁盘I/O相关的统计信息 参数 1-c 仅显示CPU统计信息.与-d选项互斥. 2-d 仅显示磁盘统计信息.与-c选项互斥.

Java 8中的常用函数式接口

Java 8中的常用函数式接口 函数式接口 函数描述符 原始类型特化 Predicate T->boolean IntPredicate, LongPredicate, DoublePredicate Consumer T->void IntConsumer,LongConsumer, DoubleConsumer Function<T,R> T->R IntFunction, IntToDoubleFunction, IntToLongFunction, LongFunction, LongToDoubleFunction, LongToIntFunction, DoubleFunction, …

Java 类加载机制

Java 类的加载机制

大致流程: 读取.class文件二进制文件–>验证与解析(格式 关键字 关键词 语法 引用 类型转化等等) –> 初始化 –> 使用 –> 卸载