代码改变世界

convert svn repo to git

2019-07-09 18:16 by divl, 342 阅读, 0 推荐, 收藏, 编辑
摘要:https://john.albin.net/git/convert-subversion-to-git 1. 抓取Log 在linux 上做的,其余是在win上做的。 2. svn co svn://192.168.1.198/projects/ios --username xx 3. 抓取Log 信息 svn log -q | awk -F '|' '/^r/ {sub("^ ", ... 阅读全文

Discovery and auto register

2019-07-08 17:08 by divl, 202 阅读, 0 推荐, 收藏, 编辑
摘要:1.Discovery 2. auto register 2.1 agent 端配置 2.2 server 端配置 阅读全文

retry

2019-07-08 15:47 by divl, 579 阅读, 0 推荐, 收藏, 编辑
摘要:ansible-playbook --become --become-method=su -K --limit @/opt/ansible-playbook/201.retry 201.yml 阅读全文

zabbix 发送报警邮件

2019-07-05 18:05 by divl, 343 阅读, 0 推荐, 收藏, 编辑
摘要: 阅读全文

zabbix template

2019-07-03 17:24 by divl, 305 阅读, 0 推荐, 收藏, 编辑
摘要:1. template 是分层级的,所有很多修改需要到父级去修改,而且影响所有子级。 阅读全文

关闭zabbix 告警

2019-07-03 17:00 by divl, 2980 阅读, 0 推荐, 收藏, 编辑
摘要:2. 永久关闭告警,即disable该触发器。 阅读全文

Install zabbix

2019-06-27 17:51 by divl, 145 阅读, 0 推荐, 收藏, 编辑
摘要:- name: Create dir to keep install file file: path=/opt/pacheage state=directory follow=yes force=yes - name: Copy {{ pacheage_name }}.tar.gz copy: src={{ pacheage_name }}.tar.gz dest=/opt/pachea... 阅读全文

ansible start canal

2019-06-26 14:44 by divl, 283 阅读, 0 推荐, 收藏, 编辑
摘要:- name: Start canal server shell: source /etc/profile && nohup /opt/canal/bin/startup.sh 阅读全文

ansible on aws linux 2

2019-06-21 16:00 by divl, 330 阅读, 0 推荐, 收藏, 编辑
摘要:1. 安装epel yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm 2. 安装ansible yum install ansible 3. 建立role mkdir -p /opt/ansible-playbook/roles mkdir -p {elast... 阅读全文

nexus auto start

2019-06-13 19:05 by divl, 255 阅读, 0 推荐, 收藏, 编辑
摘要:cd /etc/init.d ln -s /opt/nexus/nexus-2.3.1-01/bin/jsw/linux-x86-64/nexus nexus chkconfig --add nexus 阅读全文