- 博客(379)
- 问答 (26)
- 收藏
- 关注

原创 docker常用命令
常用docker镜像postgresredisrabbitmqpostgresdocker run --name postgres -d -e POSTGRES_PASSWORD=123456 --restart=always -p 5432:5432 postgresredisdocker run --name redis -d --restart=always -p 6379:637...
2019-09-12 12:54:20
527

原创 常用资源
JsonPathhttp://jsonpath.com/伯乐在线-学习资源http://hao.jobbole.com/log4j2日志格式配置https://logging.apache.org/log4j/2.x/manual/layouts.html#PatternLayout
2018-09-07 10:25:08
237
原创 Javer学习Groovy
closure看上去是一块代码,像是匿名方法(允许参数,并且可以访问外部参数)。可以通过call来调用,其执行时以执行处变量的值为准(而不是定义时)访问控制默认是public而不是java中的default,并且属性名大写。通过实现GroovyInterceptable来处理缺失的属性和方法。这里只记录一些groovy和java语法差异比较大的地方。另外可以通过methodMissing来处理缺失的方法。在集合和映射中使用闭包,参数为it。使用metaClass来实现反射。
2024-12-16 15:54:25
292
原创 Windows远程桌面到Ubuntu
在Ubuntu系统中,默认情况下root账户是被禁用的,为了安全起见,建议不要直接使用root账户登录图形界面。文件,注释掉阻止root用户通过图形界面登录的行。在登录界面,选择root用户并输入之前设置的密码登录。找到类似以下内容的行,并在该行前加上。按照提示设置root账户的密码。
2024-10-16 19:25:13
769
原创 前端环境搭建
具体怎么启动项目可以参见package.json里的scripts里的选项(以dev为例)安装指定版本node并切换(以16.17.0为例),过程中会弹出两次授权,确认即可。使用下面指令配置npm镜像地址(就算上面配置过貌似还是要再配置一遍)可以使用下面的指令查看镜像地址。最后来到项目目录下执行包的安装。
2024-09-22 13:25:11
283
原创 Month1 Month2
Month 1Month 2类型EventDimensiondeletehidedisable恢复re createenable业务id编号名字editdelete&createcorrecteditid可以变id不可变edit不联动联动下拉框不作为入参可作为入参
2023-07-18 12:25:01
356
原创 权限管理系统(Security)
本系统设计的一个重要目标就是将权限的管理从业务系统中完全抽离出来。对于后端服务而言,他接受到的请求就一定是合法的,不单操作是合法的,包括操作中间的参数,也应该是符合权限管控的要求。权限相关的配置,例如角色配置,用户与角色的绑定都由权限管理系统完成。业务服务与权限系统尽可能少的交互仅限于用户添加租户添加的少数情况。
2023-03-20 13:40:19
2417
原创 CCProxy使用指南
目标是让一个电脑上安装CCProxy,然后其他电脑也是使用这台电脑上VPN下载&安装http://update.youngzsoft.com/ccproxy/update/ccproxysetup.exe服务端配置进入设置页面记住上面的端口,一般HTTP和HTTPS用的比较多,都是808端口点击上面的高级按钮,选择网络,确保配置正确git配置git config --global https.proxy http://vpn.kamputer.online:808git co
2022-05-16 14:21:59
7474
原创 Chaosd安装与使用
按照官方办法有少许问题,下面的脚本解决了# 创建存放chaosd的文件夹mkdir /usr/local/chaosd && \# 指定版本,此处使用最新版export CHAOSD_VERSION=latest && \# 下载,注意需要添加User-Agentcurl -fsSL -o chaosd.tar.gz https://mirrors.chaos-mesh.org/chaosd-$CHAOSD_VERSION-linux-amd64.tar.gz -
2022-05-10 19:43:24
1104
原创 haproxy最新版本安装
目录原因卸载安装确定版本下载源代码原因centos7自带的是过期版本ubuntu2204虽然没过期,也是老版本官网只有enterprise才有升级这里选择使用源码安装的方式(这也意味着ubuntu和centos都是适用的)卸载安装确定版本下载源代码...
2022-05-08 11:02:06
1620
1
翻译 [权威教程翻译]resolv.conf from debian wiki
本文来自debian wikiOrdinarily, the resolv.conf(5) file is managed dynamically by various network service daemons. This is the default, and is intended for laptops and other highly mobile systems which may connect to different networks. It also works well for
2022-05-08 05:51:48
206
翻译 [官方文档翻译:Linux]resolv.conf配置含义
本文来自debian官网NAMEresolv.conf - resolver configuration fileSYNOPSIS/etc/resolv.confDESCRIPTIONThe resolver is a set of routines in the C library that provide access to the Internet Domain Name System (DNS). The resolver configuration file contains info
2022-05-08 05:43:28
1318
1
翻译 【官方文档翻译:Red Hat】9.YUM
原文 翻译 Yum is the Red Hat package manager that is able to query for information about available packages, fetch packages from repositories, install and uninstall them, and update an entire system to the latest available version. Yum performs automatic
2022-05-05 11:09:01
457
翻译 [官方文档翻译:kind]HOME
原文翻译kind is a tool for running local Kubernetes clusters using Docker container “nodes”.kind是一个使用Docker容器作为节点来运行本地K8s集群的工具kind was primarily designed for testing Kubernetes itself, but may be used for local development or CI.kind本来主要设计用于验证K...
2022-05-03 10:33:51
340
原创 CentOS升级内核
官方文档在此升级原因当我们安装一些软件(对,我说的就是Kubernetes),可能需要新内核的支持,而CentOS又比较保守,不太升级,所以需要我们手工升级.升级方式# 看下目前是什么版本内核uname -a# 安装公钥rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org# 添加仓库,如果不执行该指令后面无法找到elrepo-kernel这个仓库# 下面两个分别是CentOS7和8的,根据自己情况选择执行yum inst
2022-04-30 22:17:17
679
原创 物理机安装CentOS7注意事项
1. 要从官网下载UltraIOS,否则会报空间不足2.U盘格式化为FAT32格式(默认分区大小),否则NTFS可能无法识别3.不用操作[便捷启动],直接写4.U盘写完后改个方便的名字,例如CENTOS7,因为U盘的label不能太长,不能把完成ISO的名字写完5.在下面界面按Tab修改LABEL后面的值,换成U盘的LABEL,例如CENTOS7,不要用网上的/dev/sdb6.安装的时候可能无线网卡驱动没有加载,只能用有线网,安装完成后再使用无线网7.记..
2022-04-30 12:00:23
796
翻译 【Chaos Mesh官方文档】(Kubernetes)Simulate JVM Application Faults
Chaos Mesh simulates the faults of JVM application through Byteman. The supported fault types are as follows:Throw custom exceptionsTrigger garbage collectionIncrease method latencyModify return values of a methodTrigger faults by setting Byteman conf
2022-04-29 08:40:27
293
转载 U盘安装CentOS7
一般来说,无论是Windows还是linux的IOS系统镜像,我们都可以使用UltraIOS(软碟通)这款软件制作U盘启动工具,不过考虑到不少小白依然不会如何操作,所以今天考虑写一篇制作centos7系统U盘工具以及centos7系统安装。那么U盘如何安装centos7系统?下面装机之家分享一下U盘安装centos7详细安装图解教程,来学习一下吧。U盘安装centos7详细安装图解教程所需工具:(自己网上下载)1、UltraIOS(软碟通)注:可以是试用版2、CentOS-7-x86_6
2022-04-28 19:40:03
21894
7
翻译 【Chaos Mesh官方文档】Simulate File I/O Faults
This document describes how to create IOChaos experiments in Chaos Mesh.IOChaos introductionIOChaos is a type of fault in Chaos Mesh. By creating an IOChaos experiment, you can simulate a scenario of file system fault. Currently, IOChaos supports the fo
2022-04-28 18:37:56
294
翻译 【Chaos Mesh官方文档】Simulate DNS Faults
This document describes how to create DNSChaos experiments in Chaos Mesh to simulate DNS faults.DNSChaos IntroductionDNSChaos is used to simulate wrong DNS responses. For example, DNSChaos can return an error or return a random IP address when receiving
2022-04-28 18:36:44
290
翻译 【Chaos Mesh官方文档】(Kubernetes)Simulate Time Faults
TimeChaos IntroductionChaos Mesh provides the TimeChaos experiment type. You can use this experiment type to simulate a time offset scenario. This document describes how to create a TimeChaos experiment and its associated configuration file.noteTimeCha
2022-04-28 18:35:39
203
翻译 【Chaos Mesh官方文档】Simulate Linux Kernel Faults
This document describes how to use KernelChaos to simulate Linux kernel faults. This feature injects I/O-based or memory-based faults into the specified kernel paths using BPF.Although you can set the injection target of KernelChaos to one or several Pods
2022-04-28 18:34:01
238
原创 基于Vagrant搭建异构Kubernetes集群
配置vip.kamputer.online=192.168.1.100master.kamputer.online=192.168.1.101ubuntu.kamputer.online=192.168.1.102centos.kamputer.online=192.168.1.103node.kamputer.online=192.168.1.111service网段:10.96.0.0/12pod网段:172.16.0.1/12操作系统安装下载box安装vagrant下载box文件
2022-04-28 08:53:41
1122
空空如也
virtualbox里的ubuntu无法远程(centos却可以)
2022-05-09
ETL中如何进行跨库join
2020-11-09
java中的虚假唤醒的解决
2020-10-26
如何使用CLion阅读jvm源代码
2020-08-03
请教读linux代码中如何能够跳转
2020-07-21
为什么IO中间会有interrupt
2020-07-20
cpp中const函数的意义何在?
2020-07-20
关于PAXOS的一个极端例子,貌似无法得到一致性
2020-05-22
除了postgresql外还有什么数据库支持继承么?
2020-05-07
go的运行错误如何返回给调用者
2019-12-23
有没有什么方法连接两个RabbitMQ
2019-11-12
Flink如何将kafka里的消息写入到对应的topic
2019-10-30
有没有什么方法将HTTP请求转换为AMQP/JMS消息
2019-10-30
svn牵代码报“由于目标计算机积极拒绝,无法连接”
2018-11-15
如何拦截Mybatis的所有update方法,insert方法
2017-11-21
SpringBoot的Autowired如何能让被注入的属性感知到被注入的对象
2017-11-21
Spring注入时如何得知当前Bean注入给哪个对象
2017-11-11
Nginx反向代理如何将不同来源的请求代理到不同服务?
2017-11-08
用swing编写gui程序为什么要自定义子类
2017-10-20
请教一个xsd对于一个可能为空的节点的表示
2015-12-15
Visual Studio2015 mfc中如何设置被开发程序的快捷键
2015-10-04
同样的web项目myeclipse2015无法启动
2015-05-04
log4j2中如何设置日志文件的路径
2014-09-09
请问oracle中如何得到一个日期是周几
2014-04-29
TA创建的收藏夹 TA关注的收藏夹
TA关注的人