- 博客(79)
- 收藏
- 关注
原创 2020年某外包工作的部分内容
简述2020年外包到某国际知名车企,2周时间做了一个核心模块,该模块几乎涉及到了该项目的至少10张表,且含有一定算法的实现。不是简单的crud,发布这个的目的只是证明自己有较强的逻辑和快速实现的能力。以下代码实现只是2周工作的一部分。由于篇幅问题无法全部展示。截图代码说明初始化权益项controller /*** * 初始化权益项 * @return */ @GetMapping("/initRightItems/{resourceId}.
2021-09-20 14:45:27
223
原创 中景合天部分工作内容摘要
1.提交代码git截图差一周不到三个月时间提交代码127次,不算合并代码。2. 统计相关的代码部分实现controller的实现package com.zjht.shoplineserver.controller.bigdata;import com.alibaba.fastjson.JSON;import com.alibaba.fastjson.JSONObject;import com.zjht.shoplineserver.dao.mapper.SalesDataAn.
2021-09-15 15:15:07
487
原创 fastdfs+nginx 单机版
第一 准备软件包很多工具包依赖安装参考【注3】如图示 准备FastDFS_v5.05.tar.gz,nginx-1.14.0.tar.gz,libfastcommon-master.zip,fastdfs-nginx-module_v1.16.tar.gz第二 安装软件包FastDFS_v5.05.tar.gz, libfastcommon-master.zip,fastd...
2019-12-30 12:37:41
413
原创 mysql localhost访问改ip
mysql库中user表增加 host 列为%的一条记录运行如下语句GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY '123456';flush privileges在navcat 测试 OK!
2019-12-28 11:45:13
1920
原创 G3笔记本跑3节点虚拟机性能测试报告
硬件环境 G3 ,CPU 9300H 16G内存 1G 固态硬盘软件环境简介3个VMware 3个节点跑centos7.4 每个节点都装有etcd,flannel,haproxy,keepalived,apiserver,kube-controller,kubesechuler ,kubectl , kubelet,docker 以及kube-proxy 。k8s系统跑的主要pod一览...
2019-12-01 09:33:35
481
原创 k8s手动部署
(待续)两天时间测试nginx部署成功!查看 haproxy 状态页面cadvisor 的监控页面集群节点一的nginx 访问集群节点二的nginx访问集群节点三nginx访问dashboard 插件安装安装heapster 插件...
2019-11-24 18:29:02
309
原创 cannot create certificate signing request: certificatesigningrequests.certificates.k8s.io is forbidd
这里可能会有个报错导致启动失败:error: failed to run Kubelet: cannot create certificate signing request: certificatesigningrequests.certificates.k8s.io is forbidden: User "kubelet-bootstrap" cannot create certificate...
2019-11-24 14:06:19
3955
原创 centos 7.4 开端口问题
systemctl stop firewall.servicesystemctl disable firewall.serviceyum install iptables-servicesiptables -A INPUT -p tcp --dport 22 -j ACCEPTservice iptables saveservice iptables restart n...
2019-11-24 09:36:24
480
原创 xshell ssh 登录闪退和登录不了的问题
Could not load host key: /etc/ssh/ssh_host_ed25519_key我的解决方案是 (注1)ssh-keygen -t ed25519 -f /etc/ssh/ssh_host_ed25519_keysystemctl start sshd修改 /etc/ssh/下的文件 权限chmod 600 ssh_host_* chmod 644...
2019-11-24 09:30:46
2850
原创 后台撸完,撸JS,something funny
最近遇到些前端JS问题,倒是新鲜。拿了分享一下。主要是bootstrap 3.x 模式窗口问题和 ajax异步上传插件ajaxFileUpload的问题。1、先说bootstrap 3.x 模式窗口问题。项目中有用bootstrap 4 这个不错提供了居中的实现。加个样式就ok,当然js里怎么实现的,有兴趣的可以去看看。我作为一个后台撸sir傲娇的以为这tm不是我该弄的!知道好使就完了。...
2019-05-08 15:04:02
427535
原创 word 文档提炼编号和标题(类链表树实现)
说类链表树 这不是标准的树,也不是标准的链表,两者结合的产物。 数据存储结构如图所示:数据模型类。import java.util.ArrayList;import java.util.Comparator;import java.util.List;import java.util.stream.Collectors;public final class TitleLin...
2019-02-16 23:41:35
696
2
原创 shiro了解一下
refer https://blog.csdn.net/brave_xz411/article/details/77388166网上说明太多也很清晰,甚至有的有时序图。顺着跟一遍代码其实蛮简单的。配置类的几大组件: session管理器 安全管理器 缓存管理 Shiro的过滤器链(需要自定义)以下几个接口对于编写一般性的登录较为有用的!Realm 授权接口Authentic...
2019-02-04 15:02:23
547
原创 Spring cloud(Euraka Gateway Hystrix) + GitLab(Runner Pipelines) + Docker + K8S(Minikube)
refer : https://blog.csdn.net/javaboy/article/details/81978183Cost two days, encounter many problems, but finally I deploy spring cloud hello world successfully! Including eureka, gateway, hystrix ...
2019-01-27 19:23:39
498
转载 如何解决apt-get中Unmet dependencies问题
https://blog.csdn.net/jinguangliu/article/details/78145423sudo apt --fix-broken installsudo apt-get updatesudo apt-get upgrade
2019-01-20 13:07:57
821
原创 给命名空间配置pod配额
目录1、创建一个命名空间2、创建一个配额 1、创建一个命名空间kubectl create namespace quota-pod-example2、创建一个配额 apiVersion: v1kind: ResourceQuotametadata: name: pod-demospec: hard: pods: "2"kubectl cr...
2019-01-15 23:23:07
650
原创 给一个命名空间配置内存和CPU配额
c创建一个命名空间kubectl create namespace quota-mem-cpu-example配额模板quota-mem-cpu.yaml apiVersion: v1kind: ResourceQuotametadata: name: mem-cpu-demospec: hard: requests.cpu: "1" requests...
2019-01-15 22:55:00
1016
转载 sql各种连接笛卡尔积,inner join,left join,right join,full join
首先原数据库的数据有:首先原数据库的数据有:TEST_A表:和TEST_B表:一、笛卡尔积:(1)不带条件的笛卡尔积:select * from TEST_A a,TEST_B b; (2)带where条件id相等的笛卡尔积:select * from TEST_A a,TEST_B b where a.ID = b.ID; 二、inner join:...
2019-01-14 23:10:25
1730
1
原创 nfs pv pvc pod service practise
refer [office website] https://kubernetes.io/docs/concepts/storage/persistent-volumes/[nfs install and how to deploy] https://blog.csdn.net/cuipengchong/article/details/71650011https://blog.csd...
2019-01-12 19:38:49
228
原创 what is kubernetes
Kubernetes is a platform-agnostic container orchestration tool created by Google and heavily supported by the open source community as a project of the Cloud Native Computing Foundation. It allows you...
2019-01-12 14:18:32
211
原创 an example Pod with custom DNS settings
When the Pod is created according to service/networking/custom-dns.yaml, the container test gets the following contents in its /etc/resolv.conf file:nameserver 1.2.3.4search ns1.svc.cluster.loca...
2019-01-11 12:41:53
232
转载 Linux中/etc/resolv.conf文件简析
/etc/resolv.conf是DNS客户机配置文件,用于设置DNS服务器的IP地址及DNS域名,还包含了主机的域名搜索顺序。该文件是由域名解析 器(resolver,一个根据主机名解析IP地址的库)使用的配置文件。它的格式很简单,每行以一个关键字开头,后接一个或多个由空格隔开的参数。以下是我打开/etc/resolv.conf所得的内容:[root@markpain ~]# cat...
2019-01-11 12:22:02
2493
转载 prometheus indroduce
https://www.ibm.com/developerworks/cn/cloud/library/cl-lo-prometheus-getting-started-and-practice/index.html
2019-01-11 00:54:09
214
原创 https k8s-dashboard set be visited
1, ubuntu add certopenssl x509 -outform der -in ca.pem -out ca.crtcp ca.crt /usr/local/share/ca-certificatesupdate-ca-certificates2,firefox add ca.certPreference -> Privacy & Securi...
2019-01-11 00:05:04
286
转载 常用的服务发现对比(Consul、zookeeper、etcd、eureka)
常用的服务发现对比(Consul、zookeeper、etcd、eureka)这里就平时经常用到的服务发现的产品进行下特性的对比,首先看下结论: Feature Consul Zookeeper Etcd Eureka 服务健康检查 服务状态,内存,硬盘等 (弱)长连接,keepalive 连接心跳 可配支持 多数据中心...
2019-01-10 19:58:04
1594
原创 docker compose deploy spring cloud with self custom network
1, docker network inspect dk.cn[ { "Name": "dk.cn", "Id": "cbddc77d0580c66c0ff4eda9fc37671e6d0129285fca11f4341708fdd8cf3328", "Created": "2019-01-10T10:52:37.612909902+0.
2019-01-10 11:51:57
239
原创 docker compose deploy spring cloud
Not easy at all!docker containersregist servicesdocker compose codesversion: '2'services: # config center ms-config: container_name: ms-config build: ms-config image: fro...
2019-01-10 01:33:42
558
原创 message bus mysql,redis,rabbit docker start
step by step to virtuallize.database , middleware and redis use docker.add message bus! https://github.com/DavidKingCN/Micro-Service-Skeleton1, register center2. hystrix dashboard3,...
2019-01-08 19:04:30
143
转载 pod , rc , service , port how to define
1.Pod Pod是k8s的最基本的操作单元,包含一个或多个紧密相关的容器,类似于豌豆荚的概念。一个Pod可以被一个容器化的环境看作应用层的“逻辑宿主机”(Logical Host).一个Pod中的多个容器应用通常是紧耦合的。Pod在Node上被创建、启动或者销毁。 为什么k8s使用Pod在容器之上再封装一层呢?一个很重要的原因是Docker容器之间的通信受到Docker网络机制...
2019-01-06 21:30:34
288
转载 tree algorithm without recursion
【前言】树的遍历,根据访问自身和其子节点之间的顺序关系,分为前序,后序遍历。对于二叉树,每个节点至多有两个子节点(特别的称为左,右子节点),又有中序遍历。由于树自身具有的递归性,这些遍历函数使用递归函数很容易实现,代码也非常简洁。借助于数据结构中的栈,可以把树遍历的递归函数改写为非递归函数。 在这里我思考的问题是,很显然,循环可以改写为递归函数。递归函数是否借助栈这种数据结构改写为...
2018-12-31 15:06:13
172
转载 sort algorithm
十大经典排序算法(动图演示)0、算法概述0.1 算法分类十种常见排序算法可以分为两大类:非线性时间比较类排序:通过比较来决定元素间的相对次序,由于其时间复杂度不能突破O(nlogn),因此称为非线性时间比较类排序。线性时间非比较类排序:不通过比较来决定元素间的相对次序,它可以突破基于比较排序的时间下界,以线性时间运行,因此称为线性时间非比较类排序。 0.2 算法复杂...
2018-12-31 14:06:19
945
转载 stat /bin/bash: no such file or directory
docker exec -it 029e6df30836 /bin/bash exec: “/bin/bash”: stat /bin/bash: no such file or directory我们一般可能会在容器启动后进入容器,常用的是docker attach 镜像id,但是启动镜像的时候如果没有带 参数 -it的话,attach进去后可能是日志界面,并不能执行命令。所以我们会...
2018-12-31 09:53:36
9103
原创 docker-compose
refer https://www.cnblogs.com/linjiqin/p/8849432.html.up -d : launch deamonps : process listlogs name : log detailstop : pauserestart kill : closerm : remove ...
2018-12-30 15:21:42
210
原创 ll -a | grep a |awk '{print $1,$3}' >> awk.txt
1, list all files info in current dir, match a in every column content.2,format output column1 and column 3 to file awk.txt.Hopely help u easily to learn shell comand! more Info about awk to offic...
2018-12-30 09:21:39
1444
原创 xargs == `` + more flexible
1 rm `find /path -type f` 如果path目录下文件过多就会因为“参数列表过长”而报错无法执行。但改用xargs以后,问题即获解决。 1 find /path -type f -print0 | xargs -0 rm 本例中xargs将find产生的长串文件列表拆散成多个子串,然后对每个子...
2018-12-30 08:44:25
175
原创 ls|xargs-t-I{} mv {} {}.old
U can make it clear to refer office instruction.Here I simplely to explain the meaning of the cmd.1,pipe | Std IO , from left to right as args(just think so ) 2 xargs specify left cmd file n...
2018-12-30 08:37:04
3517
原创 微服务整合 注册中心 配置中心 认证中心 网关 监控中心
fork了https://github.com/babylikebird/Micro-Service-Skeleton 新增了配置中心。代码地址: https://github.com/DavidKingCN/Micro-Service-Skeleton获取token
2018-12-23 19:48:00
2790
2
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人