上一页 1 ··· 104 105 106 107 108 109 110 111 112 ··· 122 下一页

2017年5月25日

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

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

posted @ 2017-05-25 22:30 荣锋亮 阅读(1037) 评论(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 荣锋亮 阅读(2101) 评论(0) 推荐(0) 编辑

Prometheus 简介

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

posted @ 2017-05-06 18:43 荣锋亮 阅读(435) 评论(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 荣锋亮 阅读(2219) 评论(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 荣锋亮 阅读(442) 评论(0) 推荐(0) 编辑

2017年4月26日

mysql 用户管理

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

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

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

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

posted @ 2017-04-26 22:27 荣锋亮 阅读(291) 评论(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 荣锋亮 阅读(571) 评论(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 荣锋亮 阅读(260) 评论(0) 推荐(0) 编辑

2017年4月25日

node 升级

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

posted @ 2017-04-25 20:00 荣锋亮 阅读(134) 评论(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 荣锋亮 阅读(691) 评论(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 荣锋亮 阅读(739) 评论(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 荣锋亮 阅读(10027) 评论(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 荣锋亮 阅读(10965) 评论(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 荣锋亮 阅读(3501) 评论(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 荣锋亮 阅读(468) 评论(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 荣锋亮 阅读(877) 评论(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 荣锋亮 阅读(2358) 评论(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 荣锋亮 阅读(246) 评论(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 荣锋亮 阅读(942) 评论(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 荣锋亮 阅读(755) 评论(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 荣锋亮 阅读(9171) 评论(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 荣锋亮 阅读(3165) 评论(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 荣锋亮 阅读(200) 评论(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 荣锋亮 阅读(342) 评论(0) 推荐(0) 编辑

saas 系统租户自助网站

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

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

安装 Ruby, Rails 运行环境

摘要: 步骤1 - 安装 RVM RVM 是干什么的这里就不解释了,后面你将会慢慢搞明白。 $ gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 $ curl -sSL http 阅读全文

posted @ 2017-03-25 14:08 荣锋亮 阅读(423) 评论(0) 推荐(0) 编辑

2017年3月22日

saas 系统租户个性化域名&&租户绑定自己域名的解决方案

摘要: 实际的需求就类似github 的自定义page 1. 个性化域名 github 实现原理就是用户个性化域名使用泛域名解析,这个比较简单,大部分域名提供商都可以解决 具体操作不用赘述 使用nginx 的配置比较简单 openresty 配置如下: server { listen 8080default 阅读全文

posted @ 2017-03-22 23:05 荣锋亮 阅读(6023) 评论(0) 推荐(0) 编辑

2017年3月21日

caddy server 几个常用插件

摘要: 1.log日志 log /var/www/log/example.log 2.目录访问 browse 3.gzip压缩 gzip 4.自主ssl证书 tls /path/ssl/example.com.crt /path/ssl/example.com.key 5.git拉取功能(3600秒为间隔时 阅读全文

posted @ 2017-03-21 09:12 荣锋亮 阅读(2369) 评论(0) 推荐(0) 编辑

2017年3月20日

caddy server && caddyfile

摘要: This page describes how to configure Caddy using the Caddyfile. Introduction The term "Caddyfile" describes a text file that changes how Caddy works. 阅读全文

posted @ 2017-03-20 19:55 荣锋亮 阅读(2310) 评论(0) 推荐(0) 编辑

caddy server 默认https && http2的验证

摘要: 1. 下载 https://caddyserver.com/ 注意选择应该包含的模块,此次包含了git 插件 2. 配置 使用 Caddyfile 内容如下: rongfengliang.com gzip git git@github.com:dalong123/appdemo.git root a 阅读全文

posted @ 2017-03-20 12:52 荣锋亮 阅读(6041) 评论(0) 推荐(0) 编辑

2017年3月19日

caddy server 了解

摘要: Caddy 是一个Go写的服务器软件,官方的宣传语“The HTTP/2 web server with automatic HTTPS”以及“Serve The Web Like It's 2016”简明表达了这个软件的优点和趋势,它拥有基本的apache或者nginx有的web server模块 阅读全文

posted @ 2017-03-19 16:17 荣锋亮 阅读(539) 评论(0) 推荐(0) 编辑

2017年3月16日

redis 连接池的一些问题

摘要: 问题: Could not get a resource from the pool 将配置修改为如下: JedisPoolConfig config =newJedisPoolConfig(); config.setMaxTotal(200); config.setMaxIdle(50); con 阅读全文

posted @ 2017-03-16 14:29 荣锋亮 阅读(587) 评论(0) 推荐(0) 编辑

2017年3月13日

Hangfire 任务调度

摘要: Hangfire是一个开源且商业免费使用的工具函数库。可以让你非常容易地在ASP.NET应用(也可以不在ASP.NET应用)中执行多种类型的后台任务,而无需自行定制开发和管理基于Windows Service后台任务执行器。且任务信息可以被持久保存。内置提供集成化的控制台。 Hangfire的具有如 阅读全文

posted @ 2017-03-13 13:42 荣锋亮 阅读(1938) 评论(0) 推荐(0) 编辑

2017年3月11日

Spring Cloud feign 服务超时处理

摘要: Spring Cloud中,Feign和Ribbon在整合了Hystrix后,可能会出现首次调用失败的问题 造成该问题的原因 Hystrix默认的超时时间是1秒,如果超过这个时间尚未响应,将会进入fallback代码。而首次请求往往会比较慢(因为Spring的懒加载机制,要实例化一些类),这个响应时 阅读全文

posted @ 2017-03-11 14:13 荣锋亮 阅读(2988) 评论(0) 推荐(0) 编辑

2017年3月10日

windows 2016 容器管理

摘要: 1. docker-compose 安装 python 2.7 pip pip install docker-compose 常见问题: 解决方法: pip install pypiwin32 2. docker-compose.yaml docker-compose... 阅读全文

posted @ 2017-03-10 22:33 荣锋亮 阅读(582) 评论(0) 推荐(0) 编辑

Docker-Compose API too old for Windows

摘要: I was working on some code with a Docker Windows container today and ran into this error message: ERROR: client version 1.22 is too old. Minimum suppo 阅读全文

posted @ 2017-03-10 19:51 荣锋亮 阅读(1268) 评论(0) 推荐(0) 编辑

windows 2016 dockerfile 以及简单使用

摘要: Docker 引擎包含用于自动创建容器映像的工具。 尽管可以使用 docker commit 命令手动创建容器映像,然而采用自动映像创建过程可获得许多好处,其中包括: 将容器映像存储为代码。 可出于维护和升级的目的快速而精确地重新创建容器映像。 容器映像和开发周期之间的持续集成。 驱动实现这一自动化 阅读全文

posted @ 2017-03-10 09:06 荣锋亮 阅读(4333) 评论(1) 推荐(0) 编辑

2017年3月9日

docker windows 2016 安装测试

摘要: 1. 安装方式 powershell Install-Module-NameDockerMsftProvider-RepositoryPSGallery-Force Install-Package-Name docker -ProviderNameDockerMsftProvider Restart 阅读全文

posted @ 2017-03-09 23:07 荣锋亮 阅读(893) 评论(0) 推荐(0) 编辑

2017年2月26日

CentOS 中安装NFS

摘要: NFS(network file system)网络文件系统,类似Windows中的文件夹共享,如下有三台机器A, B, C,它们需要访问同一个目录,目录中都是图片,传统的做法是把这些图片分别放到A, B, C。但是使用NFS只需要放到A上,然后A共享给B和C即可。访问的时候,B和C是 通过网络的方 阅读全文

posted @ 2017-02-26 11:32 荣锋亮 阅读(373) 评论(0) 推荐(0) 编辑

上一页 1 ··· 104 105 106 107 108 109 110 111 112 ··· 122 下一页

导航