<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Centos7 on Zayn's Blog</title><link>https://blog.treesir.pub/tags/centos7/</link><description>Recent content in Centos7 on Zayn's Blog</description><generator>Hugo -- gohugo.io</generator><language>zh-cn</language><managingEditor>yangzun@treesir.pub (Zayn)</managingEditor><webMaster>yangzun@treesir.pub (Zayn)</webMaster><copyright>2021-2026 Zayn</copyright><lastBuildDate>Wed, 14 Apr 2021 10:48:42 +0800</lastBuildDate><atom:link href="https://blog.treesir.pub/tags/centos7/index.xml" rel="self" type="application/rss+xml"/><item><title>Docker 部署多网口 openWrt 软路由</title><link>https://blog.treesir.pub/posts/openwrt-docker-multi-net/</link><pubDate>Thu, 19 Nov 2020 17:56:52 +0800</pubDate><author>yangzun@treesir.pub (Zayn)</author><guid>https://blog.treesir.pub/posts/openwrt-docker-multi-net/</guid><description>&lt;h2 class="relative group">环境说明:
&lt;div id="环境说明" class="anchor">&lt;/div>
&lt;span
class="absolute top-0 w-6 transition-opacity opacity-0 ltr:-left-6 rtl:-right-6 not-prose group-hover:opacity-100">
&lt;a class="group-hover:text-primary-300 dark:group-hover:text-neutral-700 !no-underline" href="#%e7%8e%af%e5%a2%83%e8%af%b4%e6%98%8e" aria-label="锚点">#&lt;/a>
&lt;/span>
&lt;/h2>
&lt;blockquote>
&lt;p>操作系统: Centos 7.8.2003&lt;/p>
&lt;p>内核版本: 4.14.129-bbrplus&lt;/p>
&lt;p>Docker 版本: 19.03.12&lt;/p>
&lt;p>使用 Docker 镜像: &lt;a
href="https://hub.docker.com/r/raymondwong/openwrt_r9"
target="_blank"
>raymondwong/openwrt_r9:20.1.24-x86_64&lt;/a>&lt;/p>
&lt;p>网卡说明: 板载螃蟹网卡、绿联 &lt;code>usb3.0&lt;/code> 千M 网卡&lt;/p></description></item><item><title>Kind 部署本地k8s集群的使用记录</title><link>https://blog.treesir.pub/posts/first-kind/</link><pubDate>Sun, 15 Nov 2020 14:24:42 +0800</pubDate><author>yangzun@treesir.pub (Zayn)</author><guid>https://blog.treesir.pub/posts/first-kind/</guid><description>&lt;h2 class="relative group">参考资料
&lt;div id="参考资料" class="anchor">&lt;/div>
&lt;span
class="absolute top-0 w-6 transition-opacity opacity-0 ltr:-left-6 rtl:-right-6 not-prose group-hover:opacity-100">
&lt;a class="group-hover:text-primary-300 dark:group-hover:text-neutral-700 !no-underline" href="#%e5%8f%82%e8%80%83%e8%b5%84%e6%96%99" aria-label="锚点">#&lt;/a>
&lt;/span>
&lt;/h2>
&lt;ul>
&lt;li>&lt;a
href="https://github.com/kubernetes-sigs/kind"
target="_blank"
>Github 地址&lt;/a>&lt;/li>
&lt;li>&lt;a
href="https://blog.tianfeiyu.com/2019/09/06/kind_deploy/"
target="_blank"
>参考博客&lt;/a>&lt;/li>
&lt;/ul>
&lt;h2 class="relative group">安装
&lt;div id="安装" class="anchor">&lt;/div>
&lt;span
class="absolute top-0 w-6 transition-opacity opacity-0 ltr:-left-6 rtl:-right-6 not-prose group-hover:opacity-100">
&lt;a class="group-hover:text-primary-300 dark:group-hover:text-neutral-700 !no-underline" href="#%e5%ae%89%e8%a3%85" aria-label="锚点">#&lt;/a>
&lt;/span>
&lt;/h2>
&lt;div class="highlight">&lt;pre tabindex="0" class="chroma">&lt;code class="language-bash" data-lang="bash">&lt;span class="line">&lt;span class="cl">curl -Lo ./kind &lt;span class="s2">&amp;#34;https://kind.sigs.k8s.io/dl/v0.9.0/kind-&lt;/span>&lt;span class="k">$(&lt;/span>uname&lt;span class="k">)&lt;/span>&lt;span class="s2">-amd64&amp;#34;&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">chmod +x ./kind
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">mv ./kind /some-dir-in-your-PATH/kind
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>
&lt;h2 class="relative group">启动集群
&lt;div id="启动集群" class="anchor">&lt;/div>
&lt;span
class="absolute top-0 w-6 transition-opacity opacity-0 ltr:-left-6 rtl:-right-6 not-prose group-hover:opacity-100">
&lt;a class="group-hover:text-primary-300 dark:group-hover:text-neutral-700 !no-underline" href="#%e5%90%af%e5%8a%a8%e9%9b%86%e7%be%a4" aria-label="锚点">#&lt;/a>
&lt;/span>
&lt;/h2>
&lt;blockquote>
&lt;p>注意启动集群前 请确认 docker 服务是否启动&lt;/p></description></item><item><title>Centos7 执行 shutdown 无法正常关机的解决</title><link>https://blog.treesir.pub/posts/centos-shutdown-notpoweroff/</link><pubDate>Wed, 14 Apr 2021 10:48:42 +0800</pubDate><author>yangzun@treesir.pub (Zayn)</author><guid>https://blog.treesir.pub/posts/centos-shutdown-notpoweroff/</guid><description>&lt;h2 class="relative group">环境说明
&lt;div id="环境说明" class="anchor">&lt;/div>
&lt;span
class="absolute top-0 w-6 transition-opacity opacity-0 ltr:-left-6 rtl:-right-6 not-prose group-hover:opacity-100">
&lt;a class="group-hover:text-primary-300 dark:group-hover:text-neutral-700 !no-underline" href="#%e7%8e%af%e5%a2%83%e8%af%b4%e6%98%8e" aria-label="锚点">#&lt;/a>
&lt;/span>
&lt;/h2>
&lt;blockquote>
&lt;p>因为在公司中，有下班后有需要关闭 &lt;code>服务器&lt;/code> 的操作，并且每天还需要去手动打开。有点违背 极客精神，所有自己通过 &lt;code>shell script&lt;/code> + &lt;code>cron&lt;/code> 的形式进行每天定时的 &lt;code>开关服务器机&lt;/code> 操作。但是服务器中不乏有一些比较老的机型，没有提供类似于&lt;code> ipmi&lt;/code> 管理功能，这些服务器自动启动依赖于主板自带的 &lt;code>网络唤醒&lt;/code> 功能，如果服务器未正常关机时 (卡在关机界面)，第二天早上通过网络唤醒时是无法正常打开服务器的，需要管理人员的介入管理强制关机。这篇文档主要是介绍如何优化服务器的关机时间长，服务器关机卡死问题。&lt;/p></description></item><item><title>Docker 在 Centos7 中离线安装</title><link>https://blog.treesir.pub/posts/docker-centosoffline-install/</link><pubDate>Thu, 25 Mar 2021 11:12:50 +0800</pubDate><author>yangzun@treesir.pub (Zayn)</author><guid>https://blog.treesir.pub/posts/docker-centosoffline-install/</guid><description>&lt;h2 class="relative group">环境说明
&lt;div id="环境说明" class="anchor">&lt;/div>
&lt;span
class="absolute top-0 w-6 transition-opacity opacity-0 ltr:-left-6 rtl:-right-6 not-prose group-hover:opacity-100">
&lt;a class="group-hover:text-primary-300 dark:group-hover:text-neutral-700 !no-underline" href="#%e7%8e%af%e5%a2%83%e8%af%b4%e6%98%8e" aria-label="锚点">#&lt;/a>
&lt;/span>
&lt;/h2>
&lt;ul>
&lt;li>操作系统: Centos&lt;/li>
&lt;li>Docker 版本: 19.03.8&lt;/li>
&lt;/ul>
&lt;hr>
&lt;h3 class="relative group">离线版本安装
&lt;div id="离线版本安装" class="anchor">&lt;/div>
&lt;span
class="absolute top-0 w-6 transition-opacity opacity-0 ltr:-left-6 rtl:-right-6 not-prose group-hover:opacity-100">
&lt;a class="group-hover:text-primary-300 dark:group-hover:text-neutral-700 !no-underline" href="#%e7%a6%bb%e7%ba%bf%e7%89%88%e6%9c%ac%e5%ae%89%e8%a3%85" aria-label="锚点">#&lt;/a>
&lt;/span>
&lt;/h3>
&lt;ul>
&lt;li>
&lt;p>Docker-ce 版本 YUM源 配置 - &lt;a
href="https://docs.docker.com/engine/install/centos/"
target="_blank"
>参考文档&lt;/a>&lt;/p></description></item><item><title>CentOS 7 编译安装 QEMU 及 libvirt 管理工具</title><link>https://blog.treesir.pub/posts/qume-libvirt-install/</link><pubDate>Thu, 25 Feb 2021 09:07:25 +0800</pubDate><author>yangzun@treesir.pub (Zayn)</author><guid>https://blog.treesir.pub/posts/qume-libvirt-install/</guid><description>&lt;h2 class="relative group"> 环境说明
&lt;div id="环境说明" class="anchor">&lt;/div>
&lt;span
class="absolute top-0 w-6 transition-opacity opacity-0 ltr:-left-6 rtl:-right-6 not-prose group-hover:opacity-100">
&lt;a class="group-hover:text-primary-300 dark:group-hover:text-neutral-700 !no-underline" href="#%e7%8e%af%e5%a2%83%e8%af%b4%e6%98%8e" aria-label="锚点">#&lt;/a>
&lt;/span>
&lt;/h2>
&lt;ul>
&lt;li>&lt;strong>操作系统&lt;/strong>：CentOS 7.9.2009&lt;/li>
&lt;li>&lt;strong>QEMU 版本&lt;/strong>：&lt;a
href="https://download.qemu.org/qemu-5.2.0.tar.xz"
target="_blank"
>5.2.0&lt;/a>&lt;/li>
&lt;li>&lt;strong>libvirt 版本&lt;/strong>：5.4.0&lt;/li>
&lt;/ul>
&lt;blockquote>
&lt;p>&lt;strong>注意&lt;/strong>：libvirt 高版本安装较为复杂，如需安装高版本请参考&lt;a
href="https://libvirt.org/compiling.html"
target="_blank"
>官方文档&lt;/a>&lt;/p>&lt;/blockquote>
&lt;h2 class="relative group">编译安装 QEMU
&lt;div id="编译安装-qemu" class="anchor">&lt;/div>
&lt;span
class="absolute top-0 w-6 transition-opacity opacity-0 ltr:-left-6 rtl:-right-6 not-prose group-hover:opacity-100">
&lt;a class="group-hover:text-primary-300 dark:group-hover:text-neutral-700 !no-underline" href="#%e7%bc%96%e8%af%91%e5%ae%89%e8%a3%85-qemu" aria-label="锚点">#&lt;/a>
&lt;/span>
&lt;/h2>
&lt;blockquote>
&lt;p>&lt;strong>注意&lt;/strong>：以下操作命令主要在 &lt;code>/data&lt;/code> 目录下进行。&lt;/p></description></item><item><title>企业级 CentOS 7 系统初始化与优化完整指南</title><link>https://blog.treesir.pub/posts/centos-init-config/</link><pubDate>Mon, 21 Dec 2020 09:34:01 +0800</pubDate><author>yangzun@treesir.pub (Zayn)</author><guid>https://blog.treesir.pub/posts/centos-init-config/</guid><description>&lt;h2 class="relative group">CentOS 7 系统初始化简介
&lt;div id="centos-7-系统初始化简介" class="anchor">&lt;/div>
&lt;span
class="absolute top-0 w-6 transition-opacity opacity-0 ltr:-left-6 rtl:-right-6 not-prose group-hover:opacity-100">
&lt;a class="group-hover:text-primary-300 dark:group-hover:text-neutral-700 !no-underline" href="#centos-7-%e7%b3%bb%e7%bb%9f%e5%88%9d%e5%a7%8b%e5%8c%96%e7%ae%80%e4%bb%8b" aria-label="锚点">#&lt;/a>
&lt;/span>
&lt;/h2>
&lt;h2 class="relative group">概述
&lt;div id="概述" class="anchor">&lt;/div>
&lt;span
class="absolute top-0 w-6 transition-opacity opacity-0 ltr:-left-6 rtl:-right-6 not-prose group-hover:opacity-100">
&lt;a class="group-hover:text-primary-300 dark:group-hover:text-neutral-700 !no-underline" href="#%e6%a6%82%e8%bf%b0" aria-label="锚点">#&lt;/a>
&lt;/span>
&lt;/h2>
&lt;p>CentOS 7 作为企业级 Linux 发行版，在生产环境中广泛应用。新安装的系统需要进行全面的初始化配置和优化，以确保系统的安全性、稳定性和高性能。本指南提供了一套经过生产环境验证的完整初始化方案。&lt;/p></description></item><item><title>使用 Docker 快速部署 Redis 服务器</title><link>https://blog.treesir.pub/posts/docker-quickstart-redis/</link><pubDate>Mon, 30 Nov 2020 10:35:47 +0800</pubDate><author>yangzun@treesir.pub (Zayn)</author><guid>https://blog.treesir.pub/posts/docker-quickstart-redis/</guid><description>&lt;p>Redis 是一个高性能的内存数据库，广泛用于缓存、会话存储和消息队列等场景。本文将介绍如何在 CentOS 系统上使用 Docker 容器快速部署 Redis 服务器，让您在几分钟内就能拥有一个可用的 Redis 环境。&lt;/p>
&lt;h2 class="relative group">环境准备
&lt;div id="环境准备" class="anchor">&lt;/div>
&lt;span
class="absolute top-0 w-6 transition-opacity opacity-0 ltr:-left-6 rtl:-right-6 not-prose group-hover:opacity-100">
&lt;a class="group-hover:text-primary-300 dark:group-hover:text-neutral-700 !no-underline" href="#%e7%8e%af%e5%a2%83%e5%87%86%e5%a4%87" aria-label="锚点">#&lt;/a>
&lt;/span>
&lt;/h2>
&lt;p>在开始之前，请确保您的系统满足以下要求：&lt;/p>
&lt;ul>
&lt;li>&lt;strong>操作系统&lt;/strong>: CentOS 7 或更高版本&lt;/li>
&lt;li>&lt;strong>Docker 版本&lt;/strong>: 19.03.8 或更高版本&lt;/li>
&lt;li>&lt;strong>Redis 镜像&lt;/strong>: redis:5.0.4（本教程使用的版本）&lt;/li>
&lt;li>&lt;strong>系统权限&lt;/strong>: 需要 root 权限或 sudo 权限&lt;/li>
&lt;/ul>
&lt;h2 class="relative group">部署步骤
&lt;div id="部署步骤" class="anchor">&lt;/div>
&lt;span
class="absolute top-0 w-6 transition-opacity opacity-0 ltr:-left-6 rtl:-right-6 not-prose group-hover:opacity-100">
&lt;a class="group-hover:text-primary-300 dark:group-hover:text-neutral-700 !no-underline" href="#%e9%83%a8%e7%bd%b2%e6%ad%a5%e9%aa%a4" aria-label="锚点">#&lt;/a>
&lt;/span>
&lt;/h2>
&lt;h3 class="relative group">第一步：系统优化配置
&lt;div id="第一步系统优化配置" class="anchor">&lt;/div>
&lt;span
class="absolute top-0 w-6 transition-opacity opacity-0 ltr:-left-6 rtl:-right-6 not-prose group-hover:opacity-100">
&lt;a class="group-hover:text-primary-300 dark:group-hover:text-neutral-700 !no-underline" href="#%e7%ac%ac%e4%b8%80%e6%ad%a5%e7%b3%bb%e7%bb%9f%e4%bc%98%e5%8c%96%e9%85%8d%e7%bd%ae" aria-label="锚点">#&lt;/a>
&lt;/span>
&lt;/h3>
&lt;p>为了确保 Redis 能够稳定高效地运行，我们需要先对系统进行一些优化配置：&lt;/p></description></item></channel></rss>