配置文件中定义连接字符串: "db": "server=10.0.0.0;database=Test;uid=sa;pwd=123456;Allow User Variables=true;default command timeout=120;Pooling=true;Max Pool Size= ...
分类:
数据库 时间:
2020-11-10 10:54:55
阅读次数:
12
java回顾之mysql性能优化 一、慢查询日志 慢查询日志,可以监控运行效率低下的sql语句,这样就可以知道是哪个sql语句拖累了整体的效率 -- 查看慢查询日志开启情况show variables like '%query%'; 开启慢查询 set global slow_query_log = ...
分类:
数据库 时间:
2020-11-06 01:18:43
阅读次数:
22
[default] callback_whitelist = profile_tasks # The best way I’ve found to time the execution of Ansible playbooks is by enabling the profile_tasks cal ...
分类:
其他好文 时间:
2020-11-04 19:01:00
阅读次数:
20
variable_names = [v.name for v in tf.all_variables()] values = sess.run(variable_names) for k,v in zip(variable_names, values): print("Variable: ", k) ...
分类:
其他好文 时间:
2020-11-01 09:47:51
阅读次数:
15
生产上使用splunk进行日志搜集,服务端已经安装完成,客户端有几十台需要部署,本文介绍使用ansible进行客户端批量安装
分类:
其他好文 时间:
2020-10-22 23:04:15
阅读次数:
26
实例环境:Centos 7.x 服务端的操作 1、这里我们使用epe源进行安装,需要打开自带的Base仓库 yum install epel-release -y yum install ansible -y 2、 ...
分类:
其他好文 时间:
2020-10-08 19:44:06
阅读次数:
27
修改cat/etc/ansible/hosts[test]10.27.235.108host_name=test_host_namehosts:testuser:rootgather_facts:truetasks:name:rsyncdirfilebeathostname:‘name={{host_name}}‘name:"addline"lineinfile
分类:
其他好文 时间:
2020-10-08 18:41:19
阅读次数:
19
1.yum模块 1)语法帮助 [root@m01 ~]# ansible-doc yum EXAMPLES: - name: install the latest version of Apache yum: name: httpd state: latest name: httpd #服务的名字 ...
分类:
其他好文 时间:
2020-10-07 21:26:48
阅读次数:
31