使用fio测试 安装 # yum install fio -y 编译安装 # wget https://brick.kernel.dk/snaps/fio-3.20.tar.gz # tar xfz fio-3.20.tar.gz cd fio-3.20 # ./configure # make # ...
分类:
系统相关 时间:
2020-06-28 22:28:35
阅读次数:
91
1、wc 统计文件行数的选项是(C )A、-L B、-w C、-l D、-c 2、linux 用户创建命令(A )A、useradd B、chown C、chmod D、groupadd 3、有一些文件某普通用户无法读取,说明其权限位缺少哪个权限(D )A、w B、s C、x D、r 4、bash脚 ...
分类:
其他好文 时间:
2020-06-28 22:12:47
阅读次数:
72
名称: 策略模式(Strategy Pattern) 问题: The intent of the Strategy Pattern is to define a family of algorithms, encapsulate each algorithm, and make them inter ...
分类:
其他好文 时间:
2020-06-28 20:11:35
阅读次数:
55
添加用户受影响表 pre_common_credit_rule_log 积分规则日志表pre_common_member 用户主表pre_common_member_count 用户统计表pre_common_member_field_forum 用户论坛字段表pre_common_member_f ...
分类:
Web程序 时间:
2020-06-28 15:07:23
阅读次数:
52
在Makefile中我们经常看到 = := ?= +=这几个赋值运算符,那么他们有什么区别呢?我们来做个简单的实验 新建一个Makefile,内容为:ifdef DEFINE_VRE VRE = “Hello World!”elseendif ifeq ($(OPT),define) VRE ?= ...
分类:
其他好文 时间:
2020-06-28 12:58:59
阅读次数:
47
cat test.txt | iconv -f GBK -t UTF-8 临时转码一下 ,OK VIM: 第一种方法:设置编码格式为utf-8 (我没成功) # 命令行模式 :set encoding=utf-8 第二种方法:以cp936的编码方式加载文件为:edit ++enc=cp936,可以简 ...
分类:
系统相关 时间:
2020-06-27 20:20:20
阅读次数:
132
1 Linux 1、下载 方式一: 官网:http://download.redis.io/releases/ 使用Xftp上传到服务器。 方式二: 在Linux服务器下载目录下执行如下命令(版本自己指定): wget http://download.redis.io/releases/redis- ...
分类:
其他好文 时间:
2020-06-27 00:34:36
阅读次数:
91
Singleton: Make sure that there can be "only one instance" of a Class The Singleton class only provide a "static method" to get its object for example ...
分类:
其他好文 时间:
2020-06-26 20:37:18
阅读次数:
44
1. Run a few randomly-generated problemswith just two jobs and two queues; compute the MLFQ execution trace for each. Make your life easier by limitin ...
分类:
其他好文 时间:
2020-06-26 16:17:45
阅读次数:
78
设计上有一个这种文字滚动到屏幕外的时候,滚动到边缘进出场需要添加渐变透明度的需求 ,这个以前没有做过于是网上找了找 iOS文字颜色渐变透明 可惜它这个只支持半边的渐变,方向有上下或者左右啊,已经不能满足需求了,它的原理是设置渐变的maskLayer 于是,照猫画虎,写了两个渐变layer当成subL ...
分类:
移动开发 时间:
2020-06-26 12:48:05
阅读次数:
193