<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[dengchen2166的博客]]></title><description><![CDATA[]]></description><link>https://blog.youkuaiyun.com/dengchen2166</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; dengchen2166]]></copyright><item><title><![CDATA[搭建基于OAuth2和SSO的开放平台]]></title><link>https://blog.youkuaiyun.com/dengchen2166/article/details/101872969</link><guid>https://blog.youkuaiyun.com/dengchen2166/article/details/101872969</guid><author>dengchen2166</author><pubDate>Fri, 08 Sep 2017 10:44:00 +0800</pubDate><description><![CDATA[搭建基于OAuth2和SSO的开放平台
原创文章，转载或摘录请说明文章来源:http://heartlifes.com
开放平台介绍
什么是开放平台
开放平台在百科中的定义：
开放平台（Open Platform） 在软件行业和网络中，开放平台是指软件系统通过公开其应用程序编程接口（API）或函数（function)来使外部的程序可以增加该软件系统的功能或使用该软件系统的资源，而不需要更...]]></description><category></category></item><item><title><![CDATA[Docker配置使用harbor私服]]></title><link>https://blog.youkuaiyun.com/dengchen2166/article/details/101872968</link><guid>https://blog.youkuaiyun.com/dengchen2166/article/details/101872968</guid><author>dengchen2166</author><pubDate>Fri, 09 Jun 2017 11:07:00 +0800</pubDate><description><![CDATA[原文及更多文章请见个人博客：http://heartlifes.com
Docker默认使用docker-hub拉取镜像，使用harbor私服，必须对docker进行配置，否则docker在拉取镜像时会报错
1. 添加harbor私服配置
创建或修改以下文件:
vim /etc/docker/daemon.json
添加或增加harbor配置：
{ "insecure-registrie...]]></description><category></category></item><item><title><![CDATA[搭建基于consul，registrator，nsq的GO体系Docker开发环境]]></title><link>https://blog.youkuaiyun.com/dengchen2166/article/details/101872967</link><guid>https://blog.youkuaiyun.com/dengchen2166/article/details/101872967</guid><author>dengchen2166</author><pubDate>Fri, 09 Jun 2017 11:07:00 +0800</pubDate><description><![CDATA[原文及更多文章请见个人博客：http://heartlifes.com
使用GO作为生产服务开发语言，避免不了与以下几大基础组件打交道，他们分别是：

consul,registrator,nsq

consul
Consul 是一个支持多数据中心分布式高可用的服务发现和配置共享的服务软件，通常用于docker 实例的注册与配置共享
registrator
Registrator 去除了...]]></description><category></category></item><item><title><![CDATA[Docker私服Harbor安装]]></title><link>https://blog.youkuaiyun.com/dengchen2166/article/details/101872966</link><guid>https://blog.youkuaiyun.com/dengchen2166/article/details/101872966</guid><author>dengchen2166</author><pubDate>Fri, 09 Jun 2017 11:06:00 +0800</pubDate><description><![CDATA[原文及更多文章请见个人博客：http://heartlifes.com
Docker私服一般选用vmware的harbor
官方地址：

https://github.com/vmware/harbor/releases

1. 安装dcoker-compose
harbor依赖docker-compose组件，首先安装docker-compose
docker-compose官方地址：...]]></description><category></category></item><item><title><![CDATA[Centos安装Docker特定版本]]></title><link>https://blog.youkuaiyun.com/dengchen2166/article/details/101872964</link><guid>https://blog.youkuaiyun.com/dengchen2166/article/details/101872964</guid><author>dengchen2166</author><pubDate>Fri, 09 Jun 2017 11:06:00 +0800</pubDate><description><![CDATA[原文及更多文章请见个人博客：http://heartlifes.com
某些情况下，不希望安装官方最新版本，这个时候就需要指定版本进行安装
1. 前置条件
必须是CENTOS7，64位
2. 安装源
sudo tee /etc/yum.repos.d/docker.repo
&lt;&lt;-'EOF'
[dockerrepo]
name=Docker Repository
baseur...]]></description><category></category></item><item><title><![CDATA[hibernate自动添加永真1=1，导致Druid sql防火墙报错的问题]]></title><link>https://blog.youkuaiyun.com/dengchen2166/article/details/101872962</link><guid>https://blog.youkuaiyun.com/dengchen2166/article/details/101872962</guid><author>dengchen2166</author><pubDate>Fri, 09 Jun 2017 11:06:00 +0800</pubDate><description><![CDATA[原文及更多文章请见个人博客：http://heartlifes.com
最近工程突然报错：
java.sql.SQLException: sql injection violation, part alway true condition not allow : select count(*) where this_.id&lt;&gt;? and 1=1
at com.alibaba....]]></description><category></category></item><item><title><![CDATA[Centos安装Docker最新版]]></title><link>https://blog.youkuaiyun.com/dengchen2166/article/details/101872960</link><guid>https://blog.youkuaiyun.com/dengchen2166/article/details/101872960</guid><author>dengchen2166</author><pubDate>Fri, 09 Jun 2017 11:05:00 +0800</pubDate><description><![CDATA[原文及更多文章请见个人博客：http://heartlifes.com
官方文档：

https://store.docker.com/editions/community/docker-ce-server-centos?tab=description

1. 前置条件
必须是CENTOS7，64位
2. 安装源
安装必要工具集
sudo yum install -y yum-utils...]]></description><category></category></item><item><title><![CDATA[druid升级到最新的1.0.16-SNAPSHOT引发的配置问题]]></title><link>https://blog.youkuaiyun.com/dengchen2166/article/details/101872958</link><guid>https://blog.youkuaiyun.com/dengchen2166/article/details/101872958</guid><author>dengchen2166</author><pubDate>Fri, 09 Jun 2017 11:05:00 +0800</pubDate><description><![CDATA[原文及更多文章请见个人博客：http://heartlifes.com
盲升druid至最新的1.0.16-SNAPSHOT版本后，启动工程报如下错误：
[com.alibaba.druid.pool.vendor.MySqlValidConnectionChecker]-[WARN] Unexpected error in ping
Caused by: java.lang.Illeg...]]></description><category></category></item><item><title><![CDATA[vert.x笔记：6.vert.x集群化部署]]></title><link>https://blog.youkuaiyun.com/dengchen2166/article/details/101872963</link><guid>https://blog.youkuaiyun.com/dengchen2166/article/details/101872963</guid><author>dengchen2166</author><pubDate>Fri, 09 Jun 2017 11:04:00 +0800</pubDate><description><![CDATA[原文及更多文章请见个人博客：http://heartlifes.com
vert.x支持集群化部署，默认封装使用的是一个叫Hazelcast的框架，从官方github上看到的开发进度表示，3.1可能会引入比较大众点的zookeeper作为集群的协作框架。
demo工程还是使用第5章中的dubbo服务demo代码
修改启动类：
package com.heartlifes.vertx.de...]]></description><category></category></item><item><title><![CDATA[vert.x笔记：5.vert.x集成dubbo服务]]></title><link>https://blog.youkuaiyun.com/dengchen2166/article/details/101872954</link><guid>https://blog.youkuaiyun.com/dengchen2166/article/details/101872954</guid><author>dengchen2166</author><pubDate>Fri, 09 Jun 2017 11:04:00 +0800</pubDate><description><![CDATA[原文及更多文章请见个人博客：http://heartlifes.com
vert.x
基础介绍：
dubbo是阿里巴巴内部的rpc远程调用框架，和spring无缝对接，自带loadbalance，是用来搭建soa服务架构的利器，可惜听说在阿里内部斗争中，已经被hsf干掉了。但是，对于我们这种小企业来说，dubbo还是搭建高可用服务的不二选择。dubbo官方地址：http://dubbo....]]></description><category></category></item><item><title><![CDATA[vert.x笔记：4.vert.x中调用spring服务]]></title><link>https://blog.youkuaiyun.com/dengchen2166/article/details/101872961</link><guid>https://blog.youkuaiyun.com/dengchen2166/article/details/101872961</guid><author>dengchen2166</author><pubDate>Fri, 09 Jun 2017 11:03:00 +0800</pubDate><description><![CDATA[原文及更多文章请见个人博客：http://heartlifes.com
evenbus事件总线介绍：
在介绍怎么在vert.x中集成spring服务前，我们要先简单介绍一下什么是vert.x的事件总线。
eventbus是vert.x的神经总线，每个vert.x实例维护了一个事件总线。简单来说，vert.x有以下几个概念
寻址：
vert.x将事件消息，通过地址发送到后端的处理程序上。一...]]></description><category></category></item><item><title><![CDATA[vert.x笔记：3.使用vert.x发布restful接口]]></title><link>https://blog.youkuaiyun.com/dengchen2166/article/details/101872952</link><guid>https://blog.youkuaiyun.com/dengchen2166/article/details/101872952</guid><author>dengchen2166</author><pubDate>Fri, 09 Jun 2017 11:03:00 +0800</pubDate><description><![CDATA[原文及更多文章请见个人博客：http://heartlifes.com
vert.x重要概念介绍：
在第2偏笔记中，我们写了第一个vert.x的hello world代码，这里，我们把代码中用到的几个重要概念解释下。
Vertx基类：
Vertx类，是所有vert.x代码的入口，官方代码注释为：
The entry point into the Vert.x Core API.
即该类是...]]></description><category></category></item><item><title><![CDATA[vert.x笔记：2.hello vert.x--第一个vert.x hello world工程]]></title><link>https://blog.youkuaiyun.com/dengchen2166/article/details/101872959</link><guid>https://blog.youkuaiyun.com/dengchen2166/article/details/101872959</guid><author>dengchen2166</author><pubDate>Fri, 09 Jun 2017 11:02:00 +0800</pubDate><description><![CDATA[原文及更多文章请见个人博客：http://heartlifes.com
假设：
本文及以下系列文章，假设你已经对jdk1.8新特性中的函数式编程及lambda匿名函数有一定了解，并会熟练使用maven。
开发环境配置：
使用最新版的vert.x 3.0，需要安装jdk1.8
maven需要3.0以上版本，推荐直接使用最新版
jdk及maven如何配置，参考百度教程
ide需求：myecl...]]></description><category></category></item><item><title><![CDATA[vert.x笔记：1.vert.x介绍]]></title><link>https://blog.youkuaiyun.com/dengchen2166/article/details/101872950</link><guid>https://blog.youkuaiyun.com/dengchen2166/article/details/101872950</guid><author>dengchen2166</author><pubDate>Fri, 09 Jun 2017 11:02:00 +0800</pubDate><description><![CDATA[原文及更多文章请见个人博客：http://heartlifes.com
直接转载csdn上的文章：http://www.youkuaiyun.com/article/2015-05-20/2824733-Java
Vert.x简介
在Java20周年之际，Java用户对Java的抱怨与日俱增，比如内存管理、笨重的JavaEE等。而Java依然在TIOBE编程语言排行榜上艰难的维持第一名的位置，随着一...]]></description><category></category></item><item><title><![CDATA[druid监控配置及sql注入防火墙配置]]></title><link>https://blog.youkuaiyun.com/dengchen2166/article/details/101872944</link><guid>https://blog.youkuaiyun.com/dengchen2166/article/details/101872944</guid><author>dengchen2166</author><pubDate>Fri, 09 Jun 2017 11:02:00 +0800</pubDate><description><![CDATA[原文及更多文章请见个人博客：http://heartlifes.com
druid是阿里巴巴开发的为监控而生的数据库连接池，可以非常直观的看到当前应用的数据源、sql执行情况、sql防火墙、web应用、uri监控、spring接口调用监控等。
数据源配置：
&lt;bean id="readAccount" class="com.alibaba.druid.pool.DruidDataS...]]></description><category></category></item><item><title><![CDATA[常用linux日志查询命令]]></title><link>https://blog.youkuaiyun.com/dengchen2166/article/details/101872945</link><guid>https://blog.youkuaiyun.com/dengchen2166/article/details/101872945</guid><author>dengchen2166</author><pubDate>Fri, 09 Jun 2017 11:01:00 +0800</pubDate><description><![CDATA[原文及更多文章请见个人博客：http://heartlifes.com
1.查看实时日志：
tail -f nohup.out
2.分页查看所有日志：
cat nohup.out | more
4.分页查看前N行日志：
tail -n 1000 nohup.out | more
5.查看实时日志并检索关键字：
tail -f nohup.out | grep "关键字"
6.检索日志，并...]]></description><category></category></item><item><title><![CDATA[cas3.5.2集群化部署及定制开发]]></title><link>https://blog.youkuaiyun.com/dengchen2166/article/details/101872943</link><guid>https://blog.youkuaiyun.com/dengchen2166/article/details/101872943</guid><author>dengchen2166</author><pubDate>Fri, 09 Jun 2017 11:01:00 +0800</pubDate><description><![CDATA[原文及更多文章请见个人博客：http://heartlifes.com
集群化方案：
1.tomcat集群共享session
2.持久化票根st及tgt
3.持久化service
4.修改ServiceManager，从内存共享改为redis共享
tomcat集群共享session
之所以要共享session，是因为cas使用了spring-webflow，而webflow使用sessi...]]></description><category></category></item><item><title><![CDATA[Vmware虚拟机磁盘lvm扩容]]></title><link>https://blog.youkuaiyun.com/dengchen2166/article/details/101872942</link><guid>https://blog.youkuaiyun.com/dengchen2166/article/details/101872942</guid><author>dengchen2166</author><pubDate>Fri, 09 Jun 2017 11:01:00 +0800</pubDate><description><![CDATA[原文及更多文章请见个人博客：http://heartlifes.com
背景：
vmware中开虚拟机的时候是直接拷贝镜像的，结果原有磁盘大小不够，于是另外置备了一块磁盘，但是新置备的磁盘不能直接挂上原来的lvm，故需要扩容lvm
扩容lvm步骤：
1.查看硬盘情况
fdisk -l
2.找到新挂载的磁盘，并做分区
fdisk /dev/sda
The number of cylinde...]]></description><category></category></item><item><title><![CDATA[centos下安装，简单配置redis]]></title><link>https://blog.youkuaiyun.com/dengchen2166/article/details/101872953</link><guid>https://blog.youkuaiyun.com/dengchen2166/article/details/101872953</guid><author>dengchen2166</author><pubDate>Fri, 09 Jun 2017 11:00:00 +0800</pubDate><description><![CDATA[原文及更多文章请见个人博客：http://heartlifes.com
下载：
wget http://download.redis.io/releases/redis-3.0.2.tar.gz
解压：
tar xzvf redis-3.0.2.tar.gz
安装编译环境：
yum install -y gcc
编译安装依赖：
进入redis的deps目录
编译安装hiredis：
ma...]]></description><category></category></item><item><title><![CDATA[spring-oauth集群负载的cas单点登出问题]]></title><link>https://blog.youkuaiyun.com/dengchen2166/article/details/101872941</link><guid>https://blog.youkuaiyun.com/dengchen2166/article/details/101872941</guid><author>dengchen2166</author><pubDate>Fri, 09 Jun 2017 11:00:00 +0800</pubDate><description><![CDATA[原文及更多文章请见个人博客：http://heartlifes.com
背景：
前端有N台由spring-oauth，spring-cas搭建的提供oauth2服务的服务器，后端有单台cas搭建的sso单点登录服务器，通过nginx的iphash保证用户在同一会话工程中始终登录在固定的一台oauth2服务器上。
现象：
cas3.5默认不支持集群环境下的单点登出，导致当用户使用oauth...]]></description><category></category></item></channel></rss>