随笔分类 -  Linux自动化运维

摘要:前提:从ansible控制端使用test用户可以免密登陆所有被控制端,并且被控端test用户支持sudo提权 # ansible主机清单 cat /etc/ansible/hosts [online-a1] 172.17.149.162 ansible_ssh_user=test [online-a 阅读全文
posted @ 2019-12-19 17:07 Done、
摘要:1 # Linux x86-64 2 sudo wget -O /usr/local/bin/gitlab-runner https://gitlab-runner-downloads.s3.amazonaws.com/latest/binaries/gitlab-runner-linux-amd64 3 4 # Linux x86 5 sudo wget -O /usr/local/b... 阅读全文
posted @ 2019-06-04 14:58 Done、
摘要:1 # ansible 初始化服务机 2 - hosts: newserver 3 vars: 4 - basedir: opt 5 tasks: 6 - name: 安装常用依赖环境 7 yum: name={{ item }} state=present 8 with_items: 9 - lrzsz 10 ... 阅读全文
posted @ 2019-06-03 20:48 Done、
摘要:#独家秘诀cd /etc/ansible mkdir callback_plugins cd callback_plugins wget https://raw.githubusercontent.com/jlafon/ansible-profile/master/callback_plugins/profile_tasks.py ###友提 ansible2.0以上的版本需要在ansible.... 阅读全文
posted @ 2019-05-22 16:51 Done、
摘要:观察 pinpoint hbase 数据存储目录default中各个表的大小 TraceV2 15G ApplicationTraceIndex 15G major_compact的操作目的 合并文件 清除删除、过期、多余版本的数据 提高读写数据的效率 604800 2day describe 'TraceV2' disable 'TraceV2' alter 'TraceV2'... 阅读全文
posted @ 2019-05-15 15:37 Done、
摘要:rabbitmq-01: yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm wget https://packages.erlang-solutions.com/erlang-solu 阅读全文
posted @ 2019-04-19 20:53 Done、
摘要:版本: pinpoint:1.7.1 hbase:1.2.6 命令行命令: $HBASE_HOME/bin/hbase shell newrestruct.hbase 备注:保留一天半的数据(秒) cat newrestruct.hbase 阅读全文
posted @ 2019-01-26 19:59 Done、
摘要:```python https://mp.weixin.qq.com/s/yeEkF5DKa9IjmIvuzOTT3g ``` 阅读全文
posted @ 2018-12-17 20:42 Done、
摘要:```yaml # 链接地址:https://www.cnblogs.com/xiaoxiaoleo/p/6626299.html # synchronize: 从拉取远程服务器文件,需要加mode: pull # unarchive: 解压远程服务器文件,需要加copy: no --- - hosts: notfontserver tasks: - name: 在没有字体的主机上,安装f... 阅读全文
posted @ 2018-11-21 15:47 Done、
摘要:``` 链接地址:https://my.oschina.net/kangvcar/blog/1830155 ``` 阅读全文
posted @ 2018-11-14 23:07 Done、