会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
奋斗
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
5
6
7
8
9
10
11
12
13
···
17
下一页
2020年4月1日
python 类
摘要: 定义类 class 类名: def 函数名(self): #哪个对象调用这个方法,self就是哪个对象 语句 def 函数名(self): #类中定义函数,第一个参数要是self 语句 变量=类名() #创建类 类的内置方法 class cat(): def __new__(self): #在ini
阅读全文
posted @ 2020-04-01 11:05 ForLivetoLearn
阅读(167)
评论(0)
推荐(0)
2020年3月31日
python基础语法
摘要: 注释 ###单行注释 ''' 多行注释 ''' #TODO注释,这种注释会高亮显示 比较 ''' is 比较的是地址 == 比较的是值 ''' a = [1,2,3] b = [1,2,3] c = a print(a is b) print(a == b) print(a is c) False
阅读全文
posted @ 2020-03-31 21:15 ForLivetoLearn
阅读(165)
评论(0)
推荐(0)
2020年3月29日
ansible-role安装nginx,keepalived,tomcat
摘要: role下载地址 链接:https://pan.baidu.com/s/1DVdt1iykf8z9kqlaqW9p6Q 提取码:cnkx 复制这段内容后打开百度网盘手机App,操作更方便哦 架构 roles目录结构 [root@localhost roles]# tree . ├── keepali
阅读全文
posted @ 2020-03-29 12:56 ForLivetoLearn
阅读(258)
评论(0)
推荐(0)
2020年3月13日
git
摘要: 1.安装git #linux版 [root@localhost ~]# yum install git -y #windowns版 https://github.com/git-for-windows/git/releases/download/v2.25.1.windows.1/Git-2.25.
阅读全文
posted @ 2020-03-13 13:25 ForLivetoLearn
阅读(209)
评论(0)
推荐(0)
2020年3月12日
gitlab报错
摘要: 1.登陆gitlab失败,报503 查看gitlab状态 [root@localhost ~]# gitlab-ctl status run: alertmanager: (pid 21666) 97s; run: log: (pid 1609) 2814s down: gitaly: 1s, no
阅读全文
posted @ 2020-03-12 15:39 ForLivetoLearn
阅读(1201)
评论(0)
推荐(0)
Jenkins
摘要: 安装Jenkins 1.下载Jenkins(Jenkins有多种安装包可选,我这里选war包) http://mirrors.jenkins.io/war-stable/latest/jenkins.war 2.安装java环境 [root@localhost ~]# tar xf jdk-8u14
阅读全文
posted @ 2020-03-12 15:34 ForLivetoLearn
阅读(170)
评论(0)
推荐(0)
Jenkins添加钉钉插件
摘要: 1.钉钉创建机器人,先创建一个钉钉群,在钉钉群里面添加一个自定义webhookl机器人 2.Jenkins的钉钉插件 3.安装插件后,在系统管理里面配置 4. 创建任务时勾选钉钉机器人
阅读全文
posted @ 2020-03-12 14:53 ForLivetoLearn
阅读(2119)
评论(0)
推荐(0)
gitlab主动执行Jenkins任务
摘要: gitlab集成Jenkins,当推送代码时自动构建 需要两个插件 Gitlab Hook Plugin 和 GitLab Plugin 1.使用root用户创建一个token,步骤如下 2.点击创建后token只会出现一次,忘记要重新创建,复制这个token 3.打开Jenkins,系统配置界面,
阅读全文
posted @ 2020-03-12 14:50 ForLivetoLearn
阅读(390)
评论(0)
推荐(0)
搭建私有仓库gitlab
摘要: gitlab安装 1.关闭防火墙和selinux 2.安装gitlab依赖软件 yum install curl openssh-server openssh-clients postfix policycoreutils-python –y 3.手动下载gitlab-ce安装包 https://m
阅读全文
posted @ 2020-03-12 14:44 ForLivetoLearn
阅读(3378)
评论(0)
推荐(0)
2020年2月22日
namenode节点无法自动切换主从
摘要: 当停掉主namenode节点,从节点无法切换到active状态,有两种可能导致这种问题 1.查看namenode上的zkfc日志,发现没有fuser命令,需要手动安装 yum install -y psmisc 2.两个namenode节点之间没做ssh免密认证,包括对自己的免密
阅读全文
posted @ 2020-02-22 15:41 ForLivetoLearn
阅读(602)
评论(0)
推荐(0)
上一页
1
···
5
6
7
8
9
10
11
12
13
···
17
下一页
公告