<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>CentOS on G. T. Wang</title>
    <link>https://blog.gtwang.org/tags/centos/</link>
    <description>Recent content in CentOS on G. T. Wang</description>
    <generator>Hugo -- 0.156.0</generator>
    <language>zh-tw</language>
    <copyright>G. T. Wang</copyright>
    <lastBuildDate>Tue, 25 Jun 2019 14:42:56 +0800</lastBuildDate>
    <atom:link href="https://blog.gtwang.org/tags/centos/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Red Hat / CentOS Linux 7 查詢、更改主機名稱設定教學</title>
      <link>https://blog.gtwang.org/linux/redhat-centos-7-change-hostname-tutorial/</link>
      <pubDate>Tue, 25 Jun 2019 14:42:56 +0800</pubDate>
      <guid>https://blog.gtwang.org/linux/redhat-centos-7-change-hostname-tutorial/</guid>
      <description>&lt;p&gt;本篇介紹如何在 RedHat 或 CentOS Linux 7 的系統中，使用 &lt;code&gt;hostname&lt;/code&gt; 與 &lt;code&gt;hostnamectl&lt;/code&gt; 指令來查詢並修改主機名稱。&lt;/p&gt;
&lt;p&gt;每一台 Linux 主機都會有一個自己的主機名稱（hostname），若主機名稱沒有設定正確，對許多的網路服務都會造成影響，以下介紹如何在 RedHat 或 CentOS Linux 7 的系統中，查詢與更改主機名稱的設定。&lt;/p&gt;</description>
    </item>
    <item>
      <title>CentOS 7 安裝 Tomcat 9 伺服器教學</title>
      <link>https://blog.gtwang.org/linux/centos-linux-7-install-apache-tomcat-9-tutorial/</link>
      <pubDate>Thu, 11 Oct 2018 14:01:34 +0800</pubDate>
      <guid>https://blog.gtwang.org/linux/centos-linux-7-install-apache-tomcat-9-tutorial/</guid>
      <description>&lt;p&gt;本篇介紹如何在 CentOS Linux 7 系統之下安裝 Tomcat 9 伺服器，並設定 &lt;code&gt;systemd&lt;/code&gt; 啟動指令稿。&lt;/p&gt;
&lt;p&gt;Tomcat 是一套由 Apache Software Foundation 所發展的開放原始碼網頁伺服器與 servlet 容器，是目前最普遍被使用的 Java 應用程式伺服器（application server）之一，以下我們以 CentOS Linux 7.5 的環境為例，示範安裝 Tomcat 9.0.12 的過程。&lt;/p&gt;</description>
    </item>
    <item>
      <title>Fedora/CentOS/RHEL Linux 鎖定套件，防止 Yum 安裝或更新教學</title>
      <link>https://blog.gtwang.org/linux/rhel-fedora-centos-linux-yum-lock-disable-blacklist-package-update-installation/</link>
      <pubDate>Sat, 21 Jul 2018 21:01:45 +0800</pubDate>
      <guid>https://blog.gtwang.org/linux/rhel-fedora-centos-linux-yum-lock-disable-blacklist-package-update-installation/</guid>
      <description>&lt;p&gt;這裡介紹如何在 Fedora、CentOS 或 RHEL 中鎖定套件，讓指定套件與軟體維持固定的版本，避免 &lt;code&gt;yum&lt;/code&gt; 自動安裝或更新。&lt;/p&gt;
&lt;p&gt;在目前主流的 Linux 系統上，絕大部分的軟體都是透過套件管理系統來安裝或更新的，管理者只要定期執行更新指令，即可讓所有的軟體維持在最新狀態。&lt;/p&gt;</description>
    </item>
    <item>
      <title>CentOS Linux 設定 MySQL/MariaDB 出問題時自動重新啟動</title>
      <link>https://blog.gtwang.org/linux/centos-linux-auto-start-mariadb-using-systemd-after-it-has-crashed/</link>
      <pubDate>Wed, 25 Apr 2018 09:10:31 +0800</pubDate>
      <guid>https://blog.gtwang.org/linux/centos-linux-auto-start-mariadb-using-systemd-after-it-has-crashed/</guid>
      <description>&lt;p&gt;這裡介紹如何在 CentOS Linux 中設定 systemd，讓 MySQL/MariaDB 資料庫在不正常停止時可以自己重新啟動。&lt;/p&gt;
&lt;p&gt;自己用 VPS 架設網站的話，網頁伺服器與資料庫的維護都要自己處理，在 CentOS Linux 中的 MariaDB 資料庫預設在安裝好之後，雖然可以正常使用，但是如果系統因為某些原因（例如記憶體不足）造成 MariaDB 資料庫服務中止時，它是不會自動重新啟動的，也就是說如果 MariaDB 不小心停止，整個網站就停擺了。&lt;/p&gt;</description>
    </item>
    <item>
      <title>Linux 設定 NTP 同步系統時間，自動網路校時教學</title>
      <link>https://blog.gtwang.org/linux/linux-ntp-installation-and-configuration-tutorial/</link>
      <pubDate>Fri, 13 Apr 2018 12:25:39 +0800</pubDate>
      <guid>https://blog.gtwang.org/linux/linux-ntp-installation-and-configuration-tutorial/</guid>
      <description>&lt;p&gt;本篇介紹如何在 Linux 中安裝並設定 NTP 網路校時服務，讓系統自動校正時間。&lt;/p&gt;
&lt;p&gt;系統的時間對於 Linux 伺服器來說是很重要的，如果系統的時間不準確，會連帶產生許多安全性問題。若要讓 Linux 系統維持正確的時間，可以透過 NTP 網路校時的方式來處理，以下是各種 NTP 網路校時的使用方式。&lt;/p&gt;</description>
    </item>
    <item>
      <title>CentOS Linux 使用 Tor 與 Privoxy 架設匿名網頁代理伺服器</title>
      <link>https://blog.gtwang.org/linux/centos-linux-use-tor-and-privoxy-to-build-anonymous-http-proxy/</link>
      <pubDate>Mon, 09 Apr 2018 07:45:57 +0800</pubDate>
      <guid>https://blog.gtwang.org/linux/centos-linux-use-tor-and-privoxy-to-build-anonymous-http-proxy/</guid>
      <description>&lt;p&gt;這裡介紹如何在 CentOS Linux 中安裝 Tor 與 Privoxy，自己架設匿名網頁代理伺服器。&lt;/p&gt;
&lt;p&gt;先前我們介紹過&lt;a href=&#34;https://blog.gtwang.org/linux/ubuntu-linux-use-tor-and-privoxy-to-build-anonymous-http-proxy/&#34;&gt;在 Ubuntu Linux 中安裝 Tor 與 Privoxy 架設匿名網頁代理伺服器的方法&lt;/a&gt;，而這裡是改用 CentOS Linux 來架設的步驟，方法大同小異。&lt;/p&gt;</description>
    </item>
    <item>
      <title>CentOS 7 安裝 Nginx、MySQL/MariaDB、PHP7，架設 LEMP 網頁伺服器筆記</title>
      <link>https://blog.gtwang.org/linux/linode-centos-7-nginx-mysql-mariadb-php-7-installation-notes/</link>
      <pubDate>Wed, 28 Mar 2018 20:34:14 +0800</pubDate>
      <guid>https://blog.gtwang.org/linux/linode-centos-7-nginx-mysql-mariadb-php-7-installation-notes/</guid>
      <description>&lt;p&gt;這裡紀錄我在 CentOS Linux 中安裝 Nginx、MySQL/MariaDB 與 RedHat 官方的 PHP 7，打造高效能、高穩定性 LEMP 網頁伺服器的過程。&lt;/p&gt;
&lt;p&gt;最近我使用 &lt;a href=&#34;https://www.linode.com/lp/refer/?r=5b74c1f208c14942572bb1ba1f0687285c81a6b3&#34;&gt;Linode VPS 虛擬機器&lt;/a&gt;安裝了 CentOS Linux 環境，架設一台使用 PHP 7.1 的 LEMP 網頁伺服器，以下是整個架設流程紀錄。&lt;/p&gt;</description>
    </item>
    <item>
      <title>CentOS Linux 靜態 IP 位址網路設定教學</title>
      <link>https://blog.gtwang.org/linux/centos-linux-static-network-configuration-tutorial/</link>
      <pubDate>Tue, 13 Mar 2018 14:42:28 +0800</pubDate>
      <guid>https://blog.gtwang.org/linux/centos-linux-static-network-configuration-tutorial/</guid>
      <description>&lt;p&gt;這裡介紹 CentOS Linux 7 的網路設定檔的配置方法，讓新灌好的系統可以上網。&lt;/p&gt;
&lt;p&gt;使用最小安裝（minimal install）來安裝 CentOS Linux 7 作業系統時，若在安裝時沒有設定網路，則裝好之後就必須手動設定網路才能上網，以下是設定的方法。&lt;/p&gt;</description>
    </item>
    <item>
      <title>CentOS Linux 7 以 firewalld 指令設定防火牆規則教學</title>
      <link>https://blog.gtwang.org/linux/centos-7-firewalld-command-setup-tutorial/</link>
      <pubDate>Tue, 26 Dec 2017 10:09:43 +0800</pubDate>
      <guid>https://blog.gtwang.org/linux/centos-7-firewalld-command-setup-tutorial/</guid>
      <description>&lt;p&gt;這裡介紹如何在 CentOS Linux 7 中使用 &lt;a href=&#34;https://firewalld.org/&#34;&gt;firewalld&lt;/a&gt; 的指令設定防火牆規則。&lt;/p&gt;
&lt;p&gt;在舊版的 CentOS Linux 中，防火牆都是以傳統的 iptables 來設定，而從 CentOS 7 開始，則改用 firewalld 來管理防火牆。&lt;/p&gt;
&lt;p&gt;

&lt;ins class=&#34;adsbygoogle&#34;
     style=&#34;display:block&#34;
     data-ad-client=&#34;ca-pub-7794009487786811&#34;
     data-ad-slot=&#34;9921134032&#34;
     data-ad-format=&#34;auto&#34;
     data-full-width-responsive=&#34;true&#34;&gt;&lt;/ins&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;/p&gt;</description>
    </item>
    <item>
      <title>CentOS Linux 安裝與使用 Keras 深度學習工具</title>
      <link>https://blog.gtwang.org/programming/centos-linux-install-keras-deep-learning-library/</link>
      <pubDate>Mon, 30 Oct 2017 10:36:04 +0800</pubDate>
      <guid>https://blog.gtwang.org/programming/centos-linux-install-keras-deep-learning-library/</guid>
      <description>&lt;p&gt;本篇介紹如何在 CentOS Linux 中安裝與使用 Keras 這套深度學習工具。&lt;/p&gt;
&lt;p&gt;談到深度學習（Deep Learning）的工具，大家都會想到 TensorFlow 這類的底層 framework，這類的基礎的 framework 由於保留了非常多的彈性空間，導致使用上比較不方便，如果想要快速進行依些簡單的問題測試，就可以使用 Keras 這類的高階工具。&lt;/p&gt;</description>
    </item>
    <item>
      <title>CentOS Linux 7 安裝 Docker 步驟與使用教學</title>
      <link>https://blog.gtwang.org/linux/centos-linux-7-install-docker-tutorial/</link>
      <pubDate>Fri, 23 Jun 2017 11:42:40 +0800</pubDate>
      <guid>https://blog.gtwang.org/linux/centos-linux-7-install-docker-tutorial/</guid>
      <description>&lt;p&gt;本篇介紹如何在 CentOS Linux 7 中安裝 Docker，以及基本操作與 hello world 程式。&lt;/p&gt;
&lt;p&gt;之前介紹過在 &lt;a href=&#34;https://blog.gtwang.org/linux/ubuntu-linux-install-docker-tutorial/&#34;&gt;Ubuntu Linux&lt;/a&gt; 與&lt;a href=&#34;https://blog.gtwang.org/iot/raspberry-pi/raspberry-pi-docker-installation-tutorial/&#34;&gt;樹莓派&lt;/a&gt;中安裝 Docker 的過程，這裡則是介紹在 CentOS Linux 7 中的安裝流程。&lt;/p&gt;
&lt;p&gt;

&lt;ins class=&#34;adsbygoogle&#34;
     style=&#34;display:block&#34;
     data-ad-client=&#34;ca-pub-7794009487786811&#34;
     data-ad-slot=&#34;9921134032&#34;
     data-ad-format=&#34;auto&#34;
     data-full-width-responsive=&#34;true&#34;&gt;&lt;/ins&gt;
&lt;script&gt;
     (adsbygoogle = window.adsbygoogle || []).push({});
&lt;/script&gt;
&lt;/p&gt;</description>
    </item>
    <item>
      <title>CentOS Linux 更改系統時區指令教學</title>
      <link>https://blog.gtwang.org/linux/centos-linux-change-system-timezone-command-tutorial/</link>
      <pubDate>Thu, 30 Mar 2017 08:47:09 +0800</pubDate>
      <guid>https://blog.gtwang.org/linux/centos-linux-change-system-timezone-command-tutorial/</guid>
      <description>&lt;p&gt;這裡介紹如何在 CentOS Linux 的命令列中，用指令修改系統時區。&lt;/p&gt;
&lt;p&gt;剛安裝好的 CentOS Linux 伺服器若沒有設定好時區，那麼就算透過網路校時之後，時間還是錯的，例如時區若是設定成美國紐約的時間，就會與台灣本地間時間相差 13 個小時，這樣會讓系統產生許多問題，例如 log 紀錄檔的時間都會不對，這種狀況就要調整時區的設定。&lt;/p&gt;</description>
    </item>
    <item>
      <title>CentOS Linux 7 安裝 MySQL/MariaDB 資料庫教學</title>
      <link>https://blog.gtwang.org/linux/centos-7-install-mariadb-mysql-server-tutorial/</link>
      <pubDate>Tue, 21 Mar 2017 16:55:56 +0800</pubDate>
      <guid>https://blog.gtwang.org/linux/centos-7-install-mariadb-mysql-server-tutorial/</guid>
      <description>&lt;p&gt;這裡介紹如何在 CentOS Linux 7 中安裝 MySQL/MariaDB 資料庫。&lt;/p&gt;
&lt;p&gt;MySQL 資料庫分家之後，社群版本變成 MariaDB，不過目前大部分的指令都沒有變。以下我以 CentOS Linux 內建的 MariaDB 套件示範 CentOS Linux 安裝與設定 MySQL/MariaDB 資料庫的過程。&lt;/p&gt;</description>
    </item>
    <item>
      <title>CentOS Linux 7 自行編譯與安裝 GCC 6 編譯器教學</title>
      <link>https://blog.gtwang.org/programming/centos-linux-7-compile-and-install-gcc-6/</link>
      <pubDate>Sat, 25 Feb 2017 08:28:35 +0800</pubDate>
      <guid>https://blog.gtwang.org/programming/centos-linux-7-compile-and-install-gcc-6/</guid>
      <description>&lt;p&gt;這裡介紹在 CentOS Linux 7 之下自己載 gcc 6 編譯器原始碼、編譯與安裝的過程。&lt;/p&gt;
&lt;p&gt;gcc 是 Linux 系統上最常被使用的編譯器，而 CentOS Linux 7.2 中的 gcc 版本比較舊：&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-sh&#34; data-lang=&#34;sh&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;gcc -v
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;pre class=&#34;output&#34;&gt;Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/4.8.5/lto-wrapper
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-linker-hash-style=gnu --enable-languages=c,c++,objc,obj-c++,java,fortran,ada,go,lto --enable-plugin --enable-initfini-array --disable-libgcj --with-isl=/builddir/build/BUILD/gcc-4.8.5-20150702/obj-x86_64-redhat-linux/isl-install --with-cloog=/builddir/build/BUILD/gcc-4.8.5-20150702/obj-x86_64-redhat-linux/cloog-install --enable-gnu-indirect-function --with-tune=generic --with-arch_32=x86-64 --build=x86_64-redhat-linux
Thread model: posix
gcc version 4.8.5 20150623 (Red Hat 4.8.5-4) (GCC)&lt;/pre&gt;
&lt;p&gt;如果想要使用比較新的功能，就會有問題。以下是自己下載 gcc 6.3.0 原始碼來編譯與安裝的過程。&lt;/p&gt;</description>
    </item>
    <item>
      <title>CentOS Linux 7 安裝 Apache 2 與 Tomcat 8 伺服器步驟教學，透過 Proxy 整合</title>
      <link>https://blog.gtwang.org/linux/centos7-linux-install-apache2-and-tomcat8-server/</link>
      <pubDate>Fri, 04 Nov 2016 16:43:19 +0800</pubDate>
      <guid>https://blog.gtwang.org/linux/centos7-linux-install-apache2-and-tomcat8-server/</guid>
      <description>&lt;p&gt;這裡記錄我在 CentOS Linux 中安裝 Apache2 與 Tomcat8 伺服器的指令以及整合設定步驟。&lt;/p&gt;
&lt;p&gt;Tomcat 配合 Apache 網頁伺服器，可以讓一台機器同時提供 Java 與 PHP 的執行環境，以下是在 CentOS Linux 中安裝 Apache 2 與 Tomcat 8 的步驟。&lt;/p&gt;</description>
    </item>
    <item>
      <title>nmtui：CentOS/RHEL 文字介面網路設定工具，管理 NetworkManager</title>
      <link>https://blog.gtwang.org/linux/nmtui-centos-linux-network-manager-text-user-interface/</link>
      <pubDate>Thu, 03 Mar 2016 21:16:16 +0800</pubDate>
      <guid>https://blog.gtwang.org/linux/nmtui-centos-linux-network-manager-text-user-interface/</guid>
      <description>&lt;p&gt;&lt;code&gt;nmtui&lt;/code&gt; 是 CentOS/RHEL 7 中預設會安裝的文字介面網路設定與管理工具，使用它可以幫助我們快速調整 NetworkManager 的相關設定。&lt;/p&gt;
&lt;p&gt;CentOS/RHEL 7 預設是使用 NetworkManager 來管理網路設定的，而 &lt;code&gt;nmtui&lt;/code&gt; 則是用來編輯 NetworkManager 設定的文字介面工具，CentOS 7 系統預設就會安裝，有了這樣方便的小工具，就算不熟悉 NetworkManager 指令與設定檔語法的人，也可以在終端機中輕鬆調整網路的配置，以下是 &lt;code&gt;nmtui&lt;/code&gt; 的使用方式。&lt;/p&gt;</description>
    </item>
    <item>
      <title>CentOS 7 的 Linux 系統安裝步驟教學</title>
      <link>https://blog.gtwang.org/linux/centos-7-installation-tutorial/</link>
      <pubDate>Thu, 25 Feb 2016 18:16:24 +0800</pubDate>
      <guid>https://blog.gtwang.org/linux/centos-7-installation-tutorial/</guid>
      <description>&lt;p&gt;這裡介紹 CentOS 7 的 Linux 作業系統安裝步驟。&lt;/p&gt;
&lt;p&gt;CentOS Linux 是源自於 Red Hat Enterprise Linux（RHEL）的 Linux 發行版，它與 RHEL 有相同的原始碼來源，對於要求高度穩定性的伺服器而言，可以使用 CentOS 來替代商業版的 Red Hat Enterprise Linux。&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
