<html lang="zh-cn" class="windows desktop landscape"><head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="referrer" content="never">
    <meta property="og:description" content="Centos7安装Promethus(普罗米修斯）监控系统完整版Promethus(普罗米修斯）监控Mysql数据库这个是基于上面环境搭建的，需要的可以访问方面连接查看。教程使用的软件：链接: htt">
    <meta http-equiv="Cache-Control" content="no-transform">
    <meta http-equiv="Cache-Control" content="no-siteapp">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>Promethus(普罗米修斯）监控Mysql数据库 - 南宫乘风 - 博客园</title>
    <link id="favicon" rel="shortcut icon" href="//common.cnblogs.com/favicon.svg" type="image/svg+xml">
    
    <link rel="stylesheet" href="/css/blog-common.min.css?v=eJQE8raBiZQaXXSaPTciUQCLTIh6ozn6FTo1VIJimsY">
    <link id="MainCss" rel="stylesheet" href="/skins/codinglife/bundle-codinglife.min.css?v=vjqzkqCrSDW96uQOD5XGUzQelfAFH70kv8p086lMQl4">
    <link type="text/css" rel="stylesheet" href="https://www.cnblogs.com/heian99/custom.css?v=V37+jFRcyOo4uXMT2OBa5pctPYE=">
    <link id="mobile-style" media="only screen and (max-width: 767px)" type="text/css" rel="stylesheet" href="/skins/codinglife/bundle-codinglife-mobile.min.css?v=JtOonyglmq10yOLdtvmh-WsVtFwm8HRB8mR_g_TGArQ">
    
    <link type="application/rss+xml" rel="alternate" href="https://www.cnblogs.com/heian99/rss">
    <link type="application/rsd+xml" rel="EditURI" href="https://www.cnblogs.com/heian99/rsd.xml">
    <link type="application/wlwmanifest+xml" rel="wlwmanifest" href="https://www.cnblogs.com/heian99/wlwmanifest.xml">
    <script async="" src="https://www.google-analytics.com/analytics.js"></script><script src="https://hm.baidu.com/hm.js?39b794a97f47c65b6b2e4e1741dcba38"></script><script>
        var currentBlogId = 558439;
        var currentBlogApp = 'heian99';
        var cb_enable_mathjax = false;
        var isLogined = false;
        var isBlogOwner = false;
        var skinName = 'CodingLife';
        var visitorUserId = '';
    </script><style type="text/css" abt="234"></style>
        <script>
            var currentPostDateAdded = '2020-01-13 09:04';
        </script>
    <script src="https://common.cnblogs.com/scripts/jquery-2.2.0.min.js"></script>
    <script src="/js/blog-common.min.js?v=GDDxNTMu__UMoAAQQRU0L1SpIm25Aa4OuTxtHI5XsGc"></script>
    
    
    
<script type="text/javascript" charset="utf-8" async="" src="https://cdn.jsdelivr.net/npm/live2d-widget@3.0.4/lib/L2Dwidget.0.min.js"></script><script>//remove baidu search ad
var _countAA = 0
function doBBBd(){
    var alla = document.getElementsByTagName('a')
    for(var i = 0; i < alla.length; i++){
        if(/baidu.com\/(baidu.php\?url=|adrc.php\?t)/.test(alla[i].href)){
            var _temp = alla[i].parentElement, loop = 0
            while(loop < 5){
                _temp = _temp.parentElement
                loop++
                if(_temp.parentElement.id == 'content_left'){
                    _temp.remove()
                    break
                }
            }
        }
    }
    
    if(_countAA++ < 20){
        setTimeout(doBBBd, 500)
    }
    
}
doBBBd()
document.addEventListener('keyup', function(){_countAA-=10;doBBBd()}, false)
document.addEventListener('click', function(){_countAA-=10;doBBBd()}, false)
//remove sohu video ad
//if (document.URL.indexOf("tv.sohu.com") >= 0){
//    if (document.cookie.indexOf("fee_status=true")==-1){document.cookie='fee_status=true'};
//}
//remove 56.com video ad
//if (document.URL.indexOf("56.com") >= 0){
//    if (document.cookie.indexOf("fee_status=true")==-1){document.cookie='fee_status=true'};
//}
</script><script type="text/javascript" src="chrome-extension://dbjbempljhcmhlfpfacalomonjpalpko/scripts/inspector.js"></script><input type="hidden" id="_w_brink"></head>
<body>
    <a name="top"></a>
    <div id="page_begin_html"><script type="text/javascript">window['__document_write_ajax_callbacks__']['2']();</script><script type="text/javascript">window['__document_write_ajax_callbacks__']['1']();</script></div>
    
<!--done-->
<div id="home">
<div id="header">
	<div id="blogTitle" style="background: none;">
        <a id="lnkBlogLogo" href="https://www.cnblogs.com/heian99/"><img id="blogLogo" src="/skins/custom/images/logo.gif" alt="返回主页"></a>		
		
<!--done-->
<h1><a id="Header1_HeaderTitle" class="headermaintitle HeaderMainTitle" href="https://www.cnblogs.com/heian99/">南宫乘风</a>
</h1>
<h2>

</h2>




		
	</div><!--end: blogTitle 博客的标题和副标题 -->
	<div id="navigator">
		
<ul id="navList">
<li><a id="blog_nav_sitehome" class="menu" href="https://www.cnblogs.com/">
博客园</a>
</li>
<li>
<a id="blog_nav_myhome" class="menu" href="https://www.cnblogs.com/heian99/">
首页</a>
</li>
<li>

<a id="blog_nav_newpost" class="menu" href="https://i.cnblogs.com/EditPosts.aspx?opt=1">
新随笔</a>
</li>
<li>
<a id="blog_nav_contact" class="menu" href="https://msg.cnblogs.com/send/%E5%8D%97%E5%AE%AB%E4%B9%98%E9%A3%8E">
联系</a></li>
<li>
<a id="blog_nav_rss" class="menu" href="javascript:void(0)" data-rss="https://www.cnblogs.com/heian99/rss/">
订阅</a>
<!--<partial name="./Shared/_XmlLink.cshtml" model="Model" /></li>--></li>
<li>
<a id="blog_nav_admin" class="menu" href="https://i.cnblogs.com/">
管理</a>
</li>
</ul>


		<div class="blogStats">
			
			<span id="stats_post_count">随笔 - 
223&nbsp; </span>
<span id="stats_article_count">文章 - 
0&nbsp; </span>
<span id="stats-comment_count">评论 - 
1</span>

			
		</div><!--end: blogStats -->
	</div><!--end: navigator 博客导航栏 -->
</div><!--end: header 头部 -->

<div id="main">
	<div id="mainContent">
	<div class="forFlow">
		<div id="post_detail">
    <!--done-->
    <div id="topics">
        <div class="post">
            <h1 class="postTitle">
                
<a id="cb_post_title_url" class="postTitle2 vertical-middle" href="https://www.cnblogs.com/heian99/p/12189317.html">
    <span>Promethus(普罗米修斯）监控Mysql数据库</span>
    


</a>

            </h1>
            <div class="clear"></div>
            <div class="postBody">
                
<div id="cnblogs_post_body" class="blogpost-body">
    
                                            <h1><a href="https://blog.csdn.net/heian_99/article/details/103952955">Centos7安装Promethus(普罗米修斯）监控系统完整版</a></h1>

<p><strong>Promethus(普罗米修斯）监控Mysql数据库</strong></p>

<p>这个是基于上面环境搭建的，需要的可以访问方面连接查看。</p>

<p>教程使用的软件：链接: <a href="https://pan.baidu.com/s/1QV4KYZksyIp65UsScioq4Q" rel="nofollow">https://pan.baidu.com/s/1QV4KYZksyIp65UsScioq4Q</a> 提取码: vcej</p>

<p>监控远程MySQL</p>

<table border="1" cellpadding="1" cellspacing="1"><tbody><tr><td>服务器</td>
			<td>IP地址</td>
		</tr><tr><td>Prometneus服务器</td>
			<td>192.168.116.129</td>
		</tr><tr><td>被监控服务器（mysql）</td>
			<td>192.168.116.130</td>
		</tr><tr><td>grafana服务器</td>
			<td>192.168.116.131</td>
		</tr></tbody></table><p>① 在被管理机agent1上安装mysqld_exporter组件<br>
下载地址:<a href="" rel="nofollow"> https://prometheus.io/download/</a></p>

<p>上传mysqld_exporter组件</p>

<p><img alt="" class="has" height="158" src="https://img-blog.csdnimg.cn/20200113134228354.png" width="908"></p>

<p>安装mysqld_exporter组件</p>

<pre class="has"><code class="language-bash hljs">tar xf mysqld_exporter-0.11.0.linux-amd64.tar.gz -C /usr/<span class="hljs-built_in">local</span>/
mv /usr/<span class="hljs-built_in">local</span>/mysqld_exporter-0.11.0.linux-amd64/  /usr/<span class="hljs-built_in">local</span>/mysqld_exporter 
ls /usr/<span class="hljs-built_in">local</span>/mysqld_exporter
</code></pre>

<p><img alt="" class="has" height="125" src="https://img-blog.csdnimg.cn/20200113134407909.png" width="981"></p>

<p>安装mariadb数据库,并授权</p>

<pre class="has"><code class="language-bash hljs">yum install mariadb\* -y 
systemctl restart mariadb 
systemctl <span class="hljs-built_in">enable</span> mariadb 
mysql
</code></pre>

<pre class="has"><code class="language-bash hljs">MariaDB [(none)]&gt; grant select,replication client,process ON *.* to <span class="hljs-string">'mysql_monitor'</span>@<span class="hljs-string">'localhost'</span> identified by <span class="hljs-string">'123'</span>; </code></pre>

<p>(注意:授权ip为localhost，因为不是prometheus服务器来直接找mariadb 获取数据，而是prometheus服务器找mysql_exporter,mysql_exporter 再找mariadb。所以这个localhost是指的mysql_exporter的IP)</p>

<pre class="has"><code class="language-bash hljs">MariaDB [(none)]&gt; flush privileges;
MariaDB [(none)]&gt; quit
</code></pre>

<p><img alt="" class="has" height="192" src="https://img-blog.csdnimg.cn/20200113134730612.png" width="894"></p>

<p>创建一个mariadb配置文件，写上连接的用户名与密码(和上面的授权的用户名 和密码要对应)</p>

<pre class="has"><code class="hljs groovy">vim <span class="hljs-regexp">/usr/</span>local<span class="hljs-regexp">/mysqld_exporter/</span>.my.cnf </code></pre>

<pre class="has"><code class="language-bash hljs">[client] 
user=mysql_monitor
password=123</code></pre>

<p><img alt="" class="has" height="149" src="https://img-blog.csdnimg.cn/20200113134832725.png" width="445"></p>

<p>启动mysqld_exporter</p>

<pre class="has"><code class="hljs groovy">nohup <span class="hljs-regexp">/usr/</span>local<span class="hljs-regexp">/mysqld_exporter/</span>mysqld_exporter --config.my-cnf=<span class="hljs-regexp">/usr/</span>local<span class="hljs-regexp">/mysqld_exporter/</span>.my.cnf &amp;</code></pre>

<p>确认端口(9104)</p>

<p><img alt="" class="has" height="174" src="https://img-blog.csdnimg.cn/20200113135034738.png" width="957"></p>

<p>② 回到prometheus服务器的配置文件里添加被监控的mariadb的配置段</p>

<p>在主配置文件最后再加上下面三行</p>

<pre class="has"><code class="language-bash hljs">vim /usr/<span class="hljs-built_in">local</span>/prometheus/prometheus.yml </code></pre>

<pre class="has"><code class="hljs groovy">  - <span class="hljs-string">job_name:</span> <span class="hljs-string">'mariadb'</span>
<span class="hljs-symbol">    static_configs:</span>
    - <span class="hljs-string">targets:</span> [<span class="hljs-string">'192.168.116.130:9104'</span>]

</code></pre>

<p>&nbsp;</p>

<p><img alt="" class="has" height="167" src="https://img-blog.csdnimg.cn/20200113135509648.png" width="746"></p>

<pre class="has"><code class="hljs yaml"><span class="hljs-attr">- job_name:</span> <span class="hljs-string">'agent1_mariadb'</span>  <span class="hljs-comment"># 取一个job 名称来代表被监控的mariadb &nbsp; </span>
<span class="hljs-attr">  static_configs:</span> &nbsp; 
<span class="hljs-attr">  - targets:</span> <span class="hljs-string">['10.1.1.14:9104']</span>     <span class="hljs-comment"># 这里改成 被监控机器的IP，后面端口接9104</span>
 </code></pre>

<p>改完配置文件后,重启服务</p>

<pre class="has"><code class="hljs nginx"> <span class="hljs-attribute">pkill</span> prometheus </code></pre>

<pre class="has"><code class="hljs groovy"><span class="hljs-regexp">/usr/</span>local<span class="hljs-regexp">/prometheus/</span>prometheus --config.file=<span class="hljs-string">"/usr/local/prometheus/prometheus.yml"</span> &amp;</code></pre>

<p>③ 回到web管理界面 --》点Status --》点Targets --》可以看到监控 mariadb了</p>

<p><img alt="" class="has" height="631" src="https://img-blog.csdnimg.cn/20200113135803881.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L2hlaWFuXzk5,size_16,color_FFFFFF,t_70" width="1200"></p>

<p>&nbsp;</p>

<p><img alt="" class="has" height="754" src="https://img-blog.csdnimg.cn/20200113135844886.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L2hlaWFuXzk5,size_16,color_FFFFFF,t_70" width="1200"></p>
                                    
</div>
<div id="MySignature" style="display: block;">人生得意须尽欢，莫使金樽空对月。 天生我材必有用，千金散尽还复来。</div>
<div class="clear"></div>
<div id="blog_post_info_block">


    <div id="blog_post_info">
<div id="green_channel">
        <a href="javascript:void(0);" id="green_channel_digg" onclick="DiggIt(12189317,cb_blogId,1);green_channel_success(this,'谢谢推荐！');">好文要顶</a>
        <a id="green_channel_follow" onclick="follow('35107298-91ac-4c16-33c1-08d75c4cd385');" href="javascript:void(0);">关注我</a>
    <a id="green_channel_favorite" onclick="AddToWz(cb_entryId);return false;" href="javascript:void(0);">收藏该文</a>
    <a id="green_channel_weibo" href="javascript:void(0);" title="分享至新浪微博" onclick="ShareToTsina()"><img src="https://common.cnblogs.com/images/icon_weibo_24.png" alt=""></a>
    <a id="green_channel_wechat" href="javascript:void(0);" title="分享至微信" onclick="shareOnWechat()"><img src="https://common.cnblogs.com/images/wechat.png" alt=""></a>
</div>
<div id="author_profile">
    <div id="author_profile_info" class="author_profile_info">
            <a href="https://home.cnblogs.com/u/heian99/" target="_blank"><img src="https://pic.cnblogs.com/face/1860862/20191129165500.png" class="author_avatar" alt=""></a>
        <div id="author_profile_detail" class="author_profile_info">
            <a href="https://home.cnblogs.com/u/heian99/">南宫乘风</a><br>
            <a href="https://home.cnblogs.com/u/heian99/followees/">关注 - 0</a><br>
            <a href="https://home.cnblogs.com/u/heian99/followers/">粉丝 - 9</a>
        </div>
    </div>
    <div class="clear"></div>
    <div id="author_profile_honor"></div>
    <div id="author_profile_follow">
                <a href="javascript:void(0);" onclick="follow('35107298-91ac-4c16-33c1-08d75c4cd385');return false;">+加关注</a>
    </div>
</div>
<div id="div_digg">
    <div class="diggit" onclick="votePost(12189317,'Digg')">
        <span class="diggnum" id="digg_count">0</span>
    </div>
    <div class="buryit" onclick="votePost(12189317,'Bury')">
        <span class="burynum" id="bury_count">0</span>
    </div>
    <div class="clear"></div>
    <div class="diggword" id="digg_tips">
    </div>
</div>

<script type="text/javascript">
    currentDiggType = 0;
</script></div>
    <div class="clear"></div>
    <div id="post_next_prev">

    <a href="https://www.cnblogs.com/heian99/archive/2004/01/13/12182017.html" class="p_n_p_prefix">« </a> 上一篇：    <a href="https://www.cnblogs.com/heian99/archive/2004/01/13/12182017.html" title="发布于 2004-01-13 00:00">Centos7下使用Docker搭建本地私有仓库</a>
    <br>
    <a href="https://www.cnblogs.com/heian99/archive/2004/01/13/12231053.html" class="p_n_p_prefix">» </a> 下一篇：    <a href="https://www.cnblogs.com/heian99/archive/2004/01/13/12231053.html" title="发布于 2004-01-13 00:00">Centos搭建docker swarm集群详细教程</a>

</div>
</div>
            </div>
            <div class="postDesc">posted @ 
<span id="post-date">2020-01-13 21:04</span>&nbsp;
<a href="https://www.cnblogs.com/heian99/">南宫乘风</a>&nbsp;
阅读(<span id="post_view_count">807</span>)&nbsp;
评论(<span id="post_comment_count">0</span>)&nbsp;
<a href="https://i.cnblogs.com/EditPosts.aspx?postid=12189317" rel="nofollow">编辑</a>&nbsp;
<a href="javascript:void(0)" onclick="AddToWz(12189317);return false;">收藏</a></div>
        </div>
	    
	    
    </div><!--end: topics 文章、评论容器-->
</div>
<script src="https://common.cnblogs.com/highlight/9.12.0/highlight.min.js"></script>
<script>markdown_highlight();</script>
<script>
    var allowComments = true, cb_blogId = 558439, cb_blogApp = 'heian99', cb_blogUserGuid = '35107298-91ac-4c16-33c1-08d75c4cd385';
    var cb_entryId = 12189317, cb_entryCreatedDate = '2020-01-13 21:04', cb_postType = 1;
    loadViewCount(cb_entryId);
</script><a name="!comments"></a>
<div id="blog-comments-placeholder"></div>
<script>
    var commentManager = new blogCommentManager();
    commentManager.renderComments(0);
</script>
<div id="comment_form" class="commentform">
    <a name="commentform"></a>
    <div id="divCommentShow"></div>
    <div id="comment_nav"><span id="span_refresh_tips"></span><a href="javascript:void(0);" onclick="return RefreshCommentList();" id="lnk_RefreshComments" runat="server" clientidmode="Static">刷新评论</a><a href="#" onclick="return RefreshPage();">刷新页面</a><a href="#top">返回顶部</a></div>
    <div id="comment_form_container" style="visibility: visible;"><div class="login_tips">
    注册用户登录后才能发表评论，请 
    <a rel="nofollow" href="javascript:void(0);" class="underline" onclick="return login('commentform');">登录</a>
     或 
    <a rel="nofollow" href="javascript:void(0);" class="underline" onclick="return register();">注册</a>，
    <a href="https://www.cnblogs.com/">访问</a> 网站首页。
</div></div>
    <div class="ad_text_commentbox" id="ad_text_under_commentbox"></div>
    <div id="ad_t2"></div>
    <div id="opt_under_post"></div>
    <div id="cnblogs_c1" class="c_ad_block">
        <div id="div-gpt-ad-1592365906576-0" style="width: 300px; height: 250px;"></div>
    </div>
    <div id="under_post_news"><div class="recomm-block"><b>相关博文：</b><br>·  <a title="Grafana+Promethus监控JVM" href="https://www.cnblogs.com/zgz21/p/12054518.html" target="_blank" onclick="clickRecomItmem(12054518)">Grafana+Promethus监控JVM</a><br>·  <a title="【Mysql】初识MySQL" href="https://www.cnblogs.com/756623607-zhang/p/12026545.html" target="_blank" onclick="clickRecomItmem(12026545)">【Mysql】初识MySQL</a><br>·  <a title="MySQL" href="https://www.cnblogs.com/liuhaoze/p/11990122.html" target="_blank" onclick="clickRecomItmem(11990122)">MySQL</a><br>·  <a title="mysql" href="https://www.cnblogs.com/lihui001/p/12037261.html" target="_blank" onclick="clickRecomItmem(12037261)">mysql</a><br>·  <a title="mysql" href="https://www.cnblogs.com/QianShan/p/11647468.html" target="_blank" onclick="clickRecomItmem(11647468)">mysql</a><br>»  <a target="_blank" href="https://recomm.cnblogs.com/blogpost/12189317">更多推荐...</a></div></div>
    <div id="cnblogs_c2" class="c_ad_block">
        <div id="div-gpt-ad-1592366332455-0" style="width: 468px; height: 60px;"></div>
    </div>
    <div id="under_post_kb">
<div class="itnews c_ad_block">
    <b>最新 IT 新闻</b>:
    <br>
 ·          <a href="//news.cnblogs.com/n/673601/" target="_blank">执掌百度20年 李彦宏没为产品写过一行代码</a>
        <br>
 ·          <a href="//news.cnblogs.com/n/673619/" target="_blank">不止8K 小米电视大师至尊版是首款通过CTA认证的5G量产电视</a>
        <br>
 ·          <a href="//news.cnblogs.com/n/673615/" target="_blank">大众发布ID.4电动汽车挑战特斯拉 续航里程仅250英里</a>
        <br>
 ·          <a href="//news.cnblogs.com/n/673614/" target="_blank">希捷独供：Xbox Series主机1TB扩展盘要价220美元</a>
        <br>
 ·          <a href="//news.cnblogs.com/n/673608/" target="_blank">未履行给付义务，暴风冯鑫一日连收两封限制消费令</a>
        <br>
    » <a href="https://news.cnblogs.com/" title="IT 新闻" target="_blank">更多新闻...</a>
</div></div>
    <div id="HistoryToday" class="c_ad_block"></div>
    <script type="text/javascript">
        fixPostBody();
        deliverBigBanner();
setTimeout(function() { incrementViewCount(cb_entryId); }, 50);        deliverT2();
        deliverC1C2();
        loadNewsAndKb();
        loadBlogSignature();
LoadPostCategoriesTags(cb_blogId, cb_entryId);        LoadPostInfoBlock(cb_blogId, cb_entryId, cb_blogApp, cb_blogUserGuid);
        GetPrevNextPost(cb_entryId, cb_blogId, cb_entryCreatedDate, cb_postType);
        loadOptUnderPost();
        GetHistoryToday(cb_blogId, cb_blogApp, cb_entryCreatedDate);
    </script>
</div>
	</div><!--end: forFlow -->
	</div><!--end: mainContent 主体内容容器-->

	<div id="sideBar">
		<div id="sideBarMain">
			
<div id="sidebar_news" class="newsItem"><!--done-->
<h3 class="catListTitle">公告</h3>

<div id="blog-news">
    <div class="head_img"><img width="290" height="290" alt="我的头像" src="https://ftp.bmp.ovh/imgs/2020/06/75d45131a596abbd.jpg" class="img_avatar"><div>
<script type="text/javascript">window['__document_write_ajax_callbacks__']['4']();</script><script>window['__document_write_ajax_callbacks__']['1']();</script>
<script type="text/javascript">window['__document_write_ajax_callbacks__']['5']();</script><script>window['__document_write_ajax_callbacks__']['2']();</script>



    <div id="profile_block">
        昵称：
        <a href="https://home.cnblogs.com/u/heian99/">
            南宫乘风
        </a>
        <br>
        园龄：
        <a href="https://home.cnblogs.com/u/heian99/" title="入园时间：2019-11-07">
            10个月
        </a>
        <br>
        粉丝：
        <a href="https://home.cnblogs.com/u/heian99/followers/">
            9
        </a>
        <br>
        关注：
        <a href="https://home.cnblogs.com/u/heian99/followees/">
            0
        </a>
        <div id="p_b_follow">
<a href="javascript:void(0)" onclick="follow('35107298-91ac-4c16-33c1-08d75c4cd385')">+加关注</a></div>
        <script type="text/javascript">window['__document_write_ajax_callbacks__']['6']();</script><script>window['__document_write_ajax_callbacks__']['3']();</script>
    </div>
</div>

</div></div></div>

<div id="sidebar_ad"></div>
			<div id="blog-calendar" style="">

<table id="blogCalendar" class="Cal" cellspacing="0" cellpadding="0" title="Calendar" border="0">
    <tbody>
        <tr>
            <td colspan="7">
                <table class="CalTitle" cellspacing="0" border="0">
                    <tbody>
                        <tr>
                            <td class="CalNextPrev">
                                <a href="javascript:void(0);" onclick="loadBlogCalendar('2020/08/24'); return false;">&lt;</a>
                            </td>
                            <td align="center">2020年9月</td>
                            <td align="right" class="CalNextPrev">
                                <a href="javascript:void(0);" onclick="loadBlogCalendar('2020/10/24'); return false;">&gt;</a>
                            </td>
                        </tr>
                    </tbody>
                </table>
            </td>
        </tr>
    <tr>
        <th class="CalDayHeader" align="center" abbr="日" scope="col">日</th>
        <th class="CalDayHeader" align="center" abbr="一" scope="col">一</th>
        <th class="CalDayHeader" align="center" abbr="二" scope="col">二</th>
        <th class="CalDayHeader" align="center" abbr="三" scope="col">三</th>
        <th class="CalDayHeader" align="center" abbr="四" scope="col">四</th>
        <th class="CalDayHeader" align="center" abbr="五" scope="col">五</th>
        <th class="CalDayHeader" align="center" abbr="六" scope="col">六</th>
    </tr>
            <tr>
                            <td class="CalOtherMonthDay" align="center">30</td>
                            <td class="CalOtherMonthDay" align="center">31</td>
                        <td class="" align="center">
                            1
                        </td>
                        <td class="" align="center">
                            2
                        </td>
                        <td class="" align="center">
                            3
                        </td>
                        <td class="" align="center">
                            4
                        </td>
                    <td class="CalWeekendDay" align="center">
                        5
                    </td>
            </tr>
                <tr>
                        <td class="CalWeekendDay" align="center">
                            6
                        </td>
                            <td class="" align="center">
                                7
                            </td>
                            <td class="" align="center">
                                8
                            </td>
                            <td class="" align="center">
                                9
                            </td>
                            <td class="" align="center">
                                10
                            </td>
                            <td class="" align="center">
                                11
                            </td>
                        <td class="CalWeekendDay" align="center">
                            12
                        </td>
                </tr>
                <tr>
                        <td class="CalWeekendDay" align="center">
                            13
                        </td>
                            <td class="" align="center">
                                14
                            </td>
                            <td class="" align="center">
                                15
                            </td>
                            <td class="" align="center">
                                16
                            </td>
                            <td class="" align="center">
                                17
                            </td>
                            <td class="" align="center">
                                18
                            </td>
                        <td class="CalWeekendDay" align="center">
                            19
                        </td>
                </tr>
                <tr>
                        <td class="CalWeekendDay" align="center">
                            20
                        </td>
                            <td class="" align="center">
                                21
                            </td>
                            <td class="" align="center">
                                22
                            </td>
                            <td class="" align="center">
                                23
                            </td>
                            <td class="CalTodayDay" align="center">
                                24
                            </td>
                            <td class="" align="center">
                                25
                            </td>
                        <td class="CalWeekendDay" align="center">
                            26
                        </td>
                </tr>
                <tr>
                        <td class="CalWeekendDay" align="center">
                            27
                        </td>
                            <td class="" align="center">
                                28
                            </td>
                            <td class="" align="center">
                                29
                            </td>
                            <td class="" align="center">
                                30
                            </td>
                            <td class="CalOtherMonthDay" align="center">
                                1
                            </td>
                            <td class="CalOtherMonthDay" align="center">
                                2
                            </td>
                        <td class="CalOtherMonthDay" align="center">
                            3
                        </td>
                </tr>
                <tr>
                        <td class="CalOtherMonthDay" align="center">
                            4
                        </td>
                            <td class="CalOtherMonthDay" align="center">
                                5
                            </td>
                            <td class="CalOtherMonthDay" align="center">
                                6
                            </td>
                            <td class="CalOtherMonthDay" align="center">
                                7
                            </td>
                            <td class="CalOtherMonthDay" align="center">
                                8
                            </td>
                            <td class="CalOtherMonthDay" align="center">
                                9
                            </td>
                        <td class="CalOtherMonthDay" align="center">
                            10
                        </td>
                </tr>
    </tbody>
</table></div><script>loadBlogDefaultCalendar();</script>
			
			<div id="leftcontentcontainer">
				<div id="blog-sidecolumn">
<!-- 搜索 -->
<div id="sidebar_search" class="sidebar-block">
    <div id="sidebar_search" class="mySearch">
        <h3 class="catListTitle">搜索</h3>
        <div id="sidebar_search_box">
            <div id="widget_my_zzk" class="div_my_zzk">
                <input type="text" id="q" onkeydown="return zzk_go_enter(event);" class="input_my_zzk">&nbsp;<input onclick="zzk_go()" type="button" value="找找看" id="btnZzk" class="btn_my_zzk">
            </div>
            <div id="widget_my_google" class="div_my_zzk">
                <input type="text" name="google_q" id="google_q" onkeydown="return google_go_enter(event);" class="input_my_zzk">&nbsp;<input onclick="google_go()" type="button" value="谷歌搜索" class="btn_my_zzk">
            </div>
        </div>
    </div>
</div>

<!-- 常用链接 -->
<div id="sidebar_shortcut" class="sidebar-block">
    <div class="catListLink">
<h3 class="catListTitle">
常用链接
</h3>
<ul>
    
<li><a href="https://www.cnblogs.com/heian99/p/" title="我的博客的随笔列表">我的随笔</a></li>
<li><a href="https://www.cnblogs.com/heian99/MyComments.html" title="我的发表过的评论列表">我的评论</a></li>
<li><a href="https://www.cnblogs.com/heian99/OtherPosts.html" title="我评论过的随笔列表">我的参与</a></li>
<li><a href="https://www.cnblogs.com/heian99/RecentComments.html" title="我的博客的评论列表">最新评论</a></li>
<li><a href="https://www.cnblogs.com/heian99/tag/" title="我的博客的标签列表">我的标签</a></li>

</ul>
</div>


</div>

<!-- 最新随笔 -->



<!-- 我的标签 -->
<div id="sidebar_toptags" class="sidebar-block">
    
</div>

<!-- 积分与排名 -->


<!-- 随笔分类、随笔档案、文章分类、新闻分类、相册、链接 -->
<div id="sidebar_categories">
    
        <div id="sidebar_postarchive" class="catListPostArchive sidebar-block">
            <h3 class="catListTitle">
                
随笔档案



            </h3>


            <ul>

                        <li>
                            
<a href="https://www.cnblogs.com/heian99/archive/2020/06.html" rel="" target="">
    2020年6月(3)
</a>
 

                        </li>
                        <li>
                            
<a href="https://www.cnblogs.com/heian99/archive/2020/05.html" rel="" target="">
    2020年5月(5)
</a>
 

                        </li>
                        <li>
                            
<a href="https://www.cnblogs.com/heian99/archive/2020/04.html" rel="" target="">
    2020年4月(7)
</a>
 

                        </li>
                        <li>
                            
<a href="https://www.cnblogs.com/heian99/archive/2020/03.html" rel="" target="">
    2020年3月(13)
</a>
 

                        </li>
                        <li>
                            
<a href="https://www.cnblogs.com/heian99/archive/2020/02.html" rel="" target="">
    2020年2月(18)
</a>
 

                        </li>
                        <li>
                            
<a href="https://www.cnblogs.com/heian99/archive/2020/01.html" rel="" target="">
    2020年1月(36)
</a>
 

                        </li>
                        <li>
                            
<a href="https://www.cnblogs.com/heian99/archive/2019/12.html" rel="" target="">
    2019年12月(19)
</a>
 

                        </li>
                        <li>
                            
<a href="https://www.cnblogs.com/heian99/archive/2019/11.html" rel="" target="">
    2019年11月(13)
</a>
 

                        </li>
                        <li>
                            
<a href="https://www.cnblogs.com/heian99/archive/2019/10.html" rel="" target="">
    2019年10月(9)
</a>
 

                        </li>
                        <li>
                            
<a href="https://www.cnblogs.com/heian99/archive/2019/09.html" rel="" target="">
    2019年9月(14)
</a>
 

                        </li>
                        <li>
                            
<a href="https://www.cnblogs.com/heian99/archive/2019/08.html" rel="" target="">
    2019年8月(3)
</a>
 

                        </li>
                        <li>
                            
<a href="https://www.cnblogs.com/heian99/archive/2019/05.html" rel="" target="">
    2019年5月(5)
</a>
 

                        </li>
                        <li>
                            
<a href="https://www.cnblogs.com/heian99/archive/2019/04.html" rel="" target="">
    2019年4月(33)
</a>
 

                        </li>
                        <li>
                            
<a href="https://www.cnblogs.com/heian99/archive/2019/03.html" rel="" target="">
    2019年3月(16)
</a>
 

                        </li>
                        <li>
                            
<a href="https://www.cnblogs.com/heian99/archive/2019/02.html" rel="" target="">
    2019年2月(6)
</a>
 

                        </li>
                        <li>
                            
<a href="https://www.cnblogs.com/heian99/archive/2019/01.html" rel="" target="">
    2019年1月(23)
</a>
 

                        </li>

            </ul>


        </div>
        <div id="sidebar_imagecategory" class="catListImageCategory sidebar-block">
            <h3 class="catListTitle">
                
相册



            </h3>


            <ul>

                        <li>
                            
<a href="https://www.cnblogs.com/heian99/gallery/1603202.html" rel="nofollow noopener noreferrer" target="">
    我的漫画(4)
</a>
 

                        </li>

            </ul>


        </div>

</div>

<!-- 最新评论 -->
<div id="sidebar_recentcomments" class="sidebar-block">
    <div class="catListComment">
<h3 class="catListTitle">最新评论</h3>

	<div class="RecentCommentBlock">
        <ul>
                    <li class="recent_comment_title"><a href="https://www.cnblogs.com/heian99/p/11972265.html">1. Re:MarkdownPad 2破解</a></li>
                    <li class="recent_comment_body"><h1 id="section">感谢</h1>
</li>
                    <li class="recent_comment_author">--初君</li>
        </ul>
    </div>
</div>


</div>



<!-- 阅读排行榜 -->
<div id="sidebar_topviewedposts" class="sidebar-block">
    <div class="catListView">
<h3 class="catListTitle">阅读排行榜</h3>
	<div id="TopViewPostsBlock">
        <ul style="word-break:break-all">
                    <li>
                        <a href="https://www.cnblogs.com/heian99/p/11972298.html">
                            1. Linux shell awk中print及变量使用(2251)
                        </a>
                    </li>
                    <li>
                        <a href="https://www.cnblogs.com/heian99/p/12173599.html">
                            2. kubeadm部署Kubernetes（k8s）完整版详细教程(2123)
                        </a>
                    </li>
                    <li>
                        <a href="https://www.cnblogs.com/heian99/p/11972252.html">
                            3. Centos7安装宝塔控制面板(1170)
                        </a>
                    </li>
                    <li>
                        <a href="https://www.cnblogs.com/heian99/p/12865377.html">
                            4. Python项目打包发布Linux线上(1150)
                        </a>
                    </li>
                    <li>
                        <a href="https://www.cnblogs.com/heian99/p/12091143.html">
                            5. 网云穿-SpringBoot项目映射外网(1101)
                        </a>
                    </li>
        </ul>
    </div>
</div>


</div>

<!-- 评论排行榜 -->
<div id="sidebar_topcommentedposts" class="sidebar-block">
    <div class="catListFeedback">
<h3 class="catListTitle">评论排行榜</h3>
	<div id="TopFeedbackPostsBlock">
        <ul style="word-break:break-all">
                    <li>
                        <a href="https://www.cnblogs.com/heian99/p/11972265.html">
                            1. MarkdownPad 2破解(1)
                        </a>
                    </li>
        </ul>
    </div>
</div>


</div>

<!-- 推荐排行榜 -->
<div id="sidebar_topdiggedposts" class="sidebar-block">
    
<div id="topdigg_posts_wrap">
    <div class="catListView">
        <h3 class="catListTitle">推荐排行榜</h3>
        <div id="TopDiggPostsBlock">
            <ul style="word-break: break-all">
                        <li>
                            <a href="https://www.cnblogs.com/heian99/p/12585724.html">
                                1. Docker网络（host、bridge、none）详细介绍(1)
                            </a>
                        </li>
                        <li>
                            <a href="https://www.cnblogs.com/heian99/p/12257681.html">
                                2. Kubernetes（k8s）Pod的YAML基础编写(1)
                            </a>
                        </li>
                        <li>
                            <a href="https://www.cnblogs.com/heian99/p/12173599.html">
                                3. kubeadm部署Kubernetes（k8s）完整版详细教程(1)
                            </a>
                        </li>
                        <li>
                            <a href="https://www.cnblogs.com/heian99/p/12146476.html">
                                4. DockerFile自定义镜像centos(1)
                            </a>
                        </li>
                        <li>
                            <a href="https://www.cnblogs.com/heian99/p/12104189.html">
                                5. Docker安装MySQL集群【读写分离】(1)
                            </a>
                        </li>
            </ul>
        </div>
    </div>
</div>
</div></div>
                    <script>loadBlogSideColumn();</script>
			</div>
			
		</div><!--end: sideBarMain -->
	</div><!--end: sideBar 侧边栏容器 -->
	<div class="clear"></div>
	</div><!--end: main -->
	<div class="clear"></div>
	<div id="footer">
		<!--done-->
Copyright © 2020 南宫乘风
<br><span id="poweredby">Powered by .NET Core on Kubernetes</span>



	</div><!--end: footer -->
</div><!--end: home 自定义的最大容器 -->


    <div id="page_end_html">
        <canvas id="live2dcanvas" width="300" height="600" style="position: fixed; opacity: 1; left: 0px; bottom: -20px; z-index: 99999; pointer-events: none; border: none"></canvas>
<script src="https://cdn.jsdelivr.net/npm/live2d-widget@3.0.4/lib/L2Dwidget.min.js"></script>
<script type="text/javascript">
L2Dwidget.init();
</script>
<script id="c_n_script" src="https://blog-static.cnblogs.com/files/xiaokang01/js.js" color="240,230,140" opacity="1" count="100" zindex="-2">
if(/Android|webOS|iPhone|iPod|BlackBerry/i.test(navigator.userAgent)) {
} else {
       
}
</script>
    </div><canvas id="c_n18" width="1536" height="447" style="position: fixed; top: 0px; left: 0px; z-index: -2; opacity: 1;"></canvas>
    <script>
    var _hmt = _hmt || [];
    (function() {
      var hm = document.createElement("script");
      hm.src = "https://hm.baidu.com/hm.js?39b794a97f47c65b6b2e4e1741dcba38";
      var s = document.getElementsByTagName("script")[0];
      s.parentNode.insertBefore(hm, s);
    })();
    </script>


<script type="text/javascript">
/* 鼠标特效 */
var a_idx = 0;
jQuery(document).ready(function($) {
    $("body").click(function(e) {
        var a = new Array("❤富强❤","❤民主❤","❤文明❤","❤和谐❤","❤自由❤","❤平等❤","❤公正❤","❤法治❤","❤爱国❤","❤敬业❤","❤诚信❤","❤友善❤");
        var $i = $("<span></span>").text(a[a_idx]);
        a_idx = (a_idx + 1) % a.length;
        var x = e.pageX,
        y = e.pageY;
        $i.css({
            "z-index": 999999999999999999999999999999999999999999999999999999999999999999999,
            "top": y - 20,
            "left": x,
            "position": "absolute",
            "font-weight": "bold",
            "color": "rgb("+~~(255*Math.random())+","+~~(255*Math.random())+","+~~(255*Math.random())+")"
        });
        $("body").append($i);
        $i.animate({
            "top": y - 180,
            "opacity": 0
        },
        1500,
        function() {
            $i.remove();
        });
    });
});
</script><script type="text/javascript">$('.wrap div').eq(1).remove()</script><script type="text/javascript">$('#blogTitle').css('background','none')
</script><script type="text/javascript">getFollowStatus('35107298-91ac-4c16-33c1-08d75c4cd385');</script><div id="live2d-widget"><canvas id="live2dcanvas" width="300" height="600" style="position: fixed; opacity: 0.7; right: 0px; bottom: -20px; z-index: 99999; pointer-events: none; border: 1px dashed rgb(204, 204, 204);"></canvas></div></body></html>