<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[excellent_L的博客]]></title><description><![CDATA[]]></description><link>https://blog.youkuaiyun.com/excellent_L</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; excellent_L]]></copyright><item><title><![CDATA[MYSQL数据库的主从切换]]></title><link>https://blog.youkuaiyun.com/excellent_L/article/details/87966698</link><guid>https://blog.youkuaiyun.com/excellent_L/article/details/87966698</guid><author>excellent_L</author><pubDate>Wed, 27 Feb 2019 13:37:49 +0800</pubDate><description><![CDATA[一、MHA简介

  MHA（Master High Availability）目前在MySQL高可用方面是一个相对成熟的解决方案，它由日本DeNA公司的youshimaton（现就职于 Facebook公司）开发，是一套优秀的作为MySQL高可用性环境下故障切换和主从提升的高可用软件。在MySQL故障切换过程中，MHA能做到在 0~30秒之内自动完成数据库的故障切换操作，并且在进行故障切换的过程...]]></description><category></category></item><item><title><![CDATA[MYSQL数据库的读写分离]]></title><link>https://blog.youkuaiyun.com/excellent_L/article/details/87942883</link><guid>https://blog.youkuaiyun.com/excellent_L/article/details/87942883</guid><author>excellent_L</author><pubDate>Tue, 26 Feb 2019 19:30:29 +0800</pubDate><description><![CDATA[一.什么是读写分离
读写分离，基本的原理是让主数据库处理事务性增、改、删操作（INSERT、UPDATE、DELETE），而从数据库处理SELECT查询操作。数据库复制被用来把事务性操作导致的变更同步到集群中的从数据库。

二.数据库读写分离的配置

实验主机

172.25.254.4   server4   master

172.25.254.5   server5   slave

172...]]></description><category></category></item><item><title><![CDATA[MYSQL数据库的主从复制，基于gtid的主从复制，半同步复制和组复制]]></title><link>https://blog.youkuaiyun.com/excellent_L/article/details/87911275</link><guid>https://blog.youkuaiyun.com/excellent_L/article/details/87911275</guid><author>excellent_L</author><pubDate>Mon, 25 Feb 2019 12:03:48 +0800</pubDate><description><![CDATA[一.数据库的主从复制

原理：
master端产生一个binlogdump线程，slave端产生I/O线程和SQL线程
1.master节点上的binlogdump线程，在slave与其正常连接的情况下，将binlog发送到slave上。
2.slave节点上的I/O线程，通过读取master节点发送的内容，并将数据复制到本地的relaylog中。
3.slave节点上的SQL线程，读取relay...]]></description><category></category></item><item><title><![CDATA[nginx的配置详解]]></title><link>https://blog.youkuaiyun.com/excellent_L/article/details/87868555</link><guid>https://blog.youkuaiyun.com/excellent_L/article/details/87868555</guid><author>excellent_L</author><pubDate>Sun, 24 Feb 2019 22:26:29 +0800</pubDate><description><![CDATA[一、nginx配置文件语法高亮显示

首先安装nginx，在官网下载nginx安装包,解压


[root@server1 ~]# tar zxf nginx-1.14.2.tar.gz 

安装nginx编译需要的依赖


[root@server1 ~]# yum install -y gcc pcre-devel zlib-devel

隐藏版本号，关闭debug日志

编译安装


[ro...]]></description><category></category></item><item><title><![CDATA[封装rhel7.3虚拟机]]></title><link>https://blog.youkuaiyun.com/excellent_L/article/details/87867608</link><guid>https://blog.youkuaiyun.com/excellent_L/article/details/87867608</guid><author>excellent_L</author><pubDate>Thu, 21 Feb 2019 20:58:35 +0800</pubDate><description><![CDATA[一、官方下载rhel7.3的镜像

安装rhel7.3虚拟机



二、配置网路



三、配置yum源



四、安装常用的软件和



五、关闭火墙开机不启动，关闭selinux，关闭NetworkManager

NetworkManager disable stop



fireword       stop   disable


selinux        disable



六...]]></description><category></category></item><item><title><![CDATA[HAproxy的负载均衡，以及基于TCP和HTTP的应用程序代理]]></title><link>https://blog.youkuaiyun.com/excellent_L/article/details/87792013</link><guid>https://blog.youkuaiyun.com/excellent_L/article/details/87792013</guid><author>excellent_L</author><pubDate>Wed, 20 Feb 2019 16:08:30 +0800</pubDate><description><![CDATA[
HAProxy是一个使用C语言编写的自由及开放源代码软件[1]，其提供高可用性、负载均衡，以及基于TCP和HTTP的应用程序代理。
HAProxy特别适用于那些负载特大的web站点，这些站点通常又需要会话保持或七层处理。HAProxy运行在当前的硬件上，完全可以支持数以万计的并发连接。并且它的运行模式使得它可以很简单安全的整合进您当前的架构中，同时可以保护你的web服务器不被暴露到网络上。


...]]></description><category></category></item><item><title><![CDATA[nginx负载均衡]]></title><link>https://blog.youkuaiyun.com/excellent_L/article/details/87781561</link><guid>https://blog.youkuaiyun.com/excellent_L/article/details/87781561</guid><author>excellent_L</author><pubDate>Wed, 20 Feb 2019 12:48:09 +0800</pubDate><description><![CDATA[nginx作为一个反向代理器和负载均衡器，它的优点体现在许多方面，例如nginx 高并发， 配置文件简单，成本低 ，支持 rewirte及健康检查。

1.安装nginx-1.15.7并解压


[root@server1 ~]# ls
nginx-1.15.7.tar.gz
[root@server1 ~]# tar zxf nginx-1.15.7.tar.gz 

2.去掉nginx的版本号...]]></description><category></category></item><item><title><![CDATA[memcache在tomcat中实现session交叉存放]]></title><link>https://blog.youkuaiyun.com/excellent_L/article/details/87652510</link><guid>https://blog.youkuaiyun.com/excellent_L/article/details/87652510</guid><author>excellent_L</author><pubDate>Mon, 18 Feb 2019 23:41:32 +0800</pubDate><description><![CDATA[一.在server上安装jdk和apache-tomcat

1.解压到指定目录/usr/local/


[root@server1 ~]# tar zxf apache-tomcat-7.0.37.tar.gz -C /usr/local/
[root@server1 ~]# tar zxf jdk-7u79-linux-x64.tar.gz -C /usr/local/
[root@serv...]]></description><category></category></item><item><title><![CDATA[OpenResty实现LNMP的缓存前移（到达nginx前端层面）]]></title><link>https://blog.youkuaiyun.com/excellent_L/article/details/87649579</link><guid>https://blog.youkuaiyun.com/excellent_L/article/details/87649579</guid><author>excellent_L</author><pubDate>Mon, 18 Feb 2019 22:33:08 +0800</pubDate><description><![CDATA[一.什么是OpenResty

OpenResty® 是一个基于 Nginx 与 Lua 的高性能 Web 平台，用于方便地搭建能够处理超高并发、扩展性极高的动态 Web 应用、Web 服务和动态网关。通过汇聚各种设计精良的 Nginx 模块，从而将 Nginx 有效地变成一个强大的通用 Web 应用平台。这样，Web 开发人员和系统工程师可以使用 Lua 脚本语言调动 Nginx 支持的各种 C...]]></description><category></category></item><item><title><![CDATA[memcache对php页面访问的加速]]></title><link>https://blog.youkuaiyun.com/excellent_L/article/details/87645300</link><guid>https://blog.youkuaiyun.com/excellent_L/article/details/87645300</guid><author>excellent_L</author><pubDate>Mon, 18 Feb 2019 21:51:43 +0800</pubDate><description><![CDATA[一、Memcache简介

内存缓存技术：memcache是实现php语言 对内存 进行操作的中间介质

MemCache的工作流程如下：先检查客户端的请求数据是否在memcached中，如有，直接把请求数据返回，不再对数据库进行任何操作；如果请求的数据不在memcached中，就去查数据库，把从数据库中获取的数据返回给客户端，同时把数据缓存一份到 memcached中（memcached客户端不...]]></description><category></category></item><item><title><![CDATA[LNMP架构的简单应用-----部署论坛]]></title><link>https://blog.youkuaiyun.com/excellent_L/article/details/87642755</link><guid>https://blog.youkuaiyun.com/excellent_L/article/details/87642755</guid><author>excellent_L</author><pubDate>Mon, 18 Feb 2019 20:48:31 +0800</pubDate><description><![CDATA[在上篇博客中我们进行了LNMP架构中MYSQL，PHP和nginx的源码编译，并对其进行简单的配置和初始化，现在我们可以来看看如何将三者联系起来，部署一个最简单的论坛。

1.下载论坛php代码，解压代码，并将其放在nginx的默认发布目录/usr/local/lnmp/nginx/html/下.


[root@server1 ~]# yum install -y unzip    # 安装解压...]]></description><category></category></item><item><title><![CDATA[LNMP架构搭建-----源码编译(MYSQL,PHP,nginx)]]></title><link>https://blog.youkuaiyun.com/excellent_L/article/details/87535326</link><guid>https://blog.youkuaiyun.com/excellent_L/article/details/87535326</guid><author>excellent_L</author><pubDate>Mon, 18 Feb 2019 20:10:42 +0800</pubDate><description><![CDATA[LNMP代表的就是：Linux系统下Nginx+MySQL+PHP这种网站服务器架构。

(1) Linux是一类Unix计算机操作系统的统称，是目前最流行的免费操作系统。代表版本有：debian、centos、ubuntu、fedora、gentoo等。
(2)Nginx是一个高性能的HTTP和反向代理服务器，也是一个IMAP/POP3/SMTP代理服务器。
(3)Mysql是一个小型关系型数据...]]></description><category></category></item><item><title><![CDATA[LVS三种工作模式（DR,TUN,NAT）以及优缺点]]></title><link>https://blog.youkuaiyun.com/excellent_L/article/details/87549891</link><guid>https://blog.youkuaiyun.com/excellent_L/article/details/87549891</guid><author>excellent_L</author><pubDate>Sun, 17 Feb 2019 19:07:48 +0800</pubDate><description><![CDATA[一、NAT模式（VS-NAT）

原理：就是把客户端发来的数据包的IP头的目的地址，在负载均衡器上换成其中一台RS的IP地址，并发至此RS来处理,RS处理完成后把数据交给经过负载均衡器,负载均衡器再把数据包的原IP地址改为自己的IP，将目的地址改为客户端IP地址即可。

优点：集群中的物理服务器可以使用任何支持TCP/IP操作系统它只需要一个 IP 地址配置在调度器上，服务器组可以用私有的 IP ...]]></description><category></category></item><item><title><![CDATA[RHCS (高可用)]]></title><link>https://blog.youkuaiyun.com/excellent_L/article/details/87469802</link><guid>https://blog.youkuaiyun.com/excellent_L/article/details/87469802</guid><author>excellent_L</author><pubDate>Sun, 17 Feb 2019 14:45:15 +0800</pubDate><description><![CDATA[一、集群

        是指一组相互独立的计算机，利用高速通信网络组成的一个较大的计算机服务系统，每个集群节点都是运行各自服务的独立服务器，这些服务器之间可以彼此通信，协同向用户提供应用程序，系统资源和数据，并以单一系统的模式加以管理。

二、集群优点

高性能
	价格有效性
	可伸缩性
	高可用
	透明性
	可管理
	可编程
三、RHCS 集群组成

1.集群架构管理器

        这...]]></description><category></category></item><item><title><![CDATA[LVS（DR模式）+Keepalived（高可用）]]></title><link>https://blog.youkuaiyun.com/excellent_L/article/details/87388409</link><guid>https://blog.youkuaiyun.com/excellent_L/article/details/87388409</guid><author>excellent_L</author><pubDate>Fri, 15 Feb 2019 23:16:15 +0800</pubDate><description><![CDATA[
	Keepalived
	
	    keepalived观其名可知，保持存活，在网络里面就是保持在线了，也就是所谓的高可用或热备，用来防止单点故障(单点故障是指一旦某一点出现故障就会导致整个系统架构的不可用)的发生
	    主要提供 loadbalancing（负载均衡）和 high-availability（高可用）功能
	    负载均衡实现需要依赖Linux的虚拟服务内核模块（ipvs...]]></description><category></category></item><item><title><![CDATA[LVS的三种 IP 负载均衡技术的图解及优缺点（DR，TUN，NAT）]]></title><link>https://blog.youkuaiyun.com/excellent_L/article/details/87292760</link><guid>https://blog.youkuaiyun.com/excellent_L/article/details/87292760</guid><author>excellent_L</author><pubDate>Thu, 14 Feb 2019 19:32:58 +0800</pubDate><description><![CDATA[一、NAT模式

    网络地址转换 Network address translation
	    client -&amp;gt; vs -&amp;gt; Rs -&amp;gt;vs -&amp;gt;client
	    服务器可以运行任何支持 TCP/IP 的操作系统
	    只需要一个 IP 地址配置在调度器上,服务器组可以用私有的 IP 地址。
	    伸缩能力有限, 当服务器结点数目升到 20 时,调...]]></description><category></category></item><item><title><![CDATA[LVS 负载均衡的调度算法]]></title><link>https://blog.youkuaiyun.com/excellent_L/article/details/87291114</link><guid>https://blog.youkuaiyun.com/excellent_L/article/details/87291114</guid><author>excellent_L</author><pubDate>Thu, 14 Feb 2019 19:01:56 +0800</pubDate><description><![CDATA[LVS 的负载调度算法 在内核中的连接调度算法上,IPVS 已实现了以下八种调度算法一、轮叫调度(Round­Robin Scheduling )
（1）轮叫的方式依次将请求调度不同的服务器
（2）算法的优点是其简洁性,它无需记录当前所有连接的状态,所以它是一种无状态调度。

二、加权轮叫调度(Weighted Round­Robin Scheduling )
（1）解决服务器间性能不一的情况,
...]]></description><category></category></item><item><title><![CDATA[LVS模式三：NAT网络地址转换模式]]></title><link>https://blog.youkuaiyun.com/excellent_L/article/details/87289805</link><guid>https://blog.youkuaiyun.com/excellent_L/article/details/87289805</guid><author>excellent_L</author><pubDate>Thu, 14 Feb 2019 18:49:58 +0800</pubDate><description><![CDATA[NAT模式

client -&amp;gt; vs（转换ip） -&amp;gt; Rs -&amp;gt;vs（转换ip） -&amp;gt;client

    在一组服务器前有一个调度器，它们是通过Switch/HUB相连接的。这些服务器提供相同的网络服务、相同的内容，即不管请求被发送到哪一台服务器，执行结果是一样的。
	    VS/NAT 的优点是服务器可以运行任何支持 TCP/IP 的操作系统，它只需要一个 IP...]]></description><category></category></item><item><title><![CDATA[LVS模式二：TUN隧道模式]]></title><link>https://blog.youkuaiyun.com/excellent_L/article/details/87289119</link><guid>https://blog.youkuaiyun.com/excellent_L/article/details/87289119</guid><author>excellent_L</author><pubDate>Thu, 14 Feb 2019 18:37:22 +0800</pubDate><description><![CDATA[隧道模式

client -&amp;gt;vs -&amp;gt;Rs -&amp;gt; client

    IP隧道（IP tunneling）是将一个IP报文封装在另一个IP报文的技术，这可以使得目标为一个IP地址的数据报文能被封装和转发到另一个IP地址。
	    IP隧道技术亦称为IP封装技术（IP encapsulation）。
	    IP隧道主要用于移动主机和虚拟私有网络（Virtual Priv...]]></description><category></category></item><item><title><![CDATA[LVS模式一：DR模式及DR模式下的健康检查]]></title><link>https://blog.youkuaiyun.com/excellent_L/article/details/87276582</link><guid>https://blog.youkuaiyun.com/excellent_L/article/details/87276582</guid><author>excellent_L</author><pubDate>Thu, 14 Feb 2019 18:26:12 +0800</pubDate><description><![CDATA[LVS模式一：DR（Direct Routing）直接路由模式

client -&amp;gt; vs -&amp;gt; Rs -&amp;gt;client

DR模式下调度器和服务器组都必须在物理上有一个网卡通过不分段的局域网相连，即通过交换机或者高速的HUB相连，中间没有隔有路由器。
	VIP地址为调度器和服务器组共享，调度器配置的VIP地址是对外可见的，用于接收虚拟服务的请求报文
	所有的服务器把VIP地址配...]]></description><category></category></item></channel></rss>