K3S https://k3s.io/ https://docs.rancher.cn/k3s/ https://rancher.com/docs/k3s/latest/en/ https://github.com/rancher/k3s https://github.com/rancher/k3s ...
分类:
其他好文 时间:
2020-07-10 00:18:17
阅读次数:
106
顾名思义,责任链模式(Chain of Responsibility Pattern)为请求创建了一个接收者对象的链。这种模式给予请求的类型,对请求的发送者和接收者进行解耦。这种类型的设计模式属于行为型模式。 在这种模式中,通常每个接收者都包含对另一个接收者的引用。如果一个对象不能处理该请求,那么它 ...
分类:
其他好文 时间:
2020-07-09 17:59:45
阅读次数:
58
package club.interview.design_pattern.chapt9_chain; import java.util.ArrayList; import java.util.List; /** * 加工一个字符串 * 1. 过滤敏感字符 * 2. 修改大小写 * 3. 增加笑脸 ...
分类:
其他好文 时间:
2020-07-09 00:45:19
阅读次数:
83
django, Django-cors-headers ,跨域问题解决 ...
分类:
其他好文 时间:
2020-07-07 19:44:35
阅读次数:
59
一、简介 Druid是阿里开源的一个JDBC应用组件, 其包括三部分: DruidDriver: 代理Driver,能够提供基于Filter-Chain模式的插件体系。 DruidDataSource: 高效可管理的数据库连接池。 SQLParser: 实用的SQL语法分析 通过Druid连接池中间 ...
分类:
数据库 时间:
2020-07-07 17:32:02
阅读次数:
94
0x00 原因 Linux系统默认情况下是未打开ip转发功能的,docker容器内部的网络是由Linux的iptables制定转发规则实现的。 所以当Linux未打开IP转发时,会造成容器内部无法解析域名。 0x01 解决方案 暂时解决: 查看如下地址中的数值(1为开启,0为关闭) /proc/sy ...
分类:
其他好文 时间:
2020-07-07 09:38:39
阅读次数:
90
查看docker支持的网络驱动 [root@localhost ~]# docker info |grep "Network" WARNING: bridge-nf-call-iptables is disabled WARNING: bridge-nf-call-ip6tables is disa ...
分类:
其他好文 时间:
2020-07-06 20:23:49
阅读次数:
81
firewalld防火墙 一、防火墙安全概述 在CentOS7系统中集成了多款防火墙管理工具,默认启用的是firewalld(动态防火墙管理器)防火墙管理工具,Firewalld支持CLI(命令行)以及GUI(图形)的两种管理方式。 对于接触Linux较早的人员对Iptables比较熟悉,但由于Ip ...
分类:
其他好文 时间:
2020-07-06 19:24:38
阅读次数:
61
脚本源码:#!/bin/bashecho_caidan() {# 清空防火墙规则read -ep "是否清空防火墙规则(y/n):" nameif [ $name == y ];then iptables -F echo " 1) 放行端口 2) 封锁端口 3) 放行ip 4) 封锁ip "else... ...
分类:
系统相关 时间:
2020-07-06 11:04:21
阅读次数:
99
centos6中防火墙是iptables,centos7中防火墙是firewalld 在centos7中用service iptables status查看防火墙状态会报错 Redirecting to /bin/systemctl status iptables.service Unit ipta ...
分类:
其他好文 时间:
2020-07-06 10:48:36
阅读次数:
94