摘要: Docker开启TLS和CA认证 前言:Docker直接开启2375端口是不安全的,别人只要连上之后就可以任意操作,下面是开启Docker的TLS和CA认证方法,并使用Jenkins和Portainer连接。 一、生成证书 查看服务器主机名 hostname auto-generate-docker-tls-ca.sh # !/bi 阅读全文
posted @ 2021-08-26 23:53 小强崽 阅读(1690) 评论(1) 推荐(4) 编辑
摘要: 一、配置凭证 生成令牌 管理凭证 添加凭证 填写信息 二、全局配置 docker-compose version: '3' services: jenkins: restart: always image: jenkins:latest container_name: jenkins ports: 阅读全文
posted @ 2021-06-06 03:02 小强崽 阅读(157) 评论(0) 推荐(0) 编辑
摘要: 一、导入依赖 Spock是基于JUnit的单测框架,提供一些更好的语法,结合Groovy语言,可以写出更为简洁的单测。 <!-- groovy依赖 --> <dependency> <groupId>org.codehaus.groovy</groupId> <artifactId>groovy-a 阅读全文
posted @ 2021-04-21 18:34 小强崽 阅读(1564) 评论(0) 推荐(0) 编辑
摘要: 一、下载程序 官网地址,选择最新64位下载。 下载完成 二、安装过程 点击下一步 点击下一步 选择安装目录 点击安装 安装完成 三、修改中文 下载中文包 下载完成 点击下一步 安装完成 点击设置 选择中文 四、导出项目 svn://192.168.8.245:3690/project1 作者(Aut 阅读全文
posted @ 2021-04-05 02:08 小强崽 阅读(291) 评论(0) 推荐(0) 编辑
摘要: 一、下载镜像 # 搜索镜像 docker search svn # 下载镜像 docker pull garethflowers/svn-server 二、启动镜像 # 编辑配置文件 vim docker-compose.yaml version: '3' services: svn: restar 阅读全文
posted @ 2021-04-05 02:07 小强崽 阅读(1424) 评论(0) 推荐(0) 编辑
摘要: 一、安装邮箱 yum install mailx 二、配置邮箱 vim /etc/mail.rc set from=875667601@qq.com set smtp=smtp.qq.com set smtp-auth-user=875667601@qq.com set smtp-auth-pass 阅读全文
posted @ 2021-03-13 20:21 小强崽 阅读(84) 评论(0) 推荐(0) 编辑
摘要: 一、 在指定文件夹只下载不安装 yum install --downloadonly --downloaddir=/home/qiang/yum/zabbix-get/ zabbix-get 二、 构建yum源 yum install createrepo createrepo /home/qian 阅读全文
posted @ 2021-03-13 20:19 小强崽 阅读(573) 评论(0) 推荐(0) 编辑
摘要: 一、安装 yum install -y crontabs 二、常用命令 # 查看定时任务 crontab -l # 启动和查看定时任务 systemctl start crond systemctl stop crond systemctl restart crond systemctl reloa 阅读全文
posted @ 2021-03-13 20:12 小强崽 阅读(142) 评论(0) 推荐(0) 编辑
摘要: CentOS-Base.repo # CentOS-Base.repo # # The mirror system uses the connecting IP address of the client and the # update status of each mirror to pick 阅读全文
posted @ 2021-03-13 20:10 小强崽 阅读(187) 评论(0) 推荐(0) 编辑
摘要: 一、Lambda表达式 使用Lambda表达式,实际就是创建出该接口的实例对象。 1.1 创建线程 使用Labmda表达式需要函数式编程接口。 @Test public void test1() { // 匿名内部类创建线程! new Thread(new Runnable() { @Overrid 阅读全文
posted @ 2021-03-13 20:07 小强崽 阅读(81) 评论(0) 推荐(0) 编辑