摘要: 在Java文件中,指向编译时static final的静态常量, 会被在运行时解析为一个局部的常量值(也就是说静态常量在编译后,成为了常量,而不是原先的代码)。这对所有的基础数据类型(就像int ,float等)和java.lang.String都适用。 静态常量(即用 static final 修 阅读全文
posted @ 2018-10-30 09:53 antball 阅读(722) 评论(0) 推荐(0) 编辑
摘要: 查看MYSQL数据库服务器和数据库字符集 方法一:show variables like '%character%'; 方法二:show variables like 'collation%'; show charset; SHOW VARIABLES WHERE Variable_name LIK 阅读全文
posted @ 2018-10-22 17:21 antball 阅读(994) 评论(0) 推荐(0) 编辑
摘要: 假设你是一个普通的 Java 对象,你出生在 Eden 区,在 Eden 区有许多和你差不多的小兄弟、小姐妹,可以把 Eden 区当成幼儿园,在这个幼儿园里大家玩了很长时间。Eden 区不能无休止地放你们在里面,所以当年纪稍大,你就要被送到学校去上学,这里假设从小学到高中都称为 Survivor 区 阅读全文
posted @ 2018-10-16 14:00 antball 阅读(173) 评论(0) 推荐(0) 编辑
摘要: https://www.jianshu.com/p/a14b34386b41 阅读全文
posted @ 2018-09-30 11:44 antball 阅读(778) 评论(0) 推荐(0) 编辑
摘要: CMD 容器启动命令 CMD指令用于为执行容器提供默认值。每个Dockerfile只有一个CMD命令,如果指定了多个CMD命令,那么只有最后一条会被执行,如果启动容器的时候指定了运行的命令,则会覆盖掉CMD指定的命令。 支持三种格式: CMD ["executable","param1","para 阅读全文
posted @ 2018-09-29 14:59 antball 阅读(499) 评论(0) 推荐(0) 编辑
摘要: 安装成功后,第一次设置密码后用root 密码登录 配置邮箱 docker container restart gitlab https://blog.csdn.net/wo18237095579/article/details/81082349 阅读全文
posted @ 2018-09-28 11:00 antball 阅读(161) 评论(0) 推荐(0) 编辑
摘要: "Docker Swarm集群部署" 阅读全文
posted @ 2018-09-27 20:42 antball 阅读(63) 评论(0) 推荐(0) 编辑
摘要: 检查内核版本 uname r 使用shell去运行脚本,两种方法 bash xxx.sh,另外一种就是bash c "cmd string" bash c bash c "cmd string" https://www.jianshu.com/p/198d819d24d1 阅读全文
posted @ 2018-09-27 16:46 antball 阅读(96) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/u014726937/article/details/52768463 阅读全文
posted @ 2018-09-26 10:11 antball 阅读(146) 评论(0) 推荐(0) 编辑
摘要: "docker compose 编排lnmp容器" https://gitee.com/lichenxin/docker compose mnpr "安装" ~~~ 二进制包安装 curl L https://github.com/docker/compose/releases/download/1 阅读全文
posted @ 2018-09-26 09:21 antball 阅读(496) 评论(0) 推荐(0) 编辑
摘要: Swarm是Docker官方提供的一款集群管理工具,其主要作用是把若干台Docker主机抽象为一个整体, 并且通过一个入口统一管理这些Docker主机上的各种Docker资源。 Swarm和Kubernetes比较类似,但是更加轻,具有的功能也较kubernetes更少一些。 https://doc 阅读全文
posted @ 2018-09-18 19:34 antball 阅读(121) 评论(0) 推荐(0) 编辑
摘要: https://www.cnblogs.com/antball/p/7727185.html https://blog.csdn.net/zzpzheng/article/details/79437907 阅读全文
posted @ 2018-09-18 17:14 antball 阅读(115) 评论(0) 推荐(0) 编辑
摘要: SecureRandom在java各种组件中使用广泛,可以可靠的产生随机数。但在大量产生随机数的场景下,性能会较低。 这时可以使用" Djava.security.egd=file:/dev/./urandom" 加快随机数产生过程。 http://blog.51cto.com/leo01/1795 阅读全文
posted @ 2018-09-18 09:46 antball 阅读(19827) 评论(1) 推荐(1) 编辑
摘要: http://codingstandards.iteye.com/blog/833695 tee 将标准输出复制一份 ls al | tee a tmpls.log ls al tmpls.log EOF是END Of File的缩写,表示自定义终止符.既然自定义,那么EOF就不是固定的,可以随意设 阅读全文
posted @ 2018-09-17 17:21 antball 阅读(3106) 评论(0) 推荐(0) 编辑
摘要: https://yeasy.gitbooks.io/docker_practice/content/compose/ 1. "安装docker" 为用户添加权限 ~~~ 1、普通用户启动docker时遇到如下错误: Got permission denied while trying to conn 阅读全文
posted @ 2018-09-17 16:33 antball 阅读(270) 评论(0) 推荐(0) 编辑
摘要: 资料 "Docker 中文指南" http://www.docker.org.cn/book/docker/prepare docker 5.html http://itmuch.com/docker/05 docker command containers/ "安装" "镜像" 安装docker 阅读全文
posted @ 2018-09-17 11:49 antball 阅读(186) 评论(0) 推荐(0) 编辑
摘要: mysql 存储结构 "MySQL:InnoDB存储引擎的B+树索引算法" 恢复内容结束 sql三范式 数据库中的表(所有字段值)都是不可分割的原子数据项。 数据库表中的每一列都和主键相关,而不能只和主键的某一部分相关。 数据库表中每一列数据都和主键直接相关,不能间接相关。范式是为了减小数据冗余。 阅读全文
posted @ 2018-09-15 16:49 antball 阅读(130) 评论(0) 推荐(0) 编辑
摘要: 1. 引入依赖 ~~~ org.springframework.boot spring boot starter parent 2.0.3.RELEASE <! lookup parent from repository UTF 8 UTF 8 1.8 2.0.8.RELEASE<! 1.8.7.R 阅读全文
posted @ 2018-06-28 17:07 antball 阅读(7013) 评论(0) 推荐(0) 编辑
摘要: hdfs 1.0版本 一个namenode (secordary namenode 2.0冷备份) 和多个datanode构成分布式文件系统 mapreduce 一个 jobtracker 协调 tasktrackers hdfs 兼容廉价硬件 实现流数据读写 支持大数据集 简单的文件模型 不适合低 阅读全文
posted @ 2018-05-22 13:36 antball 阅读(588) 评论(0) 推荐(0) 编辑
摘要: https://www.cnblogs.com/xing901022/p/6195422.html "介绍知识点" [大数据技术原理与应用视频 ](http://www.icourse163.org/learn/XMU 1002335004?tid=1002787005 /learn/content 阅读全文
posted @ 2018-05-22 11:00 antball 阅读(122) 评论(0) 推荐(0) 编辑