<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>redhat &#8211; 21點情報網</title>
	<atom:link href="https://ailog.tw/lifelog/tag/redhat/feed/" rel="self" type="application/rss+xml" />
	<link>https://ailog.tw/lifelog</link>
	<description></description>
	<lastBuildDate>Thu, 24 Mar 2022 01:02:04 +0000</lastBuildDate>
	<language>zh-TW</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8.3</generator>
	<item>
		<title>Linux 查詢openssl版本方法</title>
		<link>https://ailog.tw/lifelog/2022/03/24/openssl-ver/</link>
		
		<dc:creator><![CDATA[blackjack]]></dc:creator>
		<pubDate>Thu, 24 Mar 2022 01:02:04 +0000</pubDate>
				<category><![CDATA[3C資訊]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[openssl]]></category>
		<category><![CDATA[Oracle Linux]]></category>
		<category><![CDATA[redhat]]></category>
		<category><![CDATA[version]]></category>
		<category><![CDATA[版本查詢]]></category>
		<guid isPermaLink="false">https://ailog.tw/lifelog/?p=12673</guid>

					<description><![CDATA[小編今天要分享的是openssl查詢版本的語法。 指令語法： openssl version]]></description>
										<content:encoded><![CDATA[<p><span style="font-family: verdana, geneva; font-size: 14pt;">小編今天要分享的是openssl查詢版本的語法。<span id="more-12673"></span></span></p>
<p><span style="font-size: 14pt;">指令語法：</span><br />
<span style="font-size: 14pt;">openssl version</span><br />
<span style="font-size: 14pt;"><img decoding="async" class="alignnone wp-image-12674 size-full" src="https://ailog.tw/lifelog/wp-content/uploads/2022/03/openssl-ver.png" alt="" width="367" height="99" srcset="https://ailog.tw/lifelog/wp-content/uploads/2022/03/openssl-ver.png 367w, https://ailog.tw/lifelog/wp-content/uploads/2022/03/openssl-ver-300x81.png 300w" sizes="(max-width: 367px) 100vw, 367px" /></span></p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Centos 7 / Redhat 7 / Oracle Linux 7 安裝mariadb10無法啟動</title>
		<link>https://ailog.tw/lifelog/2022/02/15/mariadb10-start/</link>
		
		<dc:creator><![CDATA[blackjack]]></dc:creator>
		<pubDate>Tue, 15 Feb 2022 09:44:44 +0000</pubDate>
				<category><![CDATA[3C資訊]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[code=exited]]></category>
		<category><![CDATA[failed]]></category>
		<category><![CDATA[mariadb.service: main process exited]]></category>
		<category><![CDATA[mariadb10]]></category>
		<category><![CDATA[Oracle Linux]]></category>
		<category><![CDATA[redhat]]></category>
		<category><![CDATA[status=1/FAILURE]]></category>
		<category><![CDATA[無法啟動]]></category>
		<guid isPermaLink="false">https://ailog.tw/lifelog/?p=12382</guid>

					<description><![CDATA[小編最近遇到一個Oracle Linux 7安裝mariadb10無法啟動服務的案例，經查詢才知道原來是預設路 &#8230; <p class="link-more"><a href="https://ailog.tw/lifelog/2022/02/15/mariadb10-start/" class="more-link">閱讀全文<span class="screen-reader-text">〈Centos 7 / Redhat 7 / Oracle Linux 7 安裝mariadb10無法啟動〉</span></a></p>]]></description>
										<content:encoded><![CDATA[<p><span style="font-family: verdana, geneva; font-size: 14pt;">小編最近遇到一個Oracle Linux 7安裝mariadb10無法啟動服務的案例，經查詢才知道原來是預設路徑有變更，需要改設定才可以正常啟動服務，在此分享給大家，避免大家踩雷。<span id="more-12382"></span></span></p>
<p><span style="font-family: verdana, geneva; font-size: 14pt;"><strong>範例情境：</strong></span><br />
<span style="font-size: 14pt; font-family: verdana, geneva;">01、Oracle Linux 7.9</span><br />
<span style="font-size: 14pt; font-family: verdana, geneva;">02、安裝mariadb10後無法啟動服務，出現「mariadb.service: main process exited, code=exited, status=1/FAILURE」錯誤訊息</span></p>
<p><span style="font-family: verdana, geneva; font-size: 14pt;"><strong>操作步驟：</strong></span><br />
<span style="font-size: 14pt; font-family: verdana, geneva;">01、變更設定檔<br />
語法：<br />
vim /usr/lib/systemd/system/mariadb.service<br />
找到ProtectHome將參數變更為false，如下圖所示。<br />
<img decoding="async" class="alignnone wp-image-12387 size-full" src="https://ailog.tw/lifelog/wp-content/uploads/2022/02/mariadb10-start-02.png" alt="" width="396" height="63" srcset="https://ailog.tw/lifelog/wp-content/uploads/2022/02/mariadb10-start-02.png 396w, https://ailog.tw/lifelog/wp-content/uploads/2022/02/mariadb10-start-02-300x48.png 300w" sizes="(max-width: 396px) 100vw, 396px" /><br />
</span></p>
<p><span style="font-family: verdana, geneva; font-size: 14pt;">02、刪除舊的紀錄<br />
語法：</span><br />
<span style="font-family: verdana, geneva; font-size: 14pt;">rm -rf /var/lib/mysql/ib_logfile*</span></p>
<p>03、重新載入及啟動mariadb服務<br />
語法：<br />
systemctl daemon-reload<br />
systemctl restart mariadb</p>
<p><span style="font-family: verdana, geneva; font-size: 14pt;">04、檢查mariadb服務狀態<br />
語法：<br />
systemctl status mariadb<br />
補充說明：<br />
看到綠色的active(running)代表服務正常運作中瞜。<br />
<img fetchpriority="high" decoding="async" class="alignnone wp-image-12388 size-full" src="https://ailog.tw/lifelog/wp-content/uploads/2022/02/mariadb10-start-03.png" alt="" width="433" height="282" srcset="https://ailog.tw/lifelog/wp-content/uploads/2022/02/mariadb10-start-03.png 433w, https://ailog.tw/lifelog/wp-content/uploads/2022/02/mariadb10-start-03-300x195.png 300w" sizes="(max-width: 433px) 100vw, 433px" /></span></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Linux 查詢執行指令歷史紀錄</title>
		<link>https://ailog.tw/lifelog/2021/02/01/linux-historycmd/</link>
		
		<dc:creator><![CDATA[blackjack]]></dc:creator>
		<pubDate>Sun, 31 Jan 2021 16:07:19 +0000</pubDate>
				<category><![CDATA[3C資訊]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[command]]></category>
		<category><![CDATA[command line]]></category>
		<category><![CDATA[Fedora]]></category>
		<category><![CDATA[history]]></category>
		<category><![CDATA[Linux 查詢執行指令歷史紀錄]]></category>
		<category><![CDATA[OracleLinux]]></category>
		<category><![CDATA[redhat]]></category>
		<category><![CDATA[指令]]></category>
		<category><![CDATA[新增筆數]]></category>
		<category><![CDATA[歷史]]></category>
		<category><![CDATA[紀錄筆數]]></category>
		<category><![CDATA[變更筆數]]></category>
		<guid isPermaLink="false">https://ailog.tw/lifelog/?p=6651</guid>

					<description><![CDATA[查詢Linux執行指令歷史紀錄，這是小編在維護Linux主機時常會用的指令之一，當忘記上次編輯過那些檔案或是把 &#8230; <p class="link-more"><a href="https://ailog.tw/lifelog/2021/02/01/linux-historycmd/" class="more-link">閱讀全文<span class="screen-reader-text">〈Linux 查詢執行指令歷史紀錄〉</span></a></p>]]></description>
										<content:encoded><![CDATA[<p>查詢Linux執行指令歷史紀錄，這是小編在維護Linux主機時常會用的指令之一<span id="more-6651"></span>，當忘記上次編輯過那些檔案或是把檔案放到哪裡時，透過該指令可以讓你輕鬆查詢過去的指令歷史軌跡。</p>
<p>查詢過往指令<br />
語法：<br />
history<br />
<img loading="lazy" decoding="async" class="alignnone wp-image-6653 size-full" src="https://ailog.tw/lifelog/wp-content/uploads/2021/01/Linux-history-01.png" alt="" width="362" height="176" srcset="https://ailog.tw/lifelog/wp-content/uploads/2021/01/Linux-history-01.png 362w, https://ailog.tw/lifelog/wp-content/uploads/2021/01/Linux-history-01-300x146.png 300w" sizes="auto, (max-width: 362px) 100vw, 362px" /></p>
<p>逐頁查詢<br />
語法：<br />
history | more<br />
<img loading="lazy" decoding="async" class="alignnone wp-image-6654 size-full" src="https://ailog.tw/lifelog/wp-content/uploads/2021/01/Linux-history-02.png" alt="" width="568" height="177" srcset="https://ailog.tw/lifelog/wp-content/uploads/2021/01/Linux-history-02.png 568w, https://ailog.tw/lifelog/wp-content/uploads/2021/01/Linux-history-02-300x93.png 300w" sizes="auto, (max-width: 568px) 100vw, 568px" /></p>
<p>將過往指令紀錄導向文字檔<br />
語法：<br />
history &gt; /root/2021-01-31-command-log.txt<br />
<img loading="lazy" decoding="async" class="alignnone wp-image-6655 size-full" src="https://ailog.tw/lifelog/wp-content/uploads/2021/01/Linux-history-03.png" alt="" width="644" height="52" srcset="https://ailog.tw/lifelog/wp-content/uploads/2021/01/Linux-history-03.png 644w, https://ailog.tw/lifelog/wp-content/uploads/2021/01/Linux-history-03-300x24.png 300w" sizes="auto, (max-width: 644px) 100vw, 644px" /></p>
<p>加大歷史指令紀錄筆數跟顯示指令執行的時間<br />
語法：<br />
vim /etc/bashrc<br />
在檔案最下方加入下列三行<br />
HISTFILESIZE=5000<br />
HISTSIZE=5000<br />
HISTTIMEFORMAT=&#8217;%F %T &#8216;<br />
<img loading="lazy" decoding="async" class="alignnone wp-image-6656 size-full" src="https://ailog.tw/lifelog/wp-content/uploads/2021/02/Linux-history-04.png" alt="" width="303" height="77" srcset="https://ailog.tw/lifelog/wp-content/uploads/2021/02/Linux-history-04.png 303w, https://ailog.tw/lifelog/wp-content/uploads/2021/02/Linux-history-04-300x76.png 300w" sizes="auto, (max-width: 303px) 100vw, 303px" /><br />
※該範例將記錄筆數提升到5千筆</p>
<p>修改「紀錄筆數」需要中斷原有的sessions重新連接，作法要「重新登入」或「重新開機」均可以。</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>刪除Centos7、Redhat7的virbr0虛擬網卡</title>
		<link>https://ailog.tw/lifelog/2019/10/17/linux7-virbr0/</link>
		
		<dc:creator><![CDATA[blackjack]]></dc:creator>
		<pubDate>Thu, 17 Oct 2019 03:22:54 +0000</pubDate>
				<category><![CDATA[3C資訊]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[redhat]]></category>
		<category><![CDATA[virbr0]]></category>
		<category><![CDATA[虛擬網路卡]]></category>
		<guid isPermaLink="false">https://ailog.tw/lifelog/?p=1347</guid>

					<description><![CDATA[小編在維護一台Centos 7時發現了一張奇怪的virbr0網路卡，查詢後發現是因為安裝了虛擬套件所產生的虛擬 &#8230; <p class="link-more"><a href="https://ailog.tw/lifelog/2019/10/17/linux7-virbr0/" class="more-link">閱讀全文<span class="screen-reader-text">〈刪除Centos7、Redhat7的virbr0虛擬網卡〉</span></a></p>]]></description>
										<content:encoded><![CDATA[<p>小編在維護一台Centos 7時發現了一張奇怪的virbr0網路卡，查詢後發現是因為安裝了虛擬套件所產生的虛擬網路卡，既然沒用到看了又厭煩，就來把它刪除吧!<span id="more-1347"></span></p>
<p>步驟一：列出虛擬網絡卡<br />
語法為：virsh net-list<br />
<img loading="lazy" decoding="async" class="alignnone wp-image-1354 size-full" src="https://ailog.tw/lifelog/wp-content/uploads/2019/10/Linux7-vnic-002.png" alt="" width="464" height="120" srcset="https://ailog.tw/lifelog/wp-content/uploads/2019/10/Linux7-vnic-002.png 464w, https://ailog.tw/lifelog/wp-content/uploads/2019/10/Linux7-vnic-002-300x78.png 300w" sizes="auto, (max-width: 464px) 100vw, 464px" /></p>
<p>步驟二：刪除網路卡<br />
語法為：virsh net-destroy [網路卡名稱]<br />
本範例的指令為：virsh net-destroy default<br />
<img loading="lazy" decoding="async" class="alignnone wp-image-1355 size-full" src="https://ailog.tw/lifelog/wp-content/uploads/2019/10/Linux7-vnic-003.png" alt="" width="430" height="52" srcset="https://ailog.tw/lifelog/wp-content/uploads/2019/10/Linux7-vnic-003.png 430w, https://ailog.tw/lifelog/wp-content/uploads/2019/10/Linux7-vnic-003-300x36.png 300w" sizes="auto, (max-width: 430px) 100vw, 430px" /></p>
<p>步驟三：刪除XML設定檔<br />
語法為：virsh net-undefine [網路卡名稱]<br />
本範例的指令為：virsh net-undefine default<br />
<img loading="lazy" decoding="async" class="alignnone wp-image-1358 size-full" src="https://ailog.tw/lifelog/wp-content/uploads/2019/10/Linux7-vnic-004.png" alt="" width="387" height="56" srcset="https://ailog.tw/lifelog/wp-content/uploads/2019/10/Linux7-vnic-004.png 387w, https://ailog.tw/lifelog/wp-content/uploads/2019/10/Linux7-vnic-004-300x43.png 300w" sizes="auto, (max-width: 387px) 100vw, 387px" /></p>
<p>步驟四：檢查虛擬網絡卡是否已正常刪除<br />
語法為：virsh net-list<br />
<img loading="lazy" decoding="async" class="alignnone wp-image-1359 size-full" src="https://ailog.tw/lifelog/wp-content/uploads/2019/10/Linux7-vnic-005.png" alt="" width="476" height="73" srcset="https://ailog.tw/lifelog/wp-content/uploads/2019/10/Linux7-vnic-005.png 476w, https://ailog.tw/lifelog/wp-content/uploads/2019/10/Linux7-vnic-005-300x46.png 300w" sizes="auto, (max-width: 476px) 100vw, 476px" /></p>
<p>原廠文件網址：<br />
<a href="https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/virtualization_deployment_and_administration_guide/sect-managing_guest_virtual_machines_with_virsh-managing_virtual_networks">https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/virtualization_deployment_and_administration_guide/sect-managing_guest_virtual_machines_with_virsh-managing_virtual_networks</a></p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
