• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
 






java小兵

 
 

Powered by 博客园
博客园 | 首页 | 新随笔 | 联系 | 订阅 订阅 | 管理
上一页 1 2 3 4 5 6 7 8 9 ··· 12 下一页

2021年11月25日

k8s - 通过脚本部署tomcat
摘要: 使用kubectl create -f tomcat-deployment.yml部署tomcat到k8s中。 tomcat-deployment.yml apiVersion: extensions/v1beta1 kind: Deployment metadata: name: tomcat-d 阅读全文
posted @ 2021-11-25 18:58 .net一小兵 阅读(97) 评论(0) 推荐(0)
 

2021年11月24日

k8s启动dashboard
摘要: kubernetes-dashboard.yaml # Copyright 2017 The Kubernetes Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not u 阅读全文
posted @ 2021-11-24 18:49 .net一小兵 阅读(397) 评论(0) 推荐(0)
 
构建k8s一主两副集群
摘要: 准备工作 把要用到的tar.gz包scp到master机器上k8s-install下 rpm安装docker cd /usr/local/k8s-install; tar -zxvf docker-ce-18.09.tar.gz; cd /usr/local/k8s-install/docker; 阅读全文
posted @ 2021-11-24 18:23 .net一小兵 阅读(68) 评论(0) 推荐(0)
 

2021年11月7日

spring security + JWT
摘要: 辅助类JwtUtil用于生成及验证JWT。 @Component public class JwtUtil { private String SECRET_KEY = "secret"; public String extractUsername(String token) { return ext 阅读全文
posted @ 2021-11-07 12:32 .net一小兵 阅读(121) 评论(0) 推荐(0)
 

2021年11月2日

redis访问击穿/穿透/雪崩
摘要: redis访问击穿 在某个时刻,redis中的一个key被淘汰了,但是瞬间有大量的请求找这个key,找不到,导致请求被压到db端。 解决方案 所有client都访问key 失败以后调用setnx() 3-1. 上面成功的client去访问db,并更新redis。 3-2. 上面setnx失败的cli 阅读全文
posted @ 2021-11-02 12:44 .net一小兵 阅读(62) 评论(0) 推荐(0)
 

2021年10月30日

多个client使用2台redis server
摘要: 多个client使用2台redis server 方案1 从每台client直接连接这两台redis server 问题:这两台redis server的连接成本很高,每台redis server都要处理所有的client连接 方案2 在client和redis server中间加一个proxy(例 阅读全文
posted @ 2021-10-30 17:52 .net一小兵 阅读(77) 评论(0) 推荐(0)
 

2021年10月28日

angular之双向绑定
摘要: ###html中使用ngModel // login.component.html <input id="username" type="text" class="form-control" [(ngModel)]="username"> <input id="password" type="pas 阅读全文
posted @ 2021-10-28 19:23 .net一小兵 阅读(83) 评论(0) 推荐(0)
 
angular之intercepter
摘要: import { HttpEvent, HttpHandler, HttpInterceptor, HttpRequest } from '@angular/common/http'; import { Injectable } from '@angular/core'; import { Obse 阅读全文
posted @ 2021-10-28 19:13 .net一小兵 阅读(56) 评论(0) 推荐(0)
 

2021年10月25日

redis 写操作
摘要: 预备知识 num=0 echo $num ((num++)) echo $num 显示1,表示num自增了 ((num++)) | echo ok echo $num 显示1,num没有自增。 原因是管道符(|)的优先级优于num++,因此先创建了子进程1用于((num++))和子进程2(echo 阅读全文
posted @ 2021-10-25 19:55 .net一小兵 阅读(91) 评论(0) 推荐(0)
 

2021年10月23日

redis - pipe/pubsub/bloom
摘要: pipe echo -e "aaa\nbbb" 使用-e,echo就认为\n后是另一条命令 nc localhost 6379 使用nc打开socket连接 echo -e "set k2 99\nincr k2\nget k2" | nc localhost 6379 通过管道发生命令到6379端 阅读全文
posted @ 2021-10-23 19:35 .net一小兵 阅读(56) 评论(0) 推荐(0)
 
上一页 1 2 3 4 5 6 7 8 9 ··· 12 下一页