上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 36 下一页
摘要: # 用法 awk 'END {print}' 文件名 例子: cat test.txt 123 456 awk 'END {print}' test.txt 456 阅读全文
posted @ 2022-05-29 11:09 lucky_tomato 阅读(2740) 评论(0) 推荐(0) 编辑
摘要: 第一种 top -bn 2 -i -c | grep 'Cpu(s)' | awk '{sum=$2 + $4};END {print sum}' 第二种 sar -u 1 1 | grep Average | awk '{sum=$3 + $5};END {print sum}' 阅读全文
posted @ 2022-05-29 09:38 lucky_tomato 阅读(232) 评论(0) 推荐(0) 编辑
摘要: 格式化输入容器ID作为docker rm的入参,实现批量删除docker容器 docker ps -a --format="{{ .ID }}" | xargs docker rm 获取docker版本号 docker version --format='{{ .Client.Version }}' 阅读全文
posted @ 2022-05-29 09:30 lucky_tomato 阅读(93) 评论(0) 推荐(0) 编辑
摘要: 前言:今天老大说让我写个jenkins挂掉自动拉起的脚本,然后说jenkins挂了好多次了,让我找找原因,当时想自动拉起脚本不能根本上解决问题,我就去看tomcat日志,因为jenkins是在tomcat下启动的,然后过滤查询catalina.xxxx.log日志发现以下报错。 在网上查看相关问题, 阅读全文
posted @ 2022-05-26 22:23 lucky_tomato 阅读(1034) 评论(0) 推荐(0) 编辑
摘要: 默认centos7使用firewalld,当我们要使用iptables时,要安装一下服务,先停firewalld systemctl stop firewalld 停止服务 systemctl mask firewalld 屏蔽服务 安装iptables # 安装服务 yum install ipt 阅读全文
posted @ 2022-05-17 16:28 lucky_tomato 阅读(41) 评论(0) 推荐(0) 编辑
摘要: 问题:在gitlab上面创建了项目,使用普通用户去推送代码,报错remote: GitLab: You are not allowed to push code to protected branches on this project. 分析原因: 原因是普通用户分配的权限是developer,这 阅读全文
posted @ 2022-05-15 12:58 lucky_tomato 阅读(10453) 评论(0) 推荐(0) 编辑
摘要: 1、选择管理中心——项目——编辑 2、点击项目信息——成员——邀请成员 2、选择你要添加的用户即可 阅读全文
posted @ 2022-05-15 11:23 lucky_tomato 阅读(4819) 评论(0) 推荐(1) 编辑
摘要: 1、登录gitlab控制台页面,选择菜单——管理员——用户 2、创建用户 3、编辑用户,添加密码保存 4、新用户尝试登录 阅读全文
posted @ 2022-05-15 10:44 lucky_tomato 阅读(2360) 评论(0) 推荐(0) 编辑
摘要: # 执行启动迁移 python manage.py makemigrations # 执行迁移提交到数据库 python manage.py migrate 阅读全文
posted @ 2022-05-14 21:26 lucky_tomato 阅读(137) 评论(0) 推荐(0) 编辑
摘要: 解决:在项目下执行以下命令 git config --global user.email "you@example.com" git config --global user.name "Your Name" 阅读全文
posted @ 2022-05-14 15:35 lucky_tomato 阅读(1057) 评论(0) 推荐(0) 编辑
上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 36 下一页