原文链接:https://www.cnblogs.com/olinux/p/5577767.html 对于新部署的机器,需要做一些基本的调优操作,以更改一些默认配置带来的性能问题 1 修改打开文件数 root@mysql:/data/tools/db# vim /etc/security/limit ...
分类:
系统相关 时间:
2020-04-25 10:58:21
阅读次数:
80
该程序完成的硬件组态有。 一台汇川变频器 HE200 HCU 为ProfiNet 接口 一台HMI TP900 一台智能从站ET200 一台西门子S7-1500 PLC 该程序主要实现的功能 用PLC DB数据块里面的变量进行在线赋值,然后通过ProfiNet 接口传递给汇川变频器 设定转速, 同时 ...
分类:
Web程序 时间:
2020-04-25 00:37:48
阅读次数:
172
1、 console.log(1 && 0) console.log(0 && 1) 2、 window.val = 1; var json = { val: 10, dbl: function(){ this.val *= 2; } }; json.dbl(); var dbl = json.db ...
分类:
其他好文 时间:
2020-04-24 21:47:41
阅读次数:
90
背景 singleflight 介绍 示例 源码分析 其他 Top 背景 在使用缓存时,容易发生缓存击穿。 缓存击穿:一个存在的key,在缓存过期的瞬间,同时有大量的请求过来,造成所有请求都去读dB,这些请求都会击穿到DB,造成瞬时DB请求量大、压力骤增。 Top singleflight 介绍 i ...
分类:
其他好文 时间:
2020-04-24 18:43:56
阅读次数:
58
1 index/Controller/index中的文件,实例如下 public function cpdetail(){ $o = input('ui'); $list = db('tp')->alias('a') // ->field('a.*,u.id,u.name,s.id,s.name a ...
分类:
其他好文 时间:
2020-04-24 14:28:22
阅读次数:
86
Redis的五大数据类型 key指令(非数据类型) keys 查看所有的key exists key的名字 查看某个key是否存在 move key db 将某个key及对应的值从当前库移动到某个库 expire key 秒钟 设置key的过期时间(过期不代表删除 仍然存在库中) ttl key 查 ...
分类:
其他好文 时间:
2020-04-24 10:29:51
阅读次数:
65
结果:(1, '11') self.conn = pymysql.connect( host='xxx', port=3806, user='root', passwd=str(123456), db = 'test', charset = "utf8") 结果:{'id': 1, 'name': ...
分类:
数据库 时间:
2020-04-23 18:45:53
阅读次数:
130
出现错误 For direct MetaStore DB connections , we don't suport reries at the client level. 修改字符集为 latin1 解决 alter database hve character set latin1 ...
分类:
其他好文 时间:
2020-04-23 11:47:03
阅读次数:
49
主从参数: 修改date:ntpdate asia.pool.ntp.org 主从配置通讯端口: db2h_erpinst1 70000/tcp 主库配置: db2 update db cfg for erpdb using hadr_local_host PrimaryNode-1 #本地服务器主 ...
分类:
数据库 时间:
2020-04-22 19:41:45
阅读次数:
168
主从参数: 修改date:ntpdate asia.pool.ntp.org 主从配置通讯端口: db2h_erpinst1 70000/tcp 主库配置: db2 update db cfg for erpdb using hadr_local_host PrimaryNode-1 #本地服务器主 ...
分类:
数据库 时间:
2020-04-22 19:37:17
阅读次数:
252