10 2020 档案
摘要:1.#思路:status可以看到dead 0说明集群健康;list列出重要表名也说明集群健康。 #在hbase服务器上加crontab 1 */2 * * * /bin/bash /tmp/hbase_status.sh > /tmp/status_hbase.txt1 */10 * * * /bi
阅读全文
摘要:1.通过debug模块去确认返回结果的数据结构 获取Task任务结果 - name: check nginx syntax shell: /usr/sbin/nginx -t register: nginxsyntax 通过debug模块去确认返回结果的数据结构 - name: print ngin
阅读全文
摘要:1.全链路-测试验证 测试链路: 新小程序(新域名) -> WAF(新域名) -> 公有云CLB(新域名) -> 公有云新接入网关 -> 政务云里约网关(新域名) -> 政务云服务 -> 政务云数据库 1)使用部署方案中指定的工具和方法验证深i您各服务是否正常。 2)按照产品测试用例测试小程序和管理
阅读全文
摘要:1.定制每一台Nginx服务的响应头,以便于当某台服务出现问题时能快速定位到具体的服务器 # cat nginx.conf.j2 user nginx; {# start process equal cpu cores #} worker_processes {{ ansible_processor
阅读全文
摘要:1.访问变量文件 - hosts: frame remote_user: root gather_facts: no vars_files: - /testdir/ansible/testfile.txt tasks: - debug: msg: "{{key_1}}" 变量文件: [root@fr
阅读全文
摘要:1.async参数值:代表了这个任务执行时间的上限值。即任务执行所用时间如果超出这个时间,则认为任务失败。此参数若未设置,则为同步执行 2.poll参数值:代表了任务异步执行时轮询的时间间隔。 loop循环使用 - hosts: frame tasks: - name: yum install vs
阅读全文
摘要:1.nginx -- filebeat -- es -- kibana [root@VM-1-12-centos filebeat-6.4.3-linux-x86_64]# cat filebeat.yml filebeat.inputs: - type: log enabled: true pat
阅读全文
摘要:0.禁止root登陆1.用sudo的用户登陆2.执行root的权限 3.cat /etc/ansible/hosts # Ex 2: A collection of hosts belonging to the 'webservers' group [test] 10.0.0.3 ansible_s
阅读全文
摘要:链接:https://www.imooc.com/article/17788?block_id=tuijian_wz 1. Screen工具是一个终端多路转接器,在本质上,这意味着你能够使用一个单一的终端窗口运行多终端的应用。 2. 最大的功能是可以隐藏正在前台运行的任务和恢复被隐藏的会话1. Sc
阅读全文
摘要:1.[BABEL] Note: The code generator has deoptimised the styling of "unknown" as it exceeds the max of " [BABEL] Note: The code generator has deoptimise
阅读全文
摘要:1.ActiveMQ 安装: ActiveMQ 官网: http://activemq.apache.org ActiveMQ5.10.x 以上版本必须使用 JDK1.8 才能正常使用。 ActiveMQ5.9.x 及以下版本使用 JDK1.7 即可正常使用。 2.What is the diffe
阅读全文
摘要:1.非常重要的结论:server_name对应的是http请求头里的Host字段的值 curl.exe -H "Host: aaa" 10.210.65.73 参考:https://www.cnblogs.com/xiaoshiwang/p/11436332.html proxy_set_heade
阅读全文
摘要:1.timelion .es(q='status:200',index=filebeat-testindex*,timefield=@timestamp,metric=count).label('200'),.es(q='status:502',index=filebeat-testindex*,t
阅读全文
摘要:1.redis 主从复制如何实现的? 1.1 连接建立阶段 1.2 数据同步阶段 1.3命令传播阶段 是指将一台Redis服务器的数据,复制到其他的Redis服务器。前者称为主节点(master),后者称为从节点(slave);数据的复制是单向的,只能由主节点到从节点。 需要注意,主从复制的开启,完
阅读全文
摘要:1.拨测服务端口 [root@VM_0_111_centos shell]# cat check_http_code1.sh #!/bin/bash while true do cat input1.txt| while read line do return_Code=`$line ;echo $
阅读全文