上一页 1 ··· 116 117 118 119 120 121 122 123 124 ··· 135 下一页

2017年6月10日

Helm Charts

摘要: Use this repository to submit official Charts for Kubernetes Helm. Charts are curated application definitions for Kubernetes Helm. For more informatio 阅读全文

posted @ 2017-06-10 17:07 荣锋亮 阅读(1865) 评论(0) 推荐(0)

2017年6月8日

Clair:CoreOS发布的开源容器漏洞分析工具

摘要: Clair为何而生:提升安全 软件世界里,安全漏洞会一直存在。好的安全实践意味着要对可能出现的事故未雨绸缪 - 即尽早发现不安全的软件包,并准备好快速进行升级。而Clair就是设计来帮助你找出容器中可能存在的不安全软件包。要理解系统会受到哪些威胁威胁是一个劳力伤神的事情,尤其当你应对的环境是异构或者 阅读全文

posted @ 2017-06-08 00:03 荣锋亮 阅读(998) 评论(0) 推荐(0)

2017年6月4日

drill 表&&视图使用

摘要: 1. table create table table_name as select * from storage_name.dbname.tablename create table table_name as select * from storage_name.dbname.tablename 阅读全文

posted @ 2017-06-04 16:30 荣锋亮 阅读(448) 评论(0) 推荐(0)

drill 数据源配置补充

摘要: 1. mongodb { "type":"mongo", "connection":"mongodb://user:password@host:port", "enabled":true } 对于没有密码的 { "type":"mongo", "connection":"mongodb://user 阅读全文

posted @ 2017-06-04 14:40 荣锋亮 阅读(452) 评论(0) 推荐(0)

2017年6月2日

drill 数据库查询方式简单说明

摘要: 1. mysql select * from mysql-storage.mysqldb.mysqltable select * from mysql-storage.mysqldb.mysqltable 2. oracle select * from oracle-storage.username 阅读全文

posted @ 2017-06-02 11:06 荣锋亮 阅读(524) 评论(0) 推荐(0)

2017年5月31日

drill 数据源配置

摘要: 1. mongodb { "type":"mongo", "connection":"mongodb://user:password@host:port", "enabled":true } 对于没有密码的 { "type":"mongo", "connection":"mongodb://user 阅读全文

posted @ 2017-05-31 21:31 荣锋亮 阅读(1092) 评论(0) 推荐(0)

drill java && spring jdbc 连接使用

摘要: 原生 jdbc 连接 1. maven 包 <dependency> <groupId>org.apache.drill.exec</groupId> <artifactId>drill-jdbc-all</artifactId> <version>1.10.0</version> </depend 阅读全文

posted @ 2017-05-31 19:38 荣锋亮 阅读(942) 评论(0) 推荐(0)

drill 试用

摘要: 1. 下载 http://drill.apache.org/ 2. 启动本地模式 http://drill.apache.org/ 2. 启动本地模式 bin/sqlline -u jdbc:drill:zk=local 3. 查询数据 bin/sqlline -u jdbc:drill:zk=lo 阅读全文

posted @ 2017-05-31 07:35 荣锋亮 阅读(251) 评论(0) 推荐(0)

2017年5月30日

istio 安装试用

摘要: 1. 命令行工具curl -L https://git.io/getIstio | sh -2. 环境变量配置export PATH=$PWD/bin:$PATH3. RBAC 检验kubectl api-versions | grep rbac以下为官方介绍:If the command displays an error, or does not display anything, it me... 阅读全文

posted @ 2017-05-30 16:02 荣锋亮 阅读(1158) 评论(0) 推荐(0)

spec.template.spec.initContainers[1].securityContext.privileged: Forbidden: disallowed by policy 问题解决

摘要: 主要是执行系统特权应用解决方法: api server controller-manager 加上 --allow-privileged=true 即可 之后重启服务 阅读全文

posted @ 2017-05-30 15:53 荣锋亮 阅读(563) 评论(0) 推荐(0)

2017年5月27日

cockpit 使用(集成docker && k8s 管理)

摘要: 1. yum 安装 sudo yum install cockpit 2. 允许启动 sudo yum install cockpit 2. 允许启动 sudo systemctl enable --now cockpit.socket 3. 可选的插件 sudo systemctl enable 阅读全文

posted @ 2017-05-27 22:35 荣锋亮 阅读(5204) 评论(0) 推荐(0)

Cockpit 服务化管理工具

摘要: Cockpit 是红帽开发的网页版图像化服务管理工具,优点是无需中间层,且可以管理多种服务。 根据其项目主站描述,Cockpit 有如下特点: 从易用性考虑设计,方便管理人员使用,而不是仅仅的终端命令按钮化。 不会打乱已有终端或脚本服务配置,通过 Cockpit 启用的服务可以在终端停止,脚本运行的 阅读全文

posted @ 2017-05-27 21:05 荣锋亮 阅读(1266) 评论(0) 推荐(0)

2017年5月26日

java 二维码生成(vcard)

摘要: 1. maven 依赖 <dependency> <groupId>com.googlecode.ez-vcard</groupId> <artifactId>ez-vcard</artifactId> <version>0.10.1</version> </dependency> <depende 阅读全文

posted @ 2017-05-26 14:29 荣锋亮 阅读(1090) 评论(0) 推荐(0)

Gixy Nginx 配置分析工具

摘要: 项目简介 Gixy 是一款用来分析 Nginx 配置的工具。 Gixy 的主要目标是防止安全配置错误,并自动进行缺陷检测。 目前支持的 Python 版本是 2.7 和 3.5+ 。 免责声明:Gixy 仅在 GNU / Linux 上进行了很好的测试,其他操作系统可能会存在一些问题。 它能做什么 阅读全文

posted @ 2017-05-26 09:31 荣锋亮 阅读(653) 评论(0) 推荐(0)

2017年5月25日

Google、IBM和Lyft开源其大型微服务系统管理工具Istio

摘要: Istio 的优势 集群规模可视性:在故障状况出现时,运营人员需要利用多种工具以始终关注集群运行状况并分析微服务状态图表。Istio 项目能够监控与应用程序及网络活动相关的数据,利用 Prometheus 与 Grafana 对这部分数据加以渲染,而后将相关指标与日志记录发送至任何收集、聚合与查询系 阅读全文

posted @ 2017-05-25 22:30 荣锋亮 阅读(1051) 评论(0) 推荐(0)

2017年5月6日

Spring boot admin 使用

摘要: 1. maven依赖 <dependencies> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-actuator</artifactId> </dependency> 阅读全文

posted @ 2017-05-06 18:44 荣锋亮 阅读(2121) 评论(0) 推荐(0)

Prometheus 简介

摘要: Prometheus 是一个开源的服务监控系统和时间序列数据库。 特性: 高维度数据模型 自定义查询语言 可视化数据展示 高效的存储策略 易于运维 提供各种客户端开发库 警告和报警 数据导出 Prometheus 是一个开源的服务监控系统和时间序列数据库。 特性: 高维度数据模型 自定义查询语言 可 阅读全文

posted @ 2017-05-06 18:43 荣锋亮 阅读(461) 评论(0) 推荐(0)

2017年5月1日

Cassandra spring data 试用

摘要: 1. maven 依赖 <dependency> <groupId>org.springframework.data</groupId> <artifactId>spring-data-cassandra</artifactId> </dependency> <dependency> <groupI 阅读全文

posted @ 2017-05-01 23:11 荣锋亮 阅读(2236) 评论(0) 推荐(0)

2017年4月28日

nginx fastcgi 优化

摘要: fastcgi_cache_path /usr/local/nginx/fastcgi_cache levels=1:2 keys_zone=TEST:10m inactive=5m; fastcgi_connect_timeout 300; fastcgi_send_timeout 300; fa 阅读全文

posted @ 2017-04-28 12:28 荣锋亮 阅读(455) 评论(0) 推荐(0)

2017年4月26日

mysql 用户管理

摘要: 一, 创建用户: 命令:CREATE USER 'username'@'host' IDENTIFIED BY 'password'; 说明:username - 你将创建的用户名, host - 指定该用户在哪个主机上可以登陆,如果是本地用户可用localhost, 如果想让该用户可以从任意远程主 阅读全文

posted @ 2017-04-26 22:46 荣锋亮 阅读(267) 评论(0) 推荐(0)

js之iframe子页面与父页面通信

摘要: iframe子页面与父页面通信根据iframe中src属性是同域链接还是跨域链接,通信方式也不同。 一、同域下父子页面的通信 父页面parent.html <html> <head> <scripttype="text/javascript"> function say(){ alert("pare 阅读全文

posted @ 2017-04-26 22:27 荣锋亮 阅读(313) 评论(0) 推荐(0)

nginx FastCGI错误Primary script unknown解决办法

摘要: 解决方法: 修改 fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name; 为: fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_para 阅读全文

posted @ 2017-04-26 22:24 荣锋亮 阅读(598) 评论(0) 推荐(0)

nginx php-fpm

摘要: 1. nginx php-fpm yum install nginx yum install php-fpm yum install nginx yum install php-fpm 2. 配置 nginx.conf location ~ \.php$ { root /usr/share/ngin 阅读全文

posted @ 2017-04-26 22:24 荣锋亮 阅读(318) 评论(0) 推荐(0)

2017年4月25日

node 升级

摘要: npm install -g n npm update –g 阅读全文

posted @ 2017-04-25 20:00 荣锋亮 阅读(144) 评论(0) 推荐(0)

2017年4月11日

jenkins api 使用

摘要: 1. java <dependency> <groupId>com.offbytwo.jenkins</groupId> <artifactId>jenkins-client</artifactId> <version>0.3.7</version> </dependency> <dependenc 阅读全文

posted @ 2017-04-11 09:15 荣锋亮 阅读(711) 评论(0) 推荐(0)

Thumbnailator 图像处理

摘要: Create a thumbnail from an image file Thumbnails.of(new File("original.jpg")) .size(160, 160) .toFile(new File("thumbnail.jpg")); In this example, the 阅读全文

posted @ 2017-04-11 08:53 荣锋亮 阅读(764) 评论(0) 推荐(0)

2017年4月10日

基于jquery 的ajax 文件下载

摘要: ajax 文件下载,实际上就是模拟表单提交,代码如下: function download(url, data, method){ //url and data options required if( url && data ){ //data can be string of parameters or array/object data =typeof data =='strin... 阅读全文

posted @ 2017-04-10 20:42 荣锋亮 阅读(10044) 评论(0) 推荐(0)

2017年4月5日

maven docker plugin 常见问题解决

摘要: 1. maven 项目必须使用小写,不然会一直有500 的错误 500: HTTP 500InternalServerError 500: HTTP 500InternalServerError 2. docker server 连接数超了 Failed to execute goal com.sp 阅读全文

posted @ 2017-04-05 16:03 荣锋亮 阅读(11029) 评论(0) 推荐(0)

2017年4月4日

lua resty template && openresty 使用

摘要: 1. 安装 luarocks install lua-resty-template 2. 使用 luarocks install lua-resty-template 2. 使用 配置模板页面位置 有多种方式: a. 直接使用root 目录 代码如下: location /{ root html; 阅读全文

posted @ 2017-04-04 21:41 荣锋亮 阅读(3535) 评论(0) 推荐(0)

jekyll 安装使用

摘要: 1. 安装 条件: ruby gem 注意版本,同时建议使用国内的镜像 gem install jekyll bundler gem install jekyll bundler 2. 创建网站 jekyll new my-awesome-site jekyll new my-awesome-sit 阅读全文

posted @ 2017-04-04 16:55 荣锋亮 阅读(488) 评论(0) 推荐(0)

2017年4月3日

java 短链接生成

摘要: package shorurl; import org.apache.commons.codec.digest.DigestUtils; import org.apache.commons.lang.StringUtils; publicclassShortUrl{ privatestaticfinalint BINARY =0x2; privatestaticfinalint NUMBER... 阅读全文

posted @ 2017-04-03 14:03 荣锋亮 阅读(897) 评论(0) 推荐(0)

openresty websocket 使用

摘要: openresty websocket 使用 1. 代码如下: local server =require"resty.websocket.server" local wb, err = server:new{ timeout =5000, max_payload_len =65535 } ifno 阅读全文

posted @ 2017-04-03 12:24 荣锋亮 阅读(2422) 评论(0) 推荐(0)

2017年4月2日

web 优化原则

摘要: 1. 减少http 请求 2. 使用CDN 3. 添加expires 头 4. gzip 压缩 5. 样式表放在头部 6. 脚本放底部 7. 避免css 表达式 8. 使用外部css js 9. 减少DNS 10.精简js 11. 避免重定向 12. 删除重复脚本 13. 配置etag 14. 使a 阅读全文

posted @ 2017-04-02 14:50 荣锋亮 阅读(256) 评论(0) 推荐(1)

2017年4月1日

linux 磁盘挂载操作

摘要: 1. fdisk -l 查看磁盘 2. fisk /dev/vdb 进行分区 依次输入 n p 1 两次回车 wq 3. fdisk -l 查看分区 4. 分区格式化 mkfs.exts /dev/vdb1 5. 写入分区表信息,方便启动自动挂载 echo /dev/vdb /XXXX ext3 d 阅读全文

posted @ 2017-04-01 21:34 荣锋亮 阅读(963) 评论(0) 推荐(0)

nginx 缓存处理

摘要: 核心指令 proxy_cache_path /data/nginx/cache/one levels=1:2 keys_zone=one:10m max_size=10g; proxy_cache_key "$host$request_uri"; proxy_cache_path /data/ngi 阅读全文

posted @ 2017-04-01 09:39 荣锋亮 阅读(782) 评论(0) 推荐(0)

2017年3月31日

spring cloud feign 接口继承以及参数传递的问题

摘要: 1. 优势 可以使用maven 进行访问,实现代码的共享,减少跨服务调用服务编写的问题 2. 使用 定义接口 publicinterfaceIUserService{ @RequestMapping(method =RequestMethod.GET, value ="/users/app",hea 阅读全文

posted @ 2017-03-31 23:04 荣锋亮 阅读(9201) 评论(0) 推荐(0)

2017年3月25日

luarocks 安装

摘要: 1. linux 安装 wget https://luarocks.org/releases/luarocks-2.4.1.tar.gz tar zxpf luarocks-2.4.1.tar.gz cd luarocks-2.4.1 ./configure; sudo make bootstrap 阅读全文

posted @ 2017-03-25 22:13 荣锋亮 阅读(3193) 评论(0) 推荐(0)

几个中文排版web 类库

摘要: 1. typo.css http://typo.sofi.sh/ 2. yue.css http://lab.lepture.com/yue.css/ 规范,统一才是开发的王道。 阅读全文

posted @ 2017-03-25 21:04 荣锋亮 阅读(213) 评论(0) 推荐(0)

几个开源ssg 技术方案

摘要: 1. Nanoc 2. Middle Man App 3. Hexo 4. DocPad 5. Hugo 6. Jekyll 7. Octopress 8. Harp 9. Sculpin 10. Wintersmith 1. Nanoc 2. Middle Man App 3. Hexo 4. D 阅读全文

posted @ 2017-03-25 19:53 荣锋亮 阅读(365) 评论(0) 推荐(0)

saas 系统租户自助网站

摘要: 1. 原理 类似github 的自定义页面,使用jekyll 进行租户自助网站的生成,系统使用jenkins 进行租户的网站构建 同时结合租户的个性化域名系统,进行租户页面的发布管理 2. 实践操作 个性化域名不在赘述,jekyll 安装配置比较简单,使用gem 安装即可,但是可能存在版本的问题,可 阅读全文

posted @ 2017-03-25 16:22 荣锋亮 阅读(951) 评论(0) 推荐(0)

上一页 1 ··· 116 117 118 119 120 121 122 123 124 ··· 135 下一页

导航