<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[P_ning的博客]]></title><description><![CDATA[]]></description><link>https://blog.csdn.net/P_ning</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; P_ning]]></copyright><item><title><![CDATA[Mysql集群启动失败(IO异常)]]></title><link>https://blog.csdn.net/P_ning/article/details/121654692</link><guid>https://blog.csdn.net/P_ning/article/details/121654692</guid><author>P_ning</author><pubDate>Tue, 07 Dec 2021 08:59:07 +0800</pubDate><description><![CDATA[Mysql集群报IO异常]]></description><category></category></item><item><title><![CDATA[docker实现mysql主从复制]]></title><link>https://blog.csdn.net/P_ning/article/details/121625323</link><guid>https://blog.csdn.net/P_ning/article/details/121625323</guid><author>P_ning</author><pubDate>Tue, 30 Nov 2021 09:42:34 +0800</pubDate><description><![CDATA[sudo docker run --name mysql_write_1 -p 33061:3306 -e MYSQL_ROOT_PASSWORD=123456 -d mysql:5.7
sudo docker run --name mysql_read_1 -p 33062:3306 -e MYSQL_ROOT_PASSWORD=123456 -d mysql:5.7


[mysqld]
log-bin=slave-bin
server-id=2
# 设置需要复制的数据库(可设置多个)
binlog-d]]></description><category></category></item><item><title><![CDATA[Docker安装Centos并用SSH连接]]></title><link>https://blog.csdn.net/P_ning/article/details/121423245</link><guid>https://blog.csdn.net/P_ning/article/details/121423245</guid><author>P_ning</author><pubDate>Fri, 19 Nov 2021 15:28:45 +0800</pubDate><description><![CDATA[#下载centos7
docker pull centos:centos7
#创建运行
docker run -d -p 10022:22 --name testCentos --privileged=true centos:centos7 /usr/sbin/init
#进入
docker exec -it testCentos /bin/bash
#service安装
yum install initscripts  
#ifconfig安装
yum install net-tools.x86_64
#]]></description><category></category></item><item><title><![CDATA[修改docker镜像存储路径时候发现没办法修改]]></title><link>https://blog.csdn.net/P_ning/article/details/121422227</link><guid>https://blog.csdn.net/P_ning/article/details/121422227</guid><author>P_ning</author><pubDate>Fri, 19 Nov 2021 14:40:58 +0800</pubDate><description><![CDATA[Resources Advanced You are using the WSL 2 backend, so resource limits are 等......

这个是因为win10在高版本下，也就是有wsl子系统的情况下，安装会默认启用WSL2模式，而不是Hyper-V虚拟机模式，在前者模式下，默认存储目录在C盘，且设置中无法选择目录，但有个选项可以切换模式，切换模式后就可以切换目录了

关掉后就可以设置了


...]]></description><category></category></item><item><title><![CDATA[bash: passwd: command not found]]></title><link>https://blog.csdn.net/P_ning/article/details/121418451</link><guid>https://blog.csdn.net/P_ning/article/details/121418451</guid><author>P_ning</author><pubDate>Fri, 19 Nov 2021 11:16:03 +0800</pubDate><description><![CDATA[yum search passwd  //查找源文件
passwd.x86_64 : An utility for setting or changing passwords using PAM  //查找到的源 
yum install passwd.x86_64  //安装



]]></description><category></category></item><item><title><![CDATA[Fastdfs的简单搭建]]></title><link>https://blog.csdn.net/P_ning/article/details/120733599</link><guid>https://blog.csdn.net/P_ning/article/details/120733599</guid><author>P_ning</author><pubDate>Tue, 12 Oct 2021 22:15:29 +0800</pubDate><description><![CDATA[##安装系统环境
yum -y install zlib zlib-devel pcre pcre-devel gcc gcc-c++ openssl openssl-devel libevent libevent-devel perl unzip net-tools wget

##安装公共函数库
 cd libfastcommon/
./make.sh
./make.sh install

##安装fast dfs的master
cd ../
cd fastdfs-master/
./make.sh
.]]></description><category></category></item><item><title><![CDATA[Centos6.6的yum安装（主要为yum和python之间版本号记录）]]></title><link>https://blog.csdn.net/P_ning/article/details/120478624</link><guid>https://blog.csdn.net/P_ning/article/details/120478624</guid><author>P_ning</author><pubDate>Sat, 25 Sep 2021 22:16:10 +0800</pubDate><description><![CDATA[选进行卸载

##卸载指令
rpm -qa|grep python|xargs rpm -ev --allmatches --nodeps
whereis python |xargs rm -frv
whereis python 
rpm -qa|grep yum|xargs rpm -ev --allmatches --nodeps
whereis yum |xargs rm -frv


下载新的安装包并将下面的包分别放入对应的文件夹中

##创建安装包存放的文件夹
mkdir /usr/local/.]]></description><category></category></item><item><title><![CDATA[ZooKeeper的选举机制过程]]></title><link>https://blog.csdn.net/P_ning/article/details/119418248</link><guid>https://blog.csdn.net/P_ning/article/details/119418248</guid><author>P_ning</author><pubDate>Thu, 05 Aug 2021 15:22:27 +0800</pubDate><description><![CDATA[服务器 1 启动，发起一次选举。服务器 1 投自己一票。此时服务器 1 票数一票，
不够半数以上（3 票），选举无法完成，服务器 1 状态保持为 LOOKING；
服务器 2 启动，再发起一次选举。服务器 1 和 2 分别投自己一票并交换选票信息：
此时服务器 1 发现服务器 2 的 ID 比自己目前投票推举的（服务器 1）大，更改选票为推举服务器 2。此时服务器 1 票数 0 票，服务器 2 票数 2 票，没有半数以上结果，选举无法完成，
服务器 1，2 状态保持 LOOKING
服务器 3 启动，发..]]></description><category></category></item><item><title><![CDATA[ZooKeeper的基础配置信息]]></title><link>https://blog.csdn.net/P_ning/article/details/119417066</link><guid>https://blog.csdn.net/P_ning/article/details/119417066</guid><author>P_ning</author><pubDate>Thu, 05 Aug 2021 14:24:42 +0800</pubDate><description><![CDATA[zoo.cfg
# tickTime:服务器之间或客户端与服务器之间维持心跳的时间间隔，也就是每个tickTime时间就会发送一个心跳，时间单位为毫秒
tickTime=2000
# 集群中的Follower跟随者服务器与Leader领导者服务器之间初始连接时能容忍的最多心跳数（tickTime的数量），用它来限定集群中的Zookeeper服务器连接到Leader的时限
initLimit=10
# 集群中Leader与Follower之间的最大响应时间单位，假如响应超过syncLimit * tickTi]]></description><category></category></item><item><title><![CDATA[Elasticsearch分布式集群之单点集群]]></title><link>https://blog.csdn.net/P_ning/article/details/118931258</link><guid>https://blog.csdn.net/P_ning/article/details/118931258</guid><author>P_ning</author><pubDate>Tue, 20 Jul 2021 11:44:28 +0800</pubDate><description><![CDATA[单节点集群1. 单节点集群2. 故障转移3. 水平扩容如果我们想要扩容超过 6 个节点怎么办呢？
1. 单节点集群
我们在包含一个空节点的集群内创建名为 users 的索引，为了演示目的，我们将分配 3
个主分片和一份副本（每个主分片拥有一个副本分片）
	{
		 "settings" : {
			 "number_of_shards" : 3,
			 "number_of_replicas" : 1
		 }
	}



当前我们的集群是正常运行的，但是在硬件故障时有丢失数据的风险。
2. 故障转移
]]></description><category></category></item><item><title><![CDATA[ElasticSearch之核心概念]]></title><link>https://blog.csdn.net/P_ning/article/details/118928535</link><guid>https://blog.csdn.net/P_ning/article/details/118928535</guid><author>P_ning</author><pubDate>Tue, 20 Jul 2021 10:21:17 +0800</pubDate><description><![CDATA[ElasticSearch之核心概念1. 索引（Index）2. 类型（Type）3. 文档（Document）4. 字段（Field）5. 映射（Mapping）6 分片（Shards）7. 副本（Replicas）8. 分配（Allocation）9. 系统架构
1. 索引（Index）
一个索引就是一个拥有几分相似特征的文档的集合。比如说，你可以有一个客户数据的索引，另一个产品目录的索引，还有一个订单数据的索引。一个索引由一个名字来标识（必须全部是小写字母），并且当我们要对这个索引中的文档进行索引、搜]]></description><category></category></item><item><title><![CDATA[ElasticSearch之云服务器集群实战记录]]></title><link>https://blog.csdn.net/P_ning/article/details/118797644</link><guid>https://blog.csdn.net/P_ning/article/details/118797644</guid><author>P_ning</author><pubDate>Fri, 16 Jul 2021 15:06:05 +0800</pubDate><description><![CDATA[集群部署一、下载和安装ES软件二、修改每台服务器中ES的配置文件三、启动
一、下载和安装ES软件

官方下载压缩包

# 解压缩
tar -zxvf elasticsearch-7.8.0-linux-x86_64.tar.gz -C /opt/module
# 改名
mv elasticsearch-7.8.0 es-cluster


因为ES在使用时候回接收许多用户远程输入的脚本并且执行，为了系统安全，所以不支持root账户直接运行，我们一般创建一个专门的用户去执行ES。在ROOT用户下执行下面命令创]]></description><category></category></item><item><title><![CDATA[JVM学习目录]]></title><link>https://blog.csdn.net/P_ning/article/details/118760662</link><guid>https://blog.csdn.net/P_ning/article/details/118760662</guid><author>P_ning</author><pubDate>Thu, 15 Jul 2021 15:29:57 +0800</pubDate><description><![CDATA[学习目录链接1、什么是JVM2、类加载器
1、什么是JVM
什么是JVM
2、类加载器
类加载器

]]></description><category></category></item><item><title><![CDATA[2、类加载器]]></title><link>https://blog.csdn.net/P_ning/article/details/118760604</link><guid>https://blog.csdn.net/P_ning/article/details/118760604</guid><author>P_ning</author><pubDate>Thu, 15 Jul 2021 15:28:17 +0800</pubDate><description><![CDATA[类加载器
简介
类加载器（ClassLoader）它负责加载class文件，class文件在文件开头有特定表示，并且ClassLoader只负责class文件的加载，至于是否可以运行，则由Execution Engine决定.。
例如以下案例，我们的Car.class文件被类加载器导入到jvm虚拟机中，然后加载并初始化后形成一个car的模板，我们通过这个模板进行实例化。

启动器分类


启动类加载器（Bootstrap）
主要负责加载jre中的最为基础、最为重要的类。例如$JAVA_HOME/jre、li]]></description><category></category></item><item><title><![CDATA[ElasticSearch之JAVA的API接口简单应用]]></title><link>https://blog.csdn.net/P_ning/article/details/118659008</link><guid>https://blog.csdn.net/P_ning/article/details/118659008</guid><author>P_ning</author><pubDate>Sun, 11 Jul 2021 20:12:50 +0800</pubDate><description><![CDATA[API接口简单应用索引文档添加插入查询更新删除
索引
package com.api.simply;

import org.apache.http.HttpHost;
import org.elasticsearch.action.admin.indices.delete.DeleteIndexRequest;
import org.elasticsearch.action.support.master.AcknowledgedResponse;
import org.elasticsearch.clie]]></description><category></category></item><item><title><![CDATA[ElasticSearch之HTTP请求的简单操作]]></title><link>https://blog.csdn.net/P_ning/article/details/118461330</link><guid>https://blog.csdn.net/P_ning/article/details/118461330</guid><author>P_ning</author><pubDate>Sun, 04 Jul 2021 21:27:28 +0800</pubDate><description><![CDATA[ElasticSearch的简单应用一、什么是ElasticSearch二、Elasticsearch入门1. 下载2.解压并启动3.通过9200访问服务4.可能导致启动失败的原因三、使用前必了解知识点1.什么是ESTful2.为什么要使用Postman3.数据格式4.正向索引和倒排索引5.常用的四种请求方式四、索引的操作1.创建索引2.获取索引的相关信息3.删除索引五、文档操作1.创建文档（自动生成id）2.创建文档（指定id）3.查询文档数据4. 修改文档数据六、删除文档七、条件查询1.单条件查询
一、]]></description><category></category></item><item><title><![CDATA[SpringCloud的搭建]]></title><link>https://blog.csdn.net/P_ning/article/details/117199474</link><guid>https://blog.csdn.net/P_ning/article/details/117199474</guid><author>P_ning</author><pubDate>Sun, 23 May 2021 19:52:28 +0800</pubDate><description><![CDATA[源码
SpringCloud笔记
Eureka的创建步骤（最终版为2021-5-23版本，每次提交对应下面的一个步骤）

创建一个Maven父工程，将项目使用工具的版本号和一些子模块常用的依赖添加到pom中
创建一个api工程里面写入常用的对象和方法
创建一个provider_dept_8081工程，导入api工程，并且实现一个基于ssm的crud服务
创建一个consumer_dept_8000工程，导入api工程，并且实现基于provider_dept_8081工程的Restful格式接口
Eureka]]></description><category></category></item><item><title><![CDATA[多线程]]></title><link>https://blog.csdn.net/P_ning/article/details/113407582</link><guid>https://blog.csdn.net/P_ning/article/details/113407582</guid><author>P_ning</author><pubDate>Fri, 21 May 2021 18:00:59 +0800</pubDate><description><![CDATA[一.程序、进程和线程这三种知识的基本概念
1、程序（program）
为了完成特定任务用某种语言编写的一组指令集合。级指一段静态代码，静态对象。
2、进程（process）

进程是程序的一次执行过程或是正在运行的一个程序，进程也是正在运行的程序的实例。
进程是一个动态的过程，它有着自身的产生、存在和消亡的过程（也就是生命周期）。
例如后台运行的QQ、游戏、输入法与杀毒软件等等各种软件。
进程作为资源分配的单位，系统在运行的时候会给每个进程分配不同的内存区域。

注意：程序是静态的，进程是动态的
3、线程（]]></description><category></category></item><item><title><![CDATA[正向代理和反向代理]]></title><link>https://blog.csdn.net/P_ning/article/details/116544210</link><guid>https://blog.csdn.net/P_ning/article/details/116544210</guid><author>P_ning</author><pubDate>Sat, 08 May 2021 21:44:50 +0800</pubDate><description><![CDATA[正向代理
概念
正向代理，意思是一个位于客户端和原始服务器(origin server)之间的服务器，为了从原始服务器取得内容，客户端向代理发送一个请求并指定目标(原始服务器)，然后代理向原始服务器转交请求并将获得的内容返回给客户端。客户端才能使用正向代理。
例子


案例一：国内是无法上谷歌服务的，如果实在要用到谷歌服务的话我们通常会使用的NPM，这个NPM服务器就是正向代理，谷歌服务器只知道这个NPM的服务器向他发出了请求，但是在背后使用NPM服务器的真实用户是谁谷歌是不知道的。



案例二：A、B、]]></description><category></category></item><item><title><![CDATA[Vue-Router]]></title><link>https://blog.csdn.net/P_ning/article/details/115495152</link><guid>https://blog.csdn.net/P_ning/article/details/115495152</guid><author>P_ning</author><pubDate>Wed, 07 Apr 2021 22:33:04 +0800</pubDate><description><![CDATA[Router的学习一、简介二、使用项目初始化1、模版页面跳转
一、简介
Vue Router 是 Vue.js 官方的路由管理器。它和 Vue.js 的核心深度集成，让构建单页面应用变得易如反掌。
包含的功能有：

嵌套的路由/视图表
模块化的、基于组件的路由配置
路由参数、查询、通配符
基于 Vue.js 过渡系统的视图过渡效果
细粒度的导航控制
带有自动激活的 CSS class 的链接
HTML5 历史模式或 hash 模式，在 IE9 中自动降级
自定义的滚动条行为
实际上用的最多的还是视图的跳转和]]></description><category></category></item></channel></rss>