1、IO模型的基础概念 在学习IO模型前先介绍几个概念。 用户空间和内核空间 进程切换 进程的阻塞 文件描述符 缓存 I/O 1、用户空间和内核空间 Linux操作系统和驱动程序运行在内核空间,应用程序运行在用户空间 os分配给每个进程一个独立的、连续的、虚拟的地址内存空间,该大小一般是4G(32位 ...
分类:
编程语言 时间:
2021-06-25 16:53:53
阅读次数:
0
1.@Transactional修饰的方法为非public方法,这个时候@Transactional会实现。失败的原理是:@Transactional是基于动态代理来实现的,非public的方法,他@Transactional的动态代理对象信息为空,所以不能回滚。 2.在类内部没有添加@Transa ...
分类:
其他好文 时间:
2021-06-24 18:13:10
阅读次数:
0
dataZoom=[ //区域缩放 { id: 'dataZoomX', show:true, //是否显示 组件。如果设置为 false,不会显示,但是数据过滤的功能还存在。 backgroundColor:"rgba(47,69,84,0)", //组件的背景颜色 type: 'slider', ...
分类:
其他好文 时间:
2021-06-24 18:12:17
阅读次数:
0
[root@es02-010007081131 dumpbackup]# more /home/script/backup/mysql_dumpbackup.sh #!/bin/bash . /etc/profile . ~/.bash_profile backup_date=`date "+%Y% ...
分类:
数据库 时间:
2021-06-24 18:11:54
阅读次数:
0
1.当extends app 时,可以引入变量,而使用main函数不能引入 extends app main 函数 2. extends app 会延迟加载,使用main函数更加稳定 等区别网络自行搜索 其他不同待补充 ...
分类:
移动开发 时间:
2021-06-24 18:03:37
阅读次数:
0
data() { return { krpano:null //存krpano变量 } }, // 初始化全景 embedpanoInit(name) { if (document.getElementById('krpanoObject')) { document.getElementById(' ...
分类:
其他好文 时间:
2021-06-24 18:00:55
阅读次数:
0
原文:https://www.huaweicloud.com/articles/0bd52c317b5d1757b62914c05dbe1522.html Backup一直是数据库最重要的环节,mysql也比例外。而mysql最好的备份工具就是Percona xtrabackup和Mysql Ent ...
分类:
其他好文 时间:
2021-06-23 17:11:14
阅读次数:
0
Linux Nginx日志切割脚本 版本 操作系统版本IP版本 Centos 172.21.3.220内网 7.x Nginx日志切割脚本 #!/bin/bash #设置日志文件存放目录 logs_dir="/usr/local/nginx/logs" store_dir="/data/backup ...
分类:
系统相关 时间:
2021-06-23 17:02:55
阅读次数:
0
修改字符串的大小写: 首字母大写 >>> name = "gao ziqiang" >>> print(name.title()) Gao Ziqiang 全部大写或者全部小写 >>> print(name.upper()) GAO ZIQIANG >>> print(name.lower()) g ...
分类:
编程语言 时间:
2021-06-23 16:52:40
阅读次数:
0
case: decode: decode中的括号相当于case的end; ...
分类:
其他好文 时间:
2021-06-23 16:50:49
阅读次数:
0