自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(9)
  • 资源 (1)
  • 收藏
  • 关注

原创 AWS学习笔记-VPC

Amzon Virtual Private Cloud AWS accounts that support EC2-VPC will have a default VPC created in each region with a default subnet created in each AZ. The assigned CIDR block of the VPC will be 172.31...

2019-12-18 17:38:15 1235

原创 AWS - EC2学习笔记

Instance Type Instance type control the virtual hardware dedicated to the instance when it is launched. Instance types are varying in the following dimensions: Virtual CPUs(vCUPs) Memory Storage(size...

2019-12-13 15:57:10 932

原创 Powermockito之static方法的Mock和Spy

写Junit,当遇到数据库调用,文件操作等耗时的方法,或者接口不可用的时候,通常需要mock或者spy这个方法的调用。 Powermockto的强大之处,在于它可以应用于静态,私有等方法。 下面讲解一下这两种方式如何应用于Static方法。 Mock Static Junit最常用的方式就是Mock,mock会导致所有的静态方法都被stub,导致方法默认返回null(对象),0(数字)或者fals...

2019-12-04 16:47:11 9042

原创 Nginx location精确匹配遇到的一个问题

Nginx location具有如下配置,如果在客户端输入localhost/app1,最后访问的路径为 /etc/nginx/html/common/app1/index,而没有访问/etc/nginx/html/index.html。 分析原因如下: (1)nginx首先匹配/app1/,由于没有指定页面,会使用配置的index.html,即访问的URI变为/app1/index.html, ...

2019-11-27 18:44:28 2526

原创 Nginx技术贴(二)指令

指令(directive)控制了Nginx如何运行,Nginx在编译的时候控制哪个模块被加载,而各个模块都是由指令来配置的。 指令分类 简单指令 1.1 user directive 具有默认值nobody。控制worker process在哪个用户账号下运行。 user nginx; 1.2 worker_processes directive 默认值1,通常和CPU core数一致。控制...

2019-11-26 18:14:29 428 1

原创 Docker利用Centos7镜像,以编译安装的安装nginx并生成镜像

安装Centos7容器 拉取Centos7镜像 docker pull centos:7 Docker运行Centos7容器 docker run -d -it --name centos centos:7 /bin/bash 安装Nginx装备工作 进入docker docker attach centos 在Centos7 执行以下命令,安装必要的工具 yum i...

2019-11-26 12:02:54 885

原创 Docker基本命令-持续更新中

docker pull 从远程repository获取Image docker pull centos docker images 查看本地images docker run 安装并运行docker docker run -d -it --name centos centos /bin/bash docker ps 查看运行的docker docker attach 进入d...

2019-11-25 16:48:50 175

原创 Nginx技术贴(一)Nginx和Apache的简单对比

#Nginx和Apache ##Performance简单对比 Apache的用户可以选择三种MPM模式(multiprocessing modules,可以使用httpd -V命令来查 mpm_prefork 为了减少频繁创建和销毁进程的开销,Apache在启动之初,预先fork一些子进程,然后等待请求进来,每个子进程只有一个线程,每个进程应对一个连接,效率高,内存消耗大 mpm_worker...

2019-11-22 16:12:51 325

原创 Gradle学习

学习总结-持续更新如何忽略UP-TO-DATE 如何忽略UP-TO-DATE gradle会自动检测task是否曾经运行过,而忽略中间没有任何变化的task,所以如果需要强制运行某个task的话,需要使用 --rerun-tasks。 如: gradle --rerun-tasks test ...

2019-11-22 13:19:27 378

oracle培训18天老师笔记

oracle培训18天老师笔记,适用于Oracle初学者

2009-08-20

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除