<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[李胜]]></title><description><![CDATA[GIS，BIM，IOT]]></description><link>https://blog.csdn.net/leesmn</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; leesmn]]></copyright><item><title><![CDATA[Redis 分布式锁的正确实现方式]]></title><link>https://blog.csdn.net/leesmn/article/details/92849004</link><guid>https://blog.csdn.net/leesmn/article/details/92849004</guid><author>leesmn</author><pubDate>Wed, 19 Jun 2019 22:06:29 +0800</pubDate><description><![CDATA[前言

分布式锁一般有三种实现方式：1. 数据库乐观锁；2. 基于Redis的分布式锁；3. 基于ZooKeeper的分布式锁。本篇博客将介绍第二种方式，基于Redis实现分布式锁。虽然网上已经有各种介绍Redis分布式锁实现的博客，然而他们的实现却有着各种各样的问题，为了避免误人子弟，本篇博客将详细介绍如何正确地实现Redis分布式锁。

可靠性

首先，为了确保分布式锁可用，我们至少要确保锁的...]]></description><category></category></item><item><title><![CDATA[高可用实现方案lvs+keepalive]]></title><link>https://blog.csdn.net/leesmn/article/details/90763913</link><guid>https://blog.csdn.net/leesmn/article/details/90763913</guid><author>leesmn</author><pubDate>Tue, 04 Jun 2019 10:17:21 +0800</pubDate><description><![CDATA[keepalive简介：

负载均衡架构依赖于知名的IPVS内核模块，keepalive由一组检查器根据服务器的健康情况动态维护和管理服务器池。keepalive通过VRRP协议实现高可用架构。VRRP是路由灾备的实现基础。

LVS核心是调度器，所有的数据请求需要经过调度器进行调度转发。万一调度器发生故障，整个集群系统全部崩溃，所以需要keepalive实现集群系统的高可用。

部署两台或多...]]></description><category></category></item><item><title><![CDATA[使用Spring配置动态数据源实现读写分离]]></title><link>https://blog.csdn.net/leesmn/article/details/90669476</link><guid>https://blog.csdn.net/leesmn/article/details/90669476</guid><author>leesmn</author><pubDate>Wed, 29 May 2019 13:43:36 +0800</pubDate><description><![CDATA[首先是配置数据源



&lt;!--读数据源配置--&gt;
&lt;bean id="readDataSource" class="com.alibaba.druid.pool.DruidDataSource" init-method="init"destroy-method="close"&gt;
//配置省略
&lt;/bean&gt;

&lt;!--写数据源配置--&gt;
&lt;b...]]></description><category></category></item><item><title><![CDATA[nginx+tomcat做负载均衡时Session共享验证过程]]></title><link>https://blog.csdn.net/leesmn/article/details/79834911</link><guid>https://blog.csdn.net/leesmn/article/details/79834911</guid><author>leesmn</author><pubDate>Fri, 06 Apr 2018 17:42:23 +0800</pubDate><description><![CDATA[nginx 作为目前最流行的开源反向代理HTTP Server，用于实现资源缓存、web server负载均衡等功能，由于其轻量级、高性能、高可靠等特点在互联网项目中有着非常普遍的应用，相关概念网上有丰富的介绍。分布式web server集群部署后需要实现session共享，针对 tomcat 服务器的实现方案多种多样，比如 tomcat cluster session 广播、nginx IP h...]]></description><category></category></item><item><title><![CDATA[三级联动前端以及接口]]></title><link>https://blog.csdn.net/leesmn/article/details/79414899</link><guid>https://blog.csdn.net/leesmn/article/details/79414899</guid><author>leesmn</author><pubDate>Thu, 01 Mar 2018 17:13:01 +0800</pubDate><description><![CDATA[1、html部分

    &amp;lt;div class=&quot;form-group&quot;&amp;gt;
        &amp;lt;label class=&quot;col-sm-2 control-label&quot;&amp;gt;地区：&amp;lt;/label&amp;gt;
        &amp;lt;div class=&quot;col-sm-5&quot;&amp;gt;

            &amp;lt;div class=&quot;col-s]]></description><category></category></item><item><title><![CDATA[部署BIMserver到服务器]]></title><link>https://blog.csdn.net/leesmn/article/details/78394859</link><guid>https://blog.csdn.net/leesmn/article/details/78394859</guid><author>leesmn</author><pubDate>Mon, 30 Oct 2017 17:03:42 +0800</pubDate><description><![CDATA[在github上下载下来的war包，直接放到tomcat里是无法完成bimwerver服务安装的过程的。一般都卡在网络检测上，可是本机网络好好的，为什么就网络检测不通过呢。看了代码才知道，源码里检测网络是通过访问google来检测的，由于被墙的原因，自然就被卡死在这一步了。为此改了这部分，重新编译了war包供大家使用。

新下载地址：bimserver-1.5.90

至于有的朋友所不能用。可能是...]]></description><category></category></item><item><title><![CDATA[用 Certbot 一键升级你的网站为 Https]]></title><link>https://blog.csdn.net/leesmn/article/details/78084865</link><guid>https://blog.csdn.net/leesmn/article/details/78084865</guid><author>leesmn</author><pubDate>Mon, 25 Sep 2017 14:39:28 +0800</pubDate><description><![CDATA[小站以前采用的是 StartSSL 的 https 证书，但是 Mozilla 封杀 StartSSL 后一直没有换。前几天终于被 Chrome 报不安全了，于是换成了 Let’s
 Encrypt。

但是 Let’s Encrypt 证书只有90天的有效期，有没有什么便捷的方法一键生成证书呢？答案是 Certbot。Certbot 真的是便捷，不用去 Let’s Encrypt 注册账号]]></description><category></category></item><item><title><![CDATA[CentOS7增加或修改SSH端口号]]></title><link>https://blog.csdn.net/leesmn/article/details/77930043</link><guid>https://blog.csdn.net/leesmn/article/details/77930043</guid><author>leesmn</author><pubDate>Mon, 11 Sep 2017 10:00:22 +0800</pubDate><description><![CDATA[前言：开启某服务或软件的端口，要从该服务或软件监听的端口（多以修改配置文件为主），SeLinux和防火墙（FireWall）的安全策略下手



下面进入主题，如果有什么问题请查看下面的补充栏：

第一步：修改SSH配置文件（注意是sshd_config而不是ssh_config，多了个d）





[plain] view
 plain copy




]]></description><category></category></item><item><title><![CDATA[Intellij idea远程debug连接tomcat，实现单步调试]]></title><link>https://blog.csdn.net/leesmn/article/details/77878348</link><guid>https://blog.csdn.net/leesmn/article/details/77878348</guid><author>leesmn</author><pubDate>Thu, 07 Sep 2017 10:42:37 +0800</pubDate><description><![CDATA[web项目部署到tomcat上之后，有时需要打断点单步调试，如果用的是Intellij idea，可以通过如下方法实现：

开启debug端口，启动tomcat

以tomcat7.0.75为例，打开bin目录下的catalina.bat文件，如下图，可以看到默认的debug端口是8000，如果本地的8000已经被占用，请改成一个未占用的端口号：



在bin目录下执行命令cat]]></description><category></category></item><item><title><![CDATA[ubuntu 12.04 Server 上安装 nodejs， MongoDB]]></title><link>https://blog.csdn.net/leesmn/article/details/50814263</link><guid>https://blog.csdn.net/leesmn/article/details/50814263</guid><author>leesmn</author><pubDate>Sun, 06 Mar 2016 17:24:32 +0800</pubDate><description><![CDATA[1、安装NodeJS
# apt-get update
# apt-get install -y python-software-properties software-properties-common
# add-apt-repository ppa:chris-lea/node.js
# apt-get update
# apt-get install nodejs

2、安装]]></description><category></category></item><item><title><![CDATA[58同城数据库架构最佳实践]]></title><link>https://blog.csdn.net/leesmn/article/details/50578169</link><guid>https://blog.csdn.net/leesmn/article/details/50578169</guid><author>leesmn</author><pubDate>Mon, 25 Jan 2016 11:02:41 +0800</pubDate><description><![CDATA[数据库的基本概念

基本概念这一块，主要是让大家就一些数据库方面的概念达成一致。



首先是“单库”，最初的时候数据库都是这么玩的，几乎所有的业务都有这样的一个库。



接下来是“分片”，数据库的分片是解决数据量大的问题。如果数据量非常大，就要做水平切分，有一些数据库支持auto sharding。之前58同城也用过两年mongoDB，后来发现auto sharding功能]]></description><category></category></item><item><title><![CDATA[数据库水平切分的实现原理解析－－－分库，分表，主从，集群，负载均衡器]]></title><link>https://blog.csdn.net/leesmn/article/details/50498696</link><guid>https://blog.csdn.net/leesmn/article/details/50498696</guid><author>leesmn</author><pubDate>Mon, 11 Jan 2016 17:55:31 +0800</pubDate><description><![CDATA[第1章  引言

随着互联网应用的广泛普及，海量数据的存储和访问成为了系统设计的瓶颈问题。对于一个大型的 互联网应用，每天几十亿的PV无疑对数据库造成了相当高的负载。对于系统的稳定性和扩展性造成了极大的问题。通过数据切分来提高网站性能，横向扩展数据层 已经成为架构研发人员首选的方式。水平切分数据库，可以降低单台机器的负载，同时最大限度的降低了了宕机造成的损失。通过负载均衡策略，有效的降低了单台]]></description><category></category></item><item><title><![CDATA[ubuntu SVN server配置]]></title><link>https://blog.csdn.net/leesmn/article/details/50058301</link><guid>https://blog.csdn.net/leesmn/article/details/50058301</guid><author>leesmn</author><pubDate>Thu, 26 Nov 2015 17:02:08 +0800</pubDate><description><![CDATA[风雨 
ubuntu SVN server配置


一、SVN安装
1.安装包
$ sudo apt-get install subversion
2.添加svn管理用户及subversion组
$ sudo adduser svnuser
$ sudo addgroup subversion
$ sudo addgroup svnuser subversion]]></description><category></category></item><item><title><![CDATA[OpenStreetMap/Google/百度/Bing瓦片地图服务(TMS)]]></title><link>https://blog.csdn.net/leesmn/article/details/49613591</link><guid>https://blog.csdn.net/leesmn/article/details/49613591</guid><author>leesmn</author><pubDate>Tue, 03 Nov 2015 11:13:48 +0800</pubDate><description><![CDATA[开源与成熟商业的瓦片地图服务（TMS  2  WMTS），都有如下共同的特性，基本成为了标准：

(1) 坐标系：WGS84

(2) 投影：墨卡托投影（Marcator，正轴等角圆柱投影）



--------------------------------------------



注：均为弧度。

(3) 当经度范围在[-180,180]，投影为正方形时，纬]]></description><category></category></item><item><title><![CDATA[AudioRecord的raw转8位wav或mp3]]></title><link>https://blog.csdn.net/leesmn/article/details/49179685</link><guid>https://blog.csdn.net/leesmn/article/details/49179685</guid><author>leesmn</author><pubDate>Fri, 16 Oct 2015 15:49:58 +0800</pubDate><description><![CDATA[AudioRecord在android设备8位是不一样支持，对于有时需要和其他设备进行传输(只能接受8位)也为了压缩等问题，不得不把16位的原数据进行转换。
       AudioRecord的具体使用办法就不粘出来了，度娘那里有不少。
       1.16位数据转8位数据  这里得到8位wav
        public void copyWaveFile() {
        ]]></description><category></category></item><item><title><![CDATA[OpenLayers学习--加载ArcGIS缓存]]></title><link>https://blog.csdn.net/leesmn/article/details/48520787</link><guid>https://blog.csdn.net/leesmn/article/details/48520787</guid><author>leesmn</author><pubDate>Thu, 17 Sep 2015 13:33:23 +0800</pubDate><description><![CDATA[数据准备
使用ArcGIS发布地图，并切图得到松散的缓存瓦片数据，一般存储路径为：C:\arcgisserver\directories\arcgiscache
使用ArcGIS10.2之前的ArcGIS Server数据目录可能不一样，请自己找到arcgiscache 文件夹。
本实例使用的缓存配置如下图：


发布数据
本步骤主要目的是将ArcGIS缓存的瓦片发布的到服务器上，使]]></description><category></category></item><item><title><![CDATA[geoserver+openlayers实例]]></title><link>https://blog.csdn.net/leesmn/article/details/48519277</link><guid>https://blog.csdn.net/leesmn/article/details/48519277</guid><author>leesmn</author><pubDate>Thu, 17 Sep 2015 11:16:11 +0800</pubDate><description><![CDATA[geowebcache为开源地图Title发布，在线服务．geowebcache会根据你的配置信息，把相应的地图图层切好图，存放在磁盘中，然后在使用openlayer加载地图服务的时候，把地图服务的地址指向geowebcache，geowebcache接收到这些请求后，会根据请求的位置和比例尺在切片目录中找到对应的瓦片，然后返回给你，省去了动态生成地图的过程，速度大幅度提高，而且由于请求的图片资源]]></description><category></category></item><item><title><![CDATA[GeoWebCache发布ArcGIS切片]]></title><link>https://blog.csdn.net/leesmn/article/details/48519143</link><guid>https://blog.csdn.net/leesmn/article/details/48519143</guid><author>leesmn</author><pubDate>Thu, 17 Sep 2015 11:09:32 +0800</pubDate><description><![CDATA[GeoServer的新版本集成了一个GeoWebCache，主要是对发布的WMS图层建立缓存切片，目前没有对于ArcGIS切片发布的支持。
独立版的GeoWebCache除了对WMS服务地图建立缓存外，还有对于ArcGIS切片发布的支持。
GeoWebCache独立版支持通过ArcGISServer 9.2、9.3和10.0生成的松散型瓦片缓存的发布。]]></description><category></category></item><item><title><![CDATA[Openlayers发布谷歌离线地图]]></title><link>https://blog.csdn.net/leesmn/article/details/48342641</link><guid>https://blog.csdn.net/leesmn/article/details/48342641</guid><author>leesmn</author><pubDate>Thu, 10 Sep 2015 14:09:18 +0800</pubDate><description><![CDATA[OpenLayers Tiled Map Service Example
    
    
	
html, body { overflow: hidden; 
			 padding: 0; 
			 height: 100%; 
			 width: 100%; 
			 font-family: 'Lucida Grande',Geneva,Arial,Verdana,sans-serif;]]></description><category></category></item><item><title><![CDATA[OpenLayers访问本地瓦片地图]]></title><link>https://blog.csdn.net/leesmn/article/details/48342119</link><guid>https://blog.csdn.net/leesmn/article/details/48342119</guid><author>leesmn</author><pubDate>Thu, 10 Sep 2015 13:29:30 +0800</pubDate><description><![CDATA[WMS无非就是通过http请求参数来获取瓦片，因此将常规的WMS请求改为对php页面的请求即可实现对本地图片的访问， 例如原来的WMS层代码这样写

layer = new OpenLayers.Layer.WMS( "OpenLayers WMS","http://vmap0.tiles.osgeo.org/wms/vmap0", {layers: 'basic'} );

现在将请求地]]></description><category></category></item></channel></rss>