<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Centos on Margrop Blog</title>
    <link>https://blog.margrop.net/en/tag/centos/</link>
    <description>Recent content in Centos on Margrop Blog</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en-US</language>
    <lastBuildDate>Sun, 06 Feb 2022 19:50:38 +0800</lastBuildDate>
    <atom:link href="https://blog.margrop.net/en/tag/centos/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Auto-Add N2N Route Table on CentOS 7 Boot</title>
      <link>https://blog.margrop.net/en/post/centos7-auto-add-route-table-for-n2n-edge/</link>
      <pubDate>Sun, 06 Feb 2022 19:50:38 +0800</pubDate>
      <guid>https://blog.margrop.net/en/post/centos7-auto-add-route-table-for-n2n-edge/</guid>
      <description>&lt;h1 id=&#34;1-edit-the-systemctl-auto-start-file&#34;&gt;1. Edit the &lt;code&gt;systemctl&lt;/code&gt; Auto-Start File&lt;/h1&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;vim /etc/systemd/system/n2route.service&#xA;&lt;/code&gt;&lt;/pre&gt;</description>
    </item>
    <item>
      <title>Issue where pip becomes unusable after pip install --upgrade pip on CentOS 7: ImportError: No module named typing</title>
      <link>https://blog.margrop.net/en/post/centos-7-no-module-named-typing-after-upgrade-pip/</link>
      <pubDate>Wed, 16 Jun 2021 11:13:46 +0800</pubDate>
      <guid>https://blog.margrop.net/en/post/centos-7-no-module-named-typing-after-upgrade-pip/</guid>
      <description>&lt;h1 id=&#34;problem-description&#34;&gt;Problem Description&lt;/h1&gt;&#xA;&lt;p&gt;pip安装某第三方 SDK，提示升级 pip，按提示升级 pip 后报错&lt;/p&gt;&#xA;&lt;h2 id=&#34;pip-upgrade-command-that-causes-the-error&#34;&gt;pip Upgrade Command that Causes the Error&lt;/h2&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;pip install --upgrade pip&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id=&#34;pip-error-message&#34;&gt;pip Error Message&lt;/h2&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Traceback &lt;span style=&#34;color:#f92672&#34;&gt;(&lt;/span&gt;most recent call last&lt;span style=&#34;color:#f92672&#34;&gt;)&lt;/span&gt;:&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  File &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;/usr/bin/pip&amp;#34;&lt;/span&gt;, line 9, in &amp;lt;module&amp;gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    load_entry_point&lt;span style=&#34;color:#f92672&#34;&gt;(&lt;/span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#39;pip==21.1.2&amp;#39;&lt;/span&gt;, &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#39;console_scripts&amp;#39;&lt;/span&gt;, &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#39;pip&amp;#39;&lt;/span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;)()&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  File &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;/usr/lib/python2.7/site-packages/pkg_resources.py&amp;#34;&lt;/span&gt;, line 378, in load_entry_point&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#66d9ef&#34;&gt;return&lt;/span&gt; get_distribution&lt;span style=&#34;color:#f92672&#34;&gt;(&lt;/span&gt;dist&lt;span style=&#34;color:#f92672&#34;&gt;)&lt;/span&gt;.load_entry_point&lt;span style=&#34;color:#f92672&#34;&gt;(&lt;/span&gt;group, name&lt;span style=&#34;color:#f92672&#34;&gt;)&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  File &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;/usr/lib/python2.7/site-packages/pkg_resources.py&amp;#34;&lt;/span&gt;, line 2566, in load_entry_point&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#66d9ef&#34;&gt;return&lt;/span&gt; ep.load&lt;span style=&#34;color:#f92672&#34;&gt;()&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  File &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;/usr/lib/python2.7/site-packages/pkg_resources.py&amp;#34;&lt;/span&gt;, line 2260, in load&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    entry &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; __import__&lt;span style=&#34;color:#f92672&#34;&gt;(&lt;/span&gt;self.module_name, globals&lt;span style=&#34;color:#f92672&#34;&gt;()&lt;/span&gt;,globals&lt;span style=&#34;color:#f92672&#34;&gt;()&lt;/span&gt;, &lt;span style=&#34;color:#f92672&#34;&gt;[&lt;/span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#39;__name__&amp;#39;&lt;/span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;])&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  File &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;/usr/lib/python2.7/site-packages/pip/__init__.py&amp;#34;&lt;/span&gt;, line 1, in &amp;lt;module&amp;gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    from typing import List, Optional&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;ImportError: No module named typing&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;</description>
    </item>
    <item>
      <title>CentOS 7.4 NFS Auto-Mount</title>
      <link>https://blog.margrop.net/en/post/centos-nfs-mount-autofs/</link>
      <pubDate>Wed, 17 Feb 2021 21:15:19 +0800</pubDate>
      <guid>https://blog.margrop.net/en/post/centos-nfs-mount-autofs/</guid>
      <description>&lt;h1 id=&#34;on-demand-auto-mount&#34;&gt;On-Demand Auto-Mount&lt;/h1&gt;&#xA;&lt;p&gt;Automatically mount NFS shared directory &lt;code&gt;/home/share&lt;/code&gt; to local path &lt;code&gt;/mnt/share&lt;/code&gt; upon user login&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;yum install -y autofs&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;vi /etc/auto.master&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;/mnt /etc/auto.conf（这个配置文件本身就没有要自己创建）&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;vi /etc/auto.conf&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;share  192.168.1.22:/etc/letsencrypt/live/margrop.net-0001/（nfs服务器上共享文件）&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;service autofs restart &#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;</description>
    </item>
    <item>
      <title>How to Install Node-RED with NPM</title>
      <link>https://blog.margrop.net/en/post/how-to-install-nodered-with-npm/</link>
      <pubDate>Mon, 01 Feb 2021 09:57:07 +0800</pubDate>
      <guid>https://blog.margrop.net/en/post/how-to-install-nodered-with-npm/</guid>
      <description>&lt;h1 id=&#34;what-is-node-red&#34;&gt;What Is &lt;code&gt;Node-RED&lt;/code&gt;&lt;/h1&gt;&#xA;&lt;p&gt;&lt;code&gt;Node-RED&lt;/code&gt; is a low-code/no-code programming tool for connecting &lt;code&gt;hardware devices&lt;/code&gt;, &lt;code&gt;APIs&lt;/code&gt;, and &lt;code&gt;online services&lt;/code&gt; in a novel and interesting way. It is especially suitable for &lt;code&gt;smart home&lt;/code&gt; scenarios.&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;Node-RED&lt;/code&gt; provides a browser-based flow editor, making it easy to connect various nodes in the panel. You can then deploy the flow to runtime with a single click.&lt;/p&gt;</description>
    </item>
    <item>
      <title>How to Build an Open Source Web Flowchart Tool Diagrams.net (formerly draw.io)</title>
      <link>https://blog.margrop.net/en/post/how-to-install-docker-drawio/</link>
      <pubDate>Sat, 30 Jan 2021 17:59:08 +0800</pubDate>
      <guid>https://blog.margrop.net/en/post/how-to-install-docker-drawio/</guid>
      <description>&lt;p&gt;&lt;code&gt;ProcessOn&lt;/code&gt; are now well-known web &lt;code&gt;流程图&lt;/code&gt;, &lt;code&gt;UML&lt;/code&gt; drawing tools. However, &lt;code&gt;ProcessOn&lt;/code&gt; is a paid service with too many free-tier restrictions. So, is there a free option available?&lt;/p&gt;&#xA;&lt;p&gt;Yes, it&amp;rsquo;s &lt;code&gt;Diagrams.net&lt;/code&gt;. &lt;strong&gt;Completely free with powerful features~&lt;/strong&gt;&lt;/p&gt;</description>
    </item>
    <item>
      <title>Upgrading or Fresh Installing MariaDB 10.5 on CentOS 7 Using Aliyun Mirror</title>
      <link>https://blog.margrop.net/en/post/centos-7-upgrade-or-install-mariadb-10.x-aliyun-mirror/</link>
      <pubDate>Fri, 29 Jan 2021 15:42:20 +0800</pubDate>
      <guid>https://blog.margrop.net/en/post/centos-7-upgrade-or-install-mariadb-10.x-aliyun-mirror/</guid>
      <description>&lt;h1 id=&#34;update-the-system-first&#34;&gt;Update the System First&lt;/h1&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;yum update -y&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h1 id=&#34;edit-the-yum-configuration-file-using-aliyun-mirror&#34;&gt;Edit the yum Configuration File Using Aliyun Mirror&lt;/h1&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Here MariaDB 10.5 is used as an example&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;vim /etc/yum.repos.d/MariaDB10.repo&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt;#http://downloads.mariadb.org/mariadb/repositories/&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;[&lt;/span&gt;mariadb&lt;span style=&#34;color:#f92672&#34;&gt;]&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;name &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; MariaDB&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;baseurl &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; https://mirrors.aliyun.com/mariadb/yum/10.5/centos7-amd64&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;gpgkey &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; https://mirrors.aliyun.com/mariadb/yum/RPM-GPG-KEY-MariaDB&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;gpgcheck &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#ae81ff&#34;&gt;1&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;</description>
    </item>
    <item>
      <title>Installing Docker on CentOS 7 and Configuring Aliyun Mirror Source</title>
      <link>https://blog.margrop.net/en/post/centos-7-install-docker-ce-and-update-source/</link>
      <pubDate>Fri, 29 Jan 2021 11:40:18 +0800</pubDate>
      <guid>https://blog.margrop.net/en/post/centos-7-install-docker-ce-and-update-source/</guid>
      <description>&lt;h1 id=&#34;docker-version&#34;&gt;Docker Version&lt;/h1&gt;&#xA;&lt;p&gt;Since Docker version 1.13, Docker has adopted a timeline-based versioning approach, dividing releases into Community Edition (CE) and Enterprise Edition (EE). Docker CE is the free community edition, while Docker EE is the paid enterprise version.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Installing the Latest Version of Node and NPM on CentOS 7</title>
      <link>https://blog.margrop.net/en/post/centos-7-install-node-and-npm-latest/</link>
      <pubDate>Wed, 27 Jan 2021 11:28:59 +0800</pubDate>
      <guid>https://blog.margrop.net/en/post/centos-7-install-node-and-npm-latest/</guid>
      <description>&lt;h1 id=&#34;downloading-node&#34;&gt;Downloading Node:&lt;/h1&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;The download uses the Aliyun mirror&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;mkdir ~/nodejs&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;cd ~/nodejs&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;wget https://npm.taobao.org/mirrors/node/latest-v15.x/node-v15.7.0-linux-x64.tar.gz&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;tar -xvzf node-v15.7.0-linux-x64.tar.gz&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;</description>
    </item>
    <item>
      <title>Installing Frp Client on CentOS with SSH Access</title>
      <link>https://blog.margrop.net/en/post/centos-install-frp-client-for-ssh/</link>
      <pubDate>Sat, 23 Jan 2021 17:22:58 +0800</pubDate>
      <guid>https://blog.margrop.net/en/post/centos-install-frp-client-for-ssh/</guid>
      <description>&lt;h1 id=&#34;download-and-extract-frp&#34;&gt;Download and Extract Frp&lt;/h1&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Latest Frp download address: &lt;a href=&#34;https://github.com/fatedier/frp/releases/&#34;&gt;https://github.com/fatedier/frp/releases/&lt;/a&gt;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;mkdir ~/frp&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;cd ~/frp&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;wget https://github.com/fatedier/frp/releases/download/v0.35.0/frp_0.35.0_linux_amd64.tar.gz&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;tar -xvzf frp_0.35.0_linux_amd64.tar.gz&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;</description>
    </item>
    <item>
      <title>How to Run N2N on CentOS 7 — Edge Edition</title>
      <link>https://blog.margrop.net/en/post/how-to-use-n2n-centos-edge/</link>
      <pubDate>Sat, 16 Jan 2021 14:00:18 +0800</pubDate>
      <guid>https://blog.margrop.net/en/post/how-to-use-n2n-centos-edge/</guid>
      <description>&lt;p&gt;&lt;code&gt;边缘节点（node）&lt;/code&gt;：The node that will become part of the virtual network.&lt;/p&gt;</description>
    </item>
    <item>
      <title>How to use CentOS 7 to run N2N—supernode</title>
      <link>https://blog.margrop.net/en/post/how-to-use-n2n-centos-supernode/</link>
      <pubDate>Fri, 15 Jan 2021 09:15:03 +0800</pubDate>
      <guid>https://blog.margrop.net/en/post/how-to-use-n2n-centos-supernode/</guid>
      <description>超级节点（supernode）: It allows edge nodes to announce and discover other nodes. It must have a port that is publicly accessible on the Internet.&#xA;First review the basic elements of n2n n2n is a lightweight VPN software that makes it easy to create virtual networks that bypass intervening firewalls. In order to start using n2n, two elements are required:&#xA;一个超级节点（supernode）: It allows edge nodes to announce and discover other nodes. It must have a port that is publicly accessible on the Internet.</description>
    </item>
  </channel>
</rss>
