摘要: 1、配置 /etc/ansible/hosts 文件,添加被管控主机ip #vim /etc/ansible/hosts 文件末尾添加组[group1]和被管控主机的IP [group1] 192.168.31.102 192.168.31.103 2. 修改配置文件 #vim /etc/ansib 阅读全文
posted @ 2022-03-16 22:25 明明改变世界 阅读(872) 评论(0) 推荐(0) 编辑
摘要: 安装ansible: 查看可用的ansible版本: yum list|grep ansible 方法一: 系统可用ansible版本太低,安装epel源: yum install epel-release -y 从epel源安装高版本 ansible: yum install ansible -y 阅读全文
posted @ 2022-03-16 21:54 明明改变世界 阅读(301) 评论(0) 推荐(0) 编辑
摘要: 一. 硬件配置: 1 GB的RAM 50 GB的驱动器空间 二. 系统环境: [root@Jenkins ~]# cat /etc/redhat-release CentOS Linux release 7.4.1708 (Core) [root@Jenkins ~]# uname -r 3.10. 阅读全文
posted @ 2022-03-16 19:18 明明改变世界 阅读(352) 评论(0) 推荐(0) 编辑
摘要: 1. 进入本地仓库访问位置之后执行命令 1) 远程仓库相关命令检出仓库:$ git clone git://github.com/jquery/jquery.git查看远程仓库:$ git remote -v添加远程仓库:$ git remote add [name] [url]删除远程仓库:$ g 阅读全文
posted @ 2022-03-16 17:40 明明改变世界 阅读(585) 评论(0) 推荐(0) 编辑
摘要: 一. 安装docker-compose 1. 下载docker-compose的最新版本 curl -L "https://github.com/docker/compose/releases/download/1.22.0/docker-compose-$(uname -s)-$(uname -m 阅读全文
posted @ 2022-03-16 16:43 明明改变世界 阅读(425) 评论(0) 推荐(0) 编辑
摘要: 1 FROM 指定基础镜像 基础镜像不存在会在Docker Hub上拉去使用格式: FROM <镜像>:[tag] FROM <镜像>@digest[校验码]当前主机没有此镜像时,会自动去官网HUB下载.............................................. 2 阅读全文
posted @ 2022-03-16 14:35 明明改变世界 阅读(1445) 评论(0) 推荐(0) 编辑
摘要: 一. 容器操作 新建并启动 命令:docker run 查看容器 命令:docker ps 查看终止状态的容器 命令:docker ps -a 启动已终止容器 命令:docker start 终止容器 命令:docker stop 重新启动容器 命令:docker restart 进入容器 命令: 阅读全文
posted @ 2022-03-16 14:27 明明改变世界 阅读(282) 评论(0) 推荐(0) 编辑
摘要: 1. 查找Docker中Centos镜像文件 docker search centos 2. 下载Docker中Centos镜像文件(默认下载最新版本) docker pull centos 3. 查看系统中的镜像文件 docker images 4. 查看系统中所有的容器 docker ps -a 阅读全文
posted @ 2022-03-16 12:42 明明改变世界 阅读(103) 评论(0) 推荐(0) 编辑
摘要: 1. 安装wget工具: yum install wget -y 2. 使用wget工具从docker官网下载yum源: wget -P /etc/yum.repos.d/ https://download.docker.com/linux/centos/docker-ce.repo 3. 更新yu 阅读全文
posted @ 2022-03-16 12:39 明明改变世界 阅读(120) 评论(0) 推荐(0) 编辑
摘要: 1. 安装依赖软件 yum -y install policycoreutils openssh-server openssh-clients postfix 2.设置postfix开机自启,并启动,postfix支持gitlab发信功能 systemctl enable postfix && sy 阅读全文
posted @ 2022-03-16 11:38 明明改变世界 阅读(148) 评论(0) 推荐(0) 编辑