<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:media="http://search.yahoo.com/mrss/"><channel><title><![CDATA[UNIXDEV BLOG]]></title><description><![CDATA[Knowledge , how-to and tutorial.]]></description><link>https://blog.unixdev.co.th/</link><image><url>https://blog.unixdev.co.th/favicon.png</url><title>UNIXDEV BLOG</title><link>https://blog.unixdev.co.th/</link></image><generator>Ghost 5.49</generator><lastBuildDate>Mon, 13 Apr 2026 11:20:07 GMT</lastBuildDate><atom:link href="https://blog.unixdev.co.th/rss/" rel="self" type="application/rss+xml"/><ttl>60</ttl><item><title><![CDATA[How to migrate VM from on-premise or another-cloud to Huawei cloud]]></title><description><![CDATA[<p>&#xE2A;&#xE27;&#xE31;&#xE2A;&#xE14;&#xE35;&#xE17;&#xE38;&#xE01;&#xE17;&#xE48;&#xE32;&#xE19;&#xE17;&#xE35;&#xE48;&#xE40;&#xE02;&#xE49;&#xE32;&#xE21;&#xE32;&#xE2D;&#xE48;&#xE32;&#xE19; blog &#xE19;&#xE35;&#xE49;&#xE19;&#xE30;&#xE04;&#xE23;&#xE31;&#xE1A; &#xE27;&#xE31;&#xE19;&#xE19;&#xE35;&#xE49;&#xE40;&#xE23;&#xE32;&#xE08;&#xE30;&#xE21;&#xE32;&#xE40;</p>]]></description><link>https://blog.unixdev.co.th/how-to-migrate-vm-from-on-premise-or-another-cloud-to-huawei-cloud/</link><guid isPermaLink="false">64d8f9757ea9c11debf42542</guid><dc:creator><![CDATA[Supalerk Roengmongkol]]></dc:creator><pubDate>Wed, 30 Aug 2023 10:23:56 GMT</pubDate><content:encoded><![CDATA[<p>&#xE2A;&#xE27;&#xE31;&#xE2A;&#xE14;&#xE35;&#xE17;&#xE38;&#xE01;&#xE17;&#xE48;&#xE32;&#xE19;&#xE17;&#xE35;&#xE48;&#xE40;&#xE02;&#xE49;&#xE32;&#xE21;&#xE32;&#xE2D;&#xE48;&#xE32;&#xE19; blog &#xE19;&#xE35;&#xE49;&#xE19;&#xE30;&#xE04;&#xE23;&#xE31;&#xE1A; &#xE27;&#xE31;&#xE19;&#xE19;&#xE35;&#xE49;&#xE40;&#xE23;&#xE32;&#xE08;&#xE30;&#xE21;&#xE32;&#xE40;&#xE25;&#xE48;&#xE32;&#xE40;&#xE01;&#xE35;&#xE48;&#xE22;&#xE27;&#xE01;&#xE31;&#xE1A;&#xE01;&#xE32;&#xE23; migrate &#xE40;&#xE04;&#xE23;&#xE37;&#xE48;&#xE2D;&#xE07; VM &#xE08;&#xE32;&#xE01; on-premise &#xE2B;&#xE23;&#xE37;&#xE2D;&#xE08;&#xE32;&#xE01; cloud provider &#xE40;&#xE08;&#xE49;&#xE32;&#xE15;&#xE48;&#xE32;&#xE07;&#xE46; &#xE21;&#xE32;&#xE2A;&#xE39;&#xE48; Huawei cloud &#xE01;&#xE31;&#xE19;&#xE14;&#xE35;&#xE01;&#xE27;&#xE48;&#xE32;</p><p>&#xE40;&#xE23;&#xE32;&#xE21;&#xE32;<strong>&#xE41;&#xE19;&#xE30;&#xE19;&#xE33; Huawei cloud</strong> &#xE01;&#xE31;&#xE19;&#xE0B;&#xE31;&#xE01;&#xE19;&#xE34;&#xE14;&#xE14;&#xE35;&#xE01;&#xE27;&#xE48;&#xE32;<br>Huawei cloud &#xE40;&#xE1B;&#xE47;&#xE19; cloud provider &#xE17;&#xE35;&#xE48;&#xE21;&#xE35; feature &#xE04;&#xE48;&#xE2D;&#xE19;&#xE02;&#xE49;&#xE32;&#xE07;&#xE04;&#xE23;&#xE1A;&#xE04;&#xE23;&#xE31;&#xE19;&#xE44;&#xE21;&#xE48;&#xE27;&#xE48;&#xE32;&#xE08;&#xE30;&#xE40;&#xE1B;&#xE47;&#xE19; <br>Compute service, Database service, Storage service, Network service, AI service, IoT service, etc.</p><figure class="kg-card kg-image-card kg-card-hascaption"><img src="https://blog.unixdev.co.th/content/images/2023/08/Screenshot-2566-08-13-at-23.05.21.png" class="kg-image" alt loading="lazy" width="909" height="1056" srcset="https://blog.unixdev.co.th/content/images/size/w600/2023/08/Screenshot-2566-08-13-at-23.05.21.png 600w, https://blog.unixdev.co.th/content/images/2023/08/Screenshot-2566-08-13-at-23.05.21.png 909w" sizes="(min-width: 720px) 720px"><figcaption>&#xE21;&#xE35; service &#xE40;&#xE22;&#xE2D;&#xE30;&#xE21;&#xE32;&#xE01;&#xE01;&#xE01;&#xE01;&#xE01;&#xE01;&#xE01;&#xE01;&#xE01;&#xE01;</figcaption></figure><p>&#xE41;&#xE25;&#xE30; Huawei cloid &#xE04;&#xE27;&#xE32;&#xE21;&#xE1E;&#xE34;&#xE40;&#xE28;&#xE29;&#xE02;&#xE2D;&#xE07;&#xE40;&#xE02;&#xE32;&#xE01;&#xE47;&#xE04;&#xE37;&#xE2D;&#xE2D;&#xE2D;&#xE2D; &#xE40;&#xE02;&#xE32;&#xE21;&#xE35; data center &#xE15;&#xE31;&#xE49;&#xE07;&#xE2D;&#xE22;&#xE39;&#xE48;&#xE43;&#xE19;&#xE44;&#xE17;&#xE22;(&#xE27;&#xE49;&#xE32;&#xE27;&#xE27;&#xE27;&#xE27;&#xE27;) <br>&#xE16;&#xE31;&#xE14;&#xE21;&#xE32;&#xE17;&#xE38;&#xE01;&#xE04;&#xE19;&#xE04;&#xE07;&#xE2A;&#xE07;&#xE2A;&#xE31;&#xE22;&#xE27;&#xE48;&#xE32;&#xE21;&#xE35; data center &#xE15;&#xE31;&#xE49;&#xE07;&#xE2D;&#xE22;&#xE39;&#xE48;&#xE43;&#xE19;&#xE44;&#xE17;&#xE22;&#xE21;&#xE31;&#xE19;&#xE14;&#xE35;&#xE22;&#xE31;&#xE07;&#xE44;&#xE07;?<br>&#xE21;&#xE31;&#xE19;&#xE21;&#xE35;&#xE02;&#xE49;&#xE2D;&#xE14;&#xE35;&#xE2B;&#xE25;&#xE32;&#xE22;&#xE2D;&#xE22;&#xE48;&#xE32;&#xE07;&#xE40;&#xE25;&#xE22;&#xE04;&#xE23;&#xE31;&#xE1A;&#xE40;&#xE0A;&#xE48;&#xE19; latency &#xE19;&#xE49;&#xE2D;&#xE22;???<br>&#xE19;&#xE2D;&#xE01;&#xE40;&#xE23;&#xE37;&#xE48;&#xE2D;&#xE07;&#xE01;&#xE31;&#xE19;&#xE44;&#xE1B;&#xE40;&#xE22;&#xE2D;&#xE30;&#xE41;&#xE25;&#xE49;&#xE27;&#xE40;&#xE23;&#xE32;&#xE21;&#xE32;&#xE01;&#xE25;&#xE31;&#xE1A;&#xE2A;&#xE39;&#xE48;&#xE1B;&#xE23;&#xE30;&#xE40;&#xE14;&#xE47;&#xE19;&#xE2B;&#xE25;&#xE31;&#xE01;&#xE01;&#xE31;&#xE19;&#xE40;&#xE25;&#xE22;&#xE14;&#xE35;&#xE01;&#xE27;&#xE48;&#xE32; :P<br></p><p><strong>&#xE02;&#xE31;&#xE49;&#xE19;&#xE15;&#xE2D;&#xE19;&#xE43;&#xE19;&#xE01;&#xE32;&#xE23; Migrate</strong> VM &#xE44;&#xE1B;&#xE22;&#xE31;&#xE07; Huawei cloud &#xE08;&#xE30;&#xE21;&#xE32;&#xE1B;&#xE23;&#xE30;&#xE21;&#xE32;&#xE13;&#xE19;&#xE35;&#xE49;&#xE04;&#xE23;&#xE31;&#xE1A;<br><strong>1. </strong>&#xE2A;&#xE23;&#xE49;&#xE32;&#xE07; Access Keys &#xE44;&#xE27;&#xE49;&#xE43;&#xE2B;&#xE49; agent &#xE02;&#xE2D;&#xE07; Huawei cloud &#xE43;&#xE0A;&#xE49;&#xE43;&#xE19;&#xE01;&#xE32;&#xE23;&#xE14;&#xE36;&#xE07;&#xE44;&#xE1F;&#xE25;&#xE4C;&#xE15;&#xE48;&#xE32;&#xE07;&#xE46; &#xE43;&#xE19;&#xE40;&#xE04;&#xE23;&#xE37;&#xE48;&#xE2D;&#xE07; VM &#xE41;&#xE25;&#xE30;&#xE2A;&#xE48;&#xE07;&#xE01;&#xE25;&#xE31;&#xE1A;&#xE44;&#xE1B;&#xE17;&#xE35;&#xE48; Huawei cloud &#xE44;&#xE14;&#xE49;<br><strong>2. </strong>&#xE15;&#xE34;&#xE14;&#xE15;&#xE31;&#xE49;&#xE07; agent &#xE17;&#xE35;&#xE48;&#xE40;&#xE04;&#xE23;&#xE37;&#xE48;&#xE2D;&#xE07; VM &#xE2A;&#xE31;&#xE48;&#xE07;&#xE43;&#xE2B;&#xE49; agent &#xE17;&#xE33;&#xE07;&#xE32;&#xE19;<br><strong>3.</strong> config &#xE04;&#xE48;&#xE32;&#xE15;&#xE48;&#xE32;&#xE07;&#xE46;<br><strong>4.</strong> &#xE40;&#xE23;&#xE34;&#xE48;&#xE21;&#xE17;&#xE33;&#xE01;&#xE32;&#xE23; migrate<br>&#xE41;&#xE15;&#xE48;&#xE01;&#xE48;&#xE2D;&#xE19;&#xE17;&#xE35;&#xE48;&#xE08;&#xE30;&#xE44;&#xE1B;&#xE40;&#xE23;&#xE34;&#xE48;&#xE21;&#xE01;&#xE31;&#xE19;&#xE02;&#xE2D;&#xE43;&#xE2B;&#xE49;&#xE17;&#xE38;&#xE01;&#xE17;&#xE48;&#xE32;&#xE19; check OS &#xE02;&#xE2D;&#xE07;&#xE40;&#xE04;&#xE23;&#xE37;&#xE48;&#xE2D;&#xE07; VM &#xE01;&#xE31;&#xE19;&#xE01;&#xE48;&#xE2D;&#xE19;&#xE19;&#xE30;&#xE04;&#xE23;&#xE31;&#xE1A;&#xE27;&#xE48;&#xE32;&#xE2A;&#xE32;&#xE21;&#xE32;&#xE23;&#xE16;&#xE17;&#xE33;&#xE44;&#xE14;&#xE49;&#xE2B;&#xE23;&#xE37;&#xE2D;&#xE44;&#xE21;&#xE48; <a href="https://support.huaweicloud.com/intl/en-us/productdesc-sms/sms_01_0013.html?ref=blog.unixdev.co.th">Supported OSs Server Migration Service</a></p><p>&#xE21;&#xE32;&#xE40;&#xE23;&#xE34;&#xE48;&#xE21;&#xE01;&#xE31;&#xE19;&#xE17;&#xE35;&#xE48;&#xE02;&#xE31;&#xE49;&#xE19;&#xE15;&#xE2D;&#xE19;&#xE17;&#xE35;&#xE48; 1 &#xE01;&#xE31;&#xE19;&#xE40;&#xE25;&#xE22;&#xE14;&#xE35;&#xE01;&#xE27;&#xE48;&#xE32;&#xE04;&#xE23;&#xE31;&#xE1A;<br></p><p><strong>Step 1 </strong>&#xE2A;&#xE23;&#xE49;&#xE32;&#xE07; Access Keys<br>&#xE40;&#xE23;&#xE34;&#xE48;&#xE21;&#xE08;&#xE32;&#xE01;&#xE43;&#xE2B;&#xE49;&#xE40;&#xE23;&#xE32; login &#xE40;&#xE02;&#xE49;&#xE32; Huawei cloud console &#xE01;&#xE31;&#xE19;&#xE40;&#xE25;&#xE22; <br>(&#xE2A;&#xE33;&#xE2B;&#xE23;&#xE31;&#xE1A;&#xE1C;&#xE39;&#xE49;&#xE2D;&#xE48;&#xE32;&#xE19;&#xE17;&#xE35;&#xE48;&#xE2D;&#xE22;&#xE32;&#xE01;&#xE2A;&#xE23;&#xE49;&#xE32;&#xE07;&#xE40;&#xE1B;&#xE47;&#xE19; IAM &#xE41;&#xE22;&#xE01;&#xE2A;&#xE33;&#xE2B;&#xE23;&#xE31;&#xE1A;&#xE01;&#xE32;&#xE23; migrate &#xE2A;&#xE32;&#xE21;&#xE32;&#xE23;&#xE16;&#xE2D;&#xE48;&#xE32;&#xE19;&#xE27;&#xE34;&#xE18;&#xE35;&#xE01;&#xE32;&#xE23;&#xE17;&#xE33;&#xE44;&#xE14;&#xE49;&#xE17;&#xE35;&#xE48; <a href="https://support.huaweicloud.com/intl/en-us/sms_faq/sms_faq_0012.html?ref=blog.unixdev.co.th">How Do I Create an AK/SK Pair for an IAM User?</a> )</p><figure class="kg-card kg-image-card"><img src="https://blog.unixdev.co.th/content/images/2023/08/Screenshot-2566-08-13-at-23.59.24.png" class="kg-image" alt loading="lazy" width="1280" height="593" srcset="https://blog.unixdev.co.th/content/images/size/w600/2023/08/Screenshot-2566-08-13-at-23.59.24.png 600w, https://blog.unixdev.co.th/content/images/size/w1000/2023/08/Screenshot-2566-08-13-at-23.59.24.png 1000w, https://blog.unixdev.co.th/content/images/2023/08/Screenshot-2566-08-13-at-23.59.24.png 1280w" sizes="(min-width: 720px) 720px"></figure><p>&#xE40;&#xE21;&#xE37;&#xE48;&#xE2D;&#xE40;&#xE02;&#xE49;&#xE32;&#xE21;&#xE32;&#xE41;&#xE25;&#xE49;&#xE27;&#xE43;&#xE2B;&#xE49;&#xE40;&#xE2D;&#xE32;&#xE40;&#xE21;&#xE32;&#xE2A;&#xE4C;&#xE44;&#xE1B;&#xE27;&#xE32;&#xE07;&#xE44;&#xE27;&#xE49;&#xE1A;&#xE19;&#xE0A;&#xE37;&#xE48;&#xE2D; account &#xE02;&#xE2D;&#xE07;&#xE40;&#xE23;&#xE32;&#xE41;&#xE25;&#xE49;&#xE27;&#xE08;&#xE30;&#xE21;&#xE35;&#xE41;&#xE16;&#xE1A; menu &#xE02;&#xE36;&#xE49;&#xE19;&#xE21;&#xE32;&#xE43;&#xE2B;&#xE49;&#xE40;&#xE23;&#xE32;&#xE01;&#xE14;&#xE17;&#xE35;&#xE48; My Credentials </p><figure class="kg-card kg-image-card"><img src="https://blog.unixdev.co.th/content/images/2023/08/Screenshot-2566-08-14-at-00.00.51-1.png" class="kg-image" alt loading="lazy" width="450" height="296"></figure><p>&#xE2B;&#xE25;&#xE31;&#xE07;&#xE08;&#xE32;&#xE01;&#xE17;&#xE35;&#xE48;&#xE40;&#xE02;&#xE49;&#xE32;&#xE21;&#xE32;&#xE44;&#xE14;&#xE49;&#xE41;&#xE25;&#xE49;&#xE27;&#xE43;&#xE2B;&#xE49;&#xE40;&#xE23;&#xE32;&#xE01;&#xE14;&#xE44;&#xE1B;&#xE17;&#xE35;&#xE48; Access Keys</p><figure class="kg-card kg-image-card"><img src="https://blog.unixdev.co.th/content/images/2023/08/Screenshot-2566-08-14-at-00.10.18-5.png" class="kg-image" alt loading="lazy" width="1233" height="541" srcset="https://blog.unixdev.co.th/content/images/size/w600/2023/08/Screenshot-2566-08-14-at-00.10.18-5.png 600w, https://blog.unixdev.co.th/content/images/size/w1000/2023/08/Screenshot-2566-08-14-at-00.10.18-5.png 1000w, https://blog.unixdev.co.th/content/images/2023/08/Screenshot-2566-08-14-at-00.10.18-5.png 1233w" sizes="(min-width: 720px) 720px"></figure><p>&#xE2B;&#xE25;&#xE31;&#xE07;&#xE08;&#xE32;&#xE01;&#xE19;&#xE31;&#xE49;&#xE19;&#xE43;&#xE2B;&#xE49;&#xE01;&#xE14; Create Access Key &#xE41;&#xE25;&#xE49;&#xE27;&#xE01;&#xE14; OK &#xE44;&#xE14;&#xE49;&#xE40;&#xE25;&#xE22;</p><figure class="kg-card kg-image-card"><img src="https://blog.unixdev.co.th/content/images/2023/08/Screenshot-2566-08-14-at-00.19.30.png" class="kg-image" alt loading="lazy" width="1238" height="551" srcset="https://blog.unixdev.co.th/content/images/size/w600/2023/08/Screenshot-2566-08-14-at-00.19.30.png 600w, https://blog.unixdev.co.th/content/images/size/w1000/2023/08/Screenshot-2566-08-14-at-00.19.30.png 1000w, https://blog.unixdev.co.th/content/images/2023/08/Screenshot-2566-08-14-at-00.19.30.png 1238w" sizes="(min-width: 720px) 720px"></figure><p>&#xE2B;&#xE25;&#xE31;&#xE07;&#xE08;&#xE32;&#xE01;&#xE19;&#xE31;&#xE49;&#xE19;&#xE08;&#xE30;&#xE21;&#xE35;&#xE2B;&#xE19;&#xE49;&#xE32;&#xE15;&#xE48;&#xE32;&#xE07;&#xE43;&#xE2B;&#xE49;&#xE40;&#xE23;&#xE32;&#xE01;&#xE14; download Access Key &#xE01;&#xE47;&#xE43;&#xE2B;&#xE49;&#xE40;&#xE23;&#xE32; download &#xE21;&#xE32;&#xE40;&#xE01;&#xE47;&#xE1A;&#xE44;&#xE27;&#xE49;&#xE40;&#xE25;&#xE22;</p><figure class="kg-card kg-image-card"><img src="https://blog.unixdev.co.th/content/images/2023/08/Screenshot-2566-08-14-at-00.21.25.png" class="kg-image" alt loading="lazy" width="339" height="173"></figure><p></p><p><strong>Step 2 </strong>&#xE15;&#xE34;&#xE14;&#xE15;&#xE31;&#xE49;&#xE07; agent &#xE17;&#xE35;&#xE48;&#xE40;&#xE04;&#xE23;&#xE37;&#xE48;&#xE2D;&#xE07; VM &#xE41;&#xE25;&#xE30;&#xE2A;&#xE31;&#xE48;&#xE07;&#xE43;&#xE2B;&#xE49; agent &#xE17;&#xE33;&#xE07;&#xE32;&#xE19;&#xE41;&#xE25;&#xE30; config &#xE04;&#xE48;&#xE32;&#xE15;&#xE48;&#xE32;&#xE07;&#xE46;</p><p>&#xE43;&#xE19; blog &#xE19;&#xE35;&#xE49;&#xE1C;&#xE21;&#xE02;&#xE2D;&#xE43;&#xE0A;&#xE49;&#xE40;&#xE04;&#xE23;&#xE37;&#xE48;&#xE2D;&#xE07; VM &#xE17;&#xE35;&#xE48;&#xE40;&#xE1B;&#xE47;&#xE19; Ubuntu 20.04 LTS on-premise &#xE43;&#xE19;&#xE01;&#xE32;&#xE23; demo &#xE43;&#xE2B;&#xE49;&#xE14;&#xE39;&#xE19;&#xE30;&#xE04;&#xE23;&#xE31;&#xE1A;</p><p>&#xE43;&#xE2B;&#xE49;&#xE40;&#xE23;&#xE32;&#xE01;&#xE14;&#xE44;&#xE1B;&#xE17;&#xE35;&#xE48;&#xE41;&#xE16;&#xE1A; 3 &#xE02;&#xE35;&#xE14;&#xE14;&#xE49;&#xE32;&#xE19;&#xE0B;&#xE49;&#xE32;&#xE22;&#xE21;&#xE37;&#xE2D;&#xE41;&#xE25;&#xE49;&#xE27;&#xE04;&#xE49;&#xE19;&#xE2B;&#xE32; SMS &#xE41;&#xE25;&#xE49;&#xE27;&#xE01;&#xE14;&#xE40;&#xE02;&#xE49;&#xE32;&#xE44;&#xE1B;&#xE17;&#xE35;&#xE48; Server Migration Service &#xE44;&#xE14;&#xE49;&#xE40;&#xE25;&#xE22;</p><figure class="kg-card kg-image-card kg-card-hascaption"><img src="https://blog.unixdev.co.th/content/images/2023/08/Screenshot-2566-08-14-at-00.36.47.png" class="kg-image" alt loading="lazy" width="1131" height="406" srcset="https://blog.unixdev.co.th/content/images/size/w600/2023/08/Screenshot-2566-08-14-at-00.36.47.png 600w, https://blog.unixdev.co.th/content/images/size/w1000/2023/08/Screenshot-2566-08-14-at-00.36.47.png 1000w, https://blog.unixdev.co.th/content/images/2023/08/Screenshot-2566-08-14-at-00.36.47.png 1131w" sizes="(min-width: 720px) 720px"><figcaption>SMS &#xE2D;&#xE31;&#xE19;&#xE19;&#xE35;&#xE49;&#xE44;&#xE21;&#xE48;&#xE44;&#xE14;&#xE49;&#xE2B;&#xE21;&#xE32;&#xE22;&#xE16;&#xE36;&#xE07; Short Message Service &#xE19;&#xE30;&#xE04;&#xE23;&#xE31;&#xE1A;55555555</figcaption></figure><p>&#xE2B;&#xE25;&#xE31;&#xE07;&#xE08;&#xE32;&#xE01;&#xE17;&#xE35;&#xE48;&#xE40;&#xE23;&#xE32;&#xE40;&#xE02;&#xE49;&#xE32;&#xE21;&#xE32;&#xE2B;&#xE19;&#xE49;&#xE32; &#xA0;Server Migration Service &#xE01;&#xE47;&#xE43;&#xE2B;&#xE49;&#xE40;&#xE23;&#xE32;&#xE01;&#xE14;&#xE40;&#xE02;&#xE49;&#xE32;&#xE44;&#xE1B;&#xE17;&#xE35;&#xE48; Agents &#xE17;&#xE32;&#xE07;&#xE14;&#xE49;&#xE32;&#xE19;&#xE0B;&#xE49;&#xE32;&#xE22;&#xE21;&#xE37;&#xE2D;&#xE40;&#xE25;&#xE22;</p><figure class="kg-card kg-image-card"><img src="https://blog.unixdev.co.th/content/images/2023/08/Screenshot-2566-08-14-at-00.45.11-1.png" class="kg-image" alt loading="lazy" width="1280" height="981" srcset="https://blog.unixdev.co.th/content/images/size/w600/2023/08/Screenshot-2566-08-14-at-00.45.11-1.png 600w, https://blog.unixdev.co.th/content/images/size/w1000/2023/08/Screenshot-2566-08-14-at-00.45.11-1.png 1000w, https://blog.unixdev.co.th/content/images/2023/08/Screenshot-2566-08-14-at-00.45.11-1.png 1280w" sizes="(min-width: 720px) 720px"></figure><p>&#xE40;&#xE21;&#xE37;&#xE48;&#xE2D;&#xE40;&#xE02;&#xE49;&#xE32;&#xE21;&#xE32;&#xE41;&#xE25;&#xE49;&#xE27;&#xE40;&#xE23;&#xE32;&#xE01;&#xE47;&#xE08;&#xE30;&#xE40;&#xE2B;&#xE47;&#xE19;&#xE27;&#xE34;&#xE18;&#xE35;&#xE01;&#xE32;&#xE23;&#xE15;&#xE34;&#xE14;&#xE15;&#xE31;&#xE49;&#xE07; agent &#xE17;&#xE35;&#xE48;&#xE17;&#xE32;&#xE07; Huawei &#xE17;&#xE33;&#xE44;&#xE27;&#xE49;&#xE43;&#xE2B;&#xE49;&#xE40;&#xE23;&#xE32; &#xE40;&#xE19;&#xE37;&#xE48;&#xE2D;&#xE07;&#xE08;&#xE32;&#xE01;&#xE40;&#xE04;&#xE23;&#xE37;&#xE48;&#xE2D;&#xE07; VM &#xE02;&#xE2D;&#xE07;&#xE1C;&#xE21;&#xE40;&#xE1B;&#xE47;&#xE19; Ubuntu &#xE1C;&#xE21;&#xE08;&#xE30;&#xE43;&#xE0A;&#xE49;&#xE27;&#xE34;&#xE18;&#xE35;&#xE02;&#xE2D;&#xE07; linux &#xE19;&#xE30;&#xE04;&#xE23;&#xE31;&#xE1A;</p><figure class="kg-card kg-image-card"><img src="https://blog.unixdev.co.th/content/images/2023/08/Screenshot-2566-08-14-at-00.52.31.png" class="kg-image" alt loading="lazy" width="1063" height="661" srcset="https://blog.unixdev.co.th/content/images/size/w600/2023/08/Screenshot-2566-08-14-at-00.52.31.png 600w, https://blog.unixdev.co.th/content/images/size/w1000/2023/08/Screenshot-2566-08-14-at-00.52.31.png 1000w, https://blog.unixdev.co.th/content/images/2023/08/Screenshot-2566-08-14-at-00.52.31.png 1063w" sizes="(min-width: 720px) 720px"></figure><p>&#xE43;&#xE2B;&#xE49;&#xE40;&#xE23;&#xE32; ssh &#xE40;&#xE02;&#xE49;&#xE32;&#xE44;&#xE1B;&#xE17;&#xE35;&#xE48;&#xE40;&#xE04;&#xE23;&#xE37;&#xE48;&#xE2D;&#xE07; server &#xE02;&#xE2D;&#xE07;&#xE40;&#xE23;&#xE32;&#xE41;&#xE25;&#xE30; download Agent &#xE41;&#xE25;&#xE30; SHA256<br># wget -t 3 -T 15 <a href="https://sms-agent-2-0.obs.ap-southeast-1.myhuaweicloud.com/SMS-Agent.tar.gz?ref=blog.unixdev.co.th">https://sms-agent-2-0.obs.ap-southeast-1.myhuaweicloud.com/SMS-Agent.tar.gz</a><br># wget -t 3 -T 15 <a href="https://sms-agent-2-0.obs.ap-southeast-1.myhuaweicloud.com/SMS-Agent.tar.gz.sha256?ref=blog.unixdev.co.th">https://sms-agent-2-0.obs.ap-southeast-1.myhuaweicloud.com/SMS-Agent.tar.gz.sha256</a></p><figure class="kg-card kg-image-card"><img src="https://blog.unixdev.co.th/content/images/2023/08/Screenshot-2566-08-14-at-01.02.38.png" class="kg-image" alt loading="lazy" width="998" height="492" srcset="https://blog.unixdev.co.th/content/images/size/w600/2023/08/Screenshot-2566-08-14-at-01.02.38.png 600w, https://blog.unixdev.co.th/content/images/2023/08/Screenshot-2566-08-14-at-01.02.38.png 998w" sizes="(min-width: 720px) 720px"></figure><p>&#xE2B;&#xE25;&#xE31;&#xE07;&#xE08;&#xE32;&#xE01;&#xE19;&#xE31;&#xE49;&#xE19;&#xE01;&#xE47;&#xE43;&#xE2B;&#xE49;&#xE40;&#xE23;&#xE32;&#xE41;&#xE15;&#xE01;&#xE44;&#xE1F;&#xE25;&#xE4C;&#xE41;&#xE25;&#xE30; run install script<br># tar -zxvf SMS-Agent.tar.gz &#xA0; &amp;&amp; cd SMS-Agent &#xA0;&amp;&amp; &#xA0; &#xA0;./startup.sh</p><figure class="kg-card kg-image-card"><img src="https://blog.unixdev.co.th/content/images/2023/08/Screenshot-2566-08-14-at-13.32.28.png" class="kg-image" alt loading="lazy" width="1000" height="203" srcset="https://blog.unixdev.co.th/content/images/size/w600/2023/08/Screenshot-2566-08-14-at-13.32.28.png 600w, https://blog.unixdev.co.th/content/images/2023/08/Screenshot-2566-08-14-at-13.32.28.png 1000w" sizes="(min-width: 720px) 720px"></figure><p>&#xE2B;&#xE25;&#xE31;&#xE07;&#xE08;&#xE32;&#xE01;&#xE41;&#xE15;&#xE01;&#xE44;&#xE1F;&#xE25;&#xE4C;&#xE40;&#xE2A;&#xE23;&#xE47;&#xE08;&#xE01;&#xE47;&#xE08;&#xE30;&#xE21;&#xE35;&#xE04;&#xE33;&#xE16;&#xE32;&#xE21;&#xE02;&#xE36;&#xE49;&#xE19;&#xE21;&#xE32;&#xE27;&#xE48;&#xE32; Do you agree? &#xE43;&#xE2B;&#xE49;&#xE15;&#xE2D;&#xE1A; y &#xE44;&#xE1B;&#xE40;&#xE25;&#xE22;&#xE04;&#xE23;&#xE31;&#xE1A;<br>&#xE41;&#xE25;&#xE30;&#xE21;&#xE31;&#xE19;&#xE08;&#xE30;&#xE16;&#xE32;&#xE21; Access key &#xE41;&#xE25;&#xE30; Secret Access key &#xE02;&#xE2D;&#xE07;&#xE40;&#xE23;&#xE32; &#xE01;&#xE47;&#xE43;&#xE2B;&#xE49;&#xE40;&#xE23;&#xE32;&#xE44;&#xE1B;&#xE14;&#xE39;&#xE08;&#xE32;&#xE01;&#xE44;&#xE1F;&#xE25;&#xE4C;&#xE17;&#xE35;&#xE48;&#xE40;&#xE23;&#xE32; download &#xE21;&#xE32;&#xE08;&#xE32;&#xE01; step &#xE17;&#xE35;&#xE48; 1 &#xE44;&#xE14;&#xE49;&#xE40;&#xE25;&#xE22;</p><figure class="kg-card kg-image-card kg-card-hascaption"><img src="https://blog.unixdev.co.th/content/images/2023/08/Screenshot-2566-08-14-at-13.47.43.png" class="kg-image" alt loading="lazy" width="583" height="97"><figcaption>&#xE43;&#xE2B;&#xE49; Copy Access key &#xE41;&#xE25;&#xE30; Secret Access key &#xE21;&#xE32;&#xE43;&#xE2A;&#xE48;&#xE44;&#xE14;&#xE49;&#xE40;&#xE25;&#xE22;</figcaption></figure><p>&#xE2B;&#xE25;&#xE31;&#xE07;&#xE08;&#xE32;&#xE01;&#xE17;&#xE35;&#xE48;&#xE15;&#xE34;&#xE14;&#xE15;&#xE31;&#xE49;&#xE07; agent &#xE40;&#xE2A;&#xE23;&#xE47;&#xE08;&#xE41;&#xE25;&#xE49;&#xE27; &#xE08;&#xE30;&#xE44;&#xE14;&#xE49;&#xE2B;&#xE19;&#xE49;&#xE32;&#xE15;&#xE32;&#xE41;&#xE1A;&#xE1A;&#xE19;&#xE35;&#xE49;&#xE40;&#xE25;&#xE22;(&#xE41;&#xE15;&#xE48;&#xE16;&#xE49;&#xE32;&#xE21;&#xE35; error &#xE02;&#xE36;&#xE49;&#xE19;&#xE21;&#xE32;&#xE2A;&#xE32;&#xE21;&#xE32;&#xE23;&#xE16;&#xE2B;&#xE32;&#xE2A;&#xE32;&#xE40;&#xE2B;&#xE15;&#xE38;&#xE44;&#xE14;&#xE49;&#xE17;&#xE35;&#xE48; <a href="https://support.huaweicloud.com/intl/en-us/api-sms/ErrorCode.html?ref=blog.unixdev.co.th">Error Codes</a> ) &#xE2B;&#xE25;&#xE31;&#xE07;&#xE08;&#xE32;&#xE01;&#xE17;&#xE35;&#xE48;&#xE40;&#xE23;&#xE32;&#xE25;&#xE07; agent &#xE2A;&#xE33;&#xE40;&#xE23;&#xE47;&#xE08;&#xE41;&#xE25;&#xE49;&#xE27;&#xE40;&#xE04;&#xE23;&#xE37;&#xE48;&#xE2D;&#xE07; VM &#xE02;&#xE2D;&#xE07;&#xE40;&#xE23;&#xE32;&#xE01;&#xE47;&#xE1E;&#xE23;&#xE49;&#xE2D;&#xE21;&#xE01;&#xE31;&#xE19;&#xE41;&#xE25;&#xE49;&#xE27;&#xE40;&#xE23;&#xE32;&#xE01;&#xE47;&#xE44;&#xE1B;&#xE17;&#xE35;&#xE48;&#xE2B;&#xE19;&#xE49;&#xE32; Huawei cloud console &#xE01;&#xE31;&#xE19;&#xE44;&#xE14;&#xE49;&#xE40;&#xE25;&#xE22;</p><figure class="kg-card kg-image-card"><img src="https://blog.unixdev.co.th/content/images/2023/08/Screenshot-2566-08-14-at-13.50.10.png" class="kg-image" alt loading="lazy" width="1000" height="147" srcset="https://blog.unixdev.co.th/content/images/size/w600/2023/08/Screenshot-2566-08-14-at-13.50.10.png 600w, https://blog.unixdev.co.th/content/images/2023/08/Screenshot-2566-08-14-at-13.50.10.png 1000w" sizes="(min-width: 720px) 720px"></figure><p></p><p><strong>Step 3</strong> config &#xE04;&#xE48;&#xE32;&#xE15;&#xE48;&#xE32;&#xE07;&#xE46;</p><p>&#xE2B;&#xE25;&#xE31;&#xE07;&#xE08;&#xE32;&#xE01;&#xE17;&#xE35;&#xE48;&#xE40;&#xE02;&#xE49;&#xE32;&#xE21;&#xE32;&#xE2B;&#xE19;&#xE49;&#xE32; Huawei cloud console &#xE41;&#xE25;&#xE49;&#xE27;&#xE01;&#xE47;&#xE43;&#xE2B;&#xE49;&#xE40;&#xE23;&#xE32;&#xE40;&#xE02;&#xE49;&#xE32;&#xE44;&#xE1B; Server Migration Service &#xE41;&#xE25;&#xE49;&#xE27;&#xE01;&#xE14;&#xE44;&#xE1B;&#xE17;&#xE35;&#xE48; Servers &#xE40;&#xE23;&#xE32;&#xE08;&#xE30;&#xE40;&#xE2B;&#xE47;&#xE19;&#xE40;&#xE04;&#xE23;&#xE37;&#xE48;&#xE2D;&#xE07; VM &#xE17;&#xE35;&#xE48;&#xE40;&#xE23;&#xE32;&#xE1E;&#xE36;&#xE48;&#xE07;&#xE08;&#xE30;&#xE25;&#xE07; Agent &#xE2A;&#xE33;&#xE40;&#xE23;&#xE47;&#xE08;&#xE44;&#xE1B;&#xE40;&#xE21;&#xE37;&#xE48;&#xE2D;&#xE01;&#xE35;&#xE49; &#xE01;&#xE47;&#xE43;&#xE2B;&#xE49;&#xE40;&#xE23;&#xE32;&#xE01;&#xE14;&#xE44;&#xE1B;&#xE17;&#xE35;&#xE48; Configure &#xE44;&#xE14;&#xE49;&#xE40;&#xE25;&#xE22;</p><figure class="kg-card kg-image-card"><img src="https://blog.unixdev.co.th/content/images/2023/08/Screenshot-2566-08-14-at-14.06.15.png" class="kg-image" alt loading="lazy" width="1235" height="466" srcset="https://blog.unixdev.co.th/content/images/size/w600/2023/08/Screenshot-2566-08-14-at-14.06.15.png 600w, https://blog.unixdev.co.th/content/images/size/w1000/2023/08/Screenshot-2566-08-14-at-14.06.15.png 1000w, https://blog.unixdev.co.th/content/images/2023/08/Screenshot-2566-08-14-at-14.06.15.png 1235w" sizes="(min-width: 720px) 720px"></figure><p>&#xE2B;&#xE25;&#xE31;&#xE07;&#xE08;&#xE32;&#xE01;&#xE01;&#xE14;&#xE44;&#xE1B;&#xE17;&#xE35;&#xE48; configure &#xE41;&#xE25;&#xE49;&#xE27;&#xE40;&#xE23;&#xE32;&#xE08;&#xE30;&#xE40;&#xE02;&#xE49;&#xE32;&#xE21;&#xE32;&#xE2A;&#xE39;&#xE48;&#xE2B;&#xE19;&#xE49;&#xE32; Configure Migration &#xE43;&#xE2B;&#xE49;&#xE40;&#xE23;&#xE32;&#xE17;&#xE33;&#xE01;&#xE32;&#xE23; config &#xE04;&#xE48;&#xE32;&#xE15;&#xE48;&#xE32;&#xE07;&#xE46; &#xE15;&#xE32;&#xE21;&#xE17;&#xE35;&#xE48;&#xE40;&#xE23;&#xE32;&#xE15;&#xE49;&#xE2D;&#xE07;&#xE01;&#xE32;&#xE23;&#xE44;&#xE14;&#xE49;&#xE40;&#xE25;&#xE22;<br><strong>&#xE23;&#xE32;&#xE22;&#xE25;&#xE30;&#xE40;&#xE2D;&#xE35;&#xE22;&#xE14;&#xE02;&#xE2D;&#xE07;&#xE01;&#xE32;&#xE23; config </strong>&#xE08;&#xE30;&#xE21;&#xE35;&#xE1B;&#xE23;&#xE30;&#xE21;&#xE32;&#xE13;&#xE19;&#xE35;&#xE49;&#xE04;&#xE23;&#xE31;&#xE1A;<br><strong>- Migration Template: </strong>&#xE43;&#xE2B;&#xE49;&#xE43;&#xE0A;&#xE49;&#xE40;&#xE1B;&#xE47;&#xE19; default &#xE44;&#xE1B;&#xE40;&#xE25;&#xE22;&#xE01;&#xE47;&#xE44;&#xE14;&#xE49;&#xE04;&#xE23;&#xE31;&#xE1A;<br><strong>- Network Type: </strong>&#xE43;&#xE2B;&#xE49;&#xE40;&#xE25;&#xE37;&#xE2D;&#xE01;&#xE43;&#xE0A;&#xE49;&#xE40;&#xE1B;&#xE47;&#xE19; Public &#xE44;&#xE1B;&#xE40;&#xE25;&#xE22;&#xE04;&#xE23;&#xE31;&#xE1A;(&#xE41;&#xE1A;&#xE1A; Privete &#xE15;&#xE49;&#xE2D;&#xE07;&#xE44;&#xE1B;&#xE17;&#xE33;&#xE01;&#xE32;&#xE23; config network &#xE0B;&#xE36;&#xE48;&#xE07;&#xE04;&#xE48;&#xE2D;&#xE19;&#xE02;&#xE49;&#xE32;&#xE07;&#xE27;&#xE38;&#xE48;&#xE19;&#xE27;&#xE32;&#xE22;&#xE40;&#xE25;&#xE22;&#xE02;&#xE2D;&#xE02;&#xE49;&#xE32;&#xE21;&#xE19;&#xE30;&#xE04;&#xE23;&#xE31;&#xE1A;)<br><strong>- Migration Rate Limit: </strong>&#xE43;&#xE2B;&#xE49;&#xE43;&#xE2A;&#xE48;&#xE40;&#xE1B;&#xE47;&#xE19; 0 &#xE44;&#xE1B;&#xE40;&#xE25;&#xE22;&#xE04;&#xE23;&#xE31;&#xE1A;(0 &#xE2B;&#xE21;&#xE32;&#xE22;&#xE16;&#xE36;&#xE07;&#xE44;&#xE21;&#xE48;&#xE08;&#xE33;&#xE01;&#xE31;&#xE14; rate limit) &#xE41;&#xE15;&#xE48;&#xE16;&#xE49;&#xE32;&#xE43;&#xE04;&#xE23;&#xE15;&#xE49;&#xE2D;&#xE07;&#xE01;&#xE32;&#xE23;&#xE01;&#xE33;&#xE2B;&#xE19;&#xE14; rate limit &#xE01;&#xE47;&#xE2A;&#xE32;&#xE21;&#xE32;&#xE23;&#xE16;&#xE43;&#xE0A;&#xE49;&#xE04;&#xE48;&#xE32;&#xE17;&#xE35;&#xE48;&#xE15;&#xE49;&#xE2D;&#xE07;&#xE01;&#xE32;&#xE23;&#xE44;&#xE14;&#xE49;&#xE40;&#xE25;&#xE22;<br><strong>- CPU Limit: </strong>&#xE08;&#xE30;&#xE40;&#xE1B;&#xE47;&#xE19;&#xE01;&#xE32;&#xE23;&#xE01;&#xE33;&#xE2B;&#xE19;&#xE14;&#xE04;&#xE48;&#xE32;&#xE02;&#xE2D;&#xE07;&#xE1B;&#xE23;&#xE34;&#xE21;&#xE32;&#xE13; cpu &#xE17;&#xE35;&#xE48; agent &#xE08;&#xE30;&#xE43;&#xE0A;&#xE49;&#xE43;&#xE19;&#xE01;&#xE32;&#xE23; migrate &#xE0B;&#xE36;&#xE48;&#xE07;&#xE21;&#xE35;&#xE2A;&#xE39;&#xE15;&#xE23;&#xE01;&#xE32;&#xE23;&#xE04;&#xE33;&#xE19;&#xE27;&#xE19;&#xE04;&#xE37;&#xE2D; CPU limit (%) = Maximum number of CPU cores allowed for the migration process/Total number of CPU cores x 100 &#xE22;&#xE01;&#xE15;&#xE31;&#xE27;&#xE2D;&#xE22;&#xE48;&#xE32;&#xE07;&#xE40;&#xE0A;&#xE48;&#xE19;&#xE40;&#xE23;&#xE32;&#xE21;&#xE35; cpu &#xE2D;&#xE22;&#xE39;&#xE48; 4 core &#xE15;&#xE49;&#xE2D;&#xE07;&#xE01;&#xE32;&#xE23;&#xE43;&#xE0A;&#xE49;&#xE41;&#xE04;&#xE48; 0.5 core &#xE43;&#xE19;&#xE01;&#xE32;&#xE23; migrate &#xE01;&#xE47;&#xE43;&#xE2B;&#xE49;&#xE40;&#xE2D;&#xE32; CPU limit (%) = (0.5/4 x 100) &#xE08;&#xE30;&#xE44;&#xE14;&#xE49;&#xE40;&#xE1B;&#xE47;&#xE19; CPU limit (%) = 12.5 &#xE01;&#xE47;&#xE1B;&#xE31;&#xE14;&#xE02;&#xE36;&#xE49;&#xE19;&#xE40;&#xE1B;&#xE47;&#xE19; 13 &#xE40;&#xE25;&#xE22;&#xE04;&#xE23;&#xE31;&#xE1A; &#xE2B;&#xE23;&#xE37;&#xE2D;&#xE16;&#xE49;&#xE32;&#xE44;&#xE21;&#xE48;&#xE43;&#xE2A;&#xE48;&#xE04;&#xE48;&#xE32;&#xE01;&#xE47;&#xE08;&#xE30;&#xE40;&#xE1B;&#xE47;&#xE19;&#xE01;&#xE32;&#xE23; allow &#xE43;&#xE2B;&#xE49;&#xE2A;&#xE32;&#xE21;&#xE32;&#xE23;&#xE16;&#xE43;&#xE0A;&#xE49; cpu &#xE17;&#xE31;&#xE49;&#xE07;&#xE2B;&#xE21;&#xE14;&#xE43;&#xE19;&#xE01;&#xE32;&#xE23; migrate &#xE44;&#xE14;&#xE49;&#xE40;&#xE25;&#xE22;<br><strong>- Memory Limit:</strong> &#xE08;&#xE30;&#xE40;&#xE1B;&#xE47;&#xE19;&#xE01;&#xE32;&#xE23;&#xE01;&#xE33;&#xE2B;&#xE19;&#xE14;&#xE04;&#xE48;&#xE32;&#xE02;&#xE2D;&#xE07;&#xE1B;&#xE23;&#xE34;&#xE21;&#xE32;&#xE13; memory &#xE17;&#xE35;&#xE48; agent &#xE08;&#xE30;&#xE43;&#xE0A;&#xE49;&#xE43;&#xE19;&#xE01;&#xE32;&#xE23; migrate &#xE42;&#xE14;&#xE22;&#xE15;&#xE49;&#xE2D;&#xE07;&#xE17;&#xE35;&#xE48;&#xE04;&#xE48;&#xE32;&#xE02;&#xE36;&#xE49;&#xE19;&#xE15;&#xE48;&#xE33;&#xE17;&#xE35;&#xE48; 200 MB &#xE41;&#xE15;&#xE48;&#xE44;&#xE21;&#xE48;&#xE40;&#xE01;&#xE34;&#xE19; 1,000 MB &#xE2B;&#xE23;&#xE37;&#xE2D;&#xE44;&#xE21;&#xE48;&#xE43;&#xE2A;&#xE48;&#xE04;&#xE48;&#xE32;&#xE01;&#xE47;&#xE08;&#xE30;&#xE40;&#xE1B;&#xE47;&#xE19;&#xE01;&#xE32;&#xE23; allow &#xE43;&#xE2B;&#xE49;&#xE2A;&#xE32;&#xE21;&#xE32;&#xE23;&#xE16;&#xE43;&#xE0A;&#xE49; memory &#xE17;&#xE31;&#xE49;&#xE07;&#xE2B;&#xE21;&#xE14;&#xE43;&#xE19;&#xE01;&#xE32;&#xE23; migrate &#xE44;&#xE14;&#xE49;&#xE40;&#xE25;&#xE22;<br><strong>- Disk Throughput Limit: </strong>&#xE08;&#xE30;&#xE40;&#xE1B;&#xE47;&#xE19;&#xE01;&#xE32;&#xE23;&#xE01;&#xE33;&#xE2B;&#xE19;&#xE14;&#xE04;&#xE48;&#xE32;&#xE02;&#xE2D;&#xE07;&#xE1B;&#xE23;&#xE34;&#xE21;&#xE32;&#xE13; Disk Throughput &#xE17;&#xE35;&#xE48; agent &#xE08;&#xE30;&#xE43;&#xE0A;&#xE49;&#xE43;&#xE19;&#xE01;&#xE32;&#xE23; migrate &#xE42;&#xE14;&#xE22;&#xE15;&#xE49;&#xE2D;&#xE07;&#xE17;&#xE35;&#xE48;&#xE04;&#xE48;&#xE32;&#xE02;&#xE36;&#xE49;&#xE19;&#xE15;&#xE48;&#xE33;&#xE17;&#xE35;&#xE48; 10 MB/s &#xE41;&#xE15;&#xE48;&#xE44;&#xE21;&#xE48;&#xE40;&#xE01;&#xE34;&#xE19; 1,000 MB/s &#xE2B;&#xE23;&#xE37;&#xE2D;&#xE44;&#xE21;&#xE48;&#xE43;&#xE2A;&#xE48;&#xE04;&#xE48;&#xE32;&#xE01;&#xE47;&#xE08;&#xE30;&#xE40;&#xE1B;&#xE47;&#xE19;&#xE01;&#xE32;&#xE23; allow &#xE43;&#xE2B;&#xE49;&#xE2A;&#xE32;&#xE21;&#xE32;&#xE23;&#xE16;&#xE43;&#xE0A;&#xE49; Disk Throughput &#xE17;&#xE31;&#xE49;&#xE07;&#xE2B;&#xE21;&#xE14;&#xE43;&#xE19;&#xE01;&#xE32;&#xE23; migrate &#xE44;&#xE14;&#xE49;&#xE40;&#xE25;&#xE22;<br><strong>- Migration Method:</strong> &#xE21;&#xE35;&#xE41;&#xE04;&#xE48; file-level &#xE01;&#xE47;&#xE43;&#xE0A;&#xE49; file-level &#xE40;&#xE25;&#xE22;&#xE04;&#xE23;&#xE31;&#xE1A; :)<br><strong>- Continuous Synchronization:</strong> &#xE1B;&#xE25;&#xE48;&#xE2D;&#xE22;&#xE40;&#xE1B;&#xE47;&#xE19;&#xE04;&#xE48;&#xE32; default &#xE40;&#xE25;&#xE22;&#xE04;&#xE23;&#xE31;&#xE1A;<br><strong>- Partition Resizing:</strong> &#xE15;&#xE31;&#xE49;&#xE07;&#xE04;&#xE48;&#xE32;&#xE01;&#xE32;&#xE23; resize partition<br><strong>- Start Target Upon Launch:</strong> &#xE15;&#xE31;&#xE49;&#xE07;&#xE04;&#xE48;&#xE32;&#xE27;&#xE48;&#xE32;&#xE40;&#xE04;&#xE23;&#xE37;&#xE48;&#xE2D;&#xE07;&#xE43;&#xE2B;&#xE21;&#xE48;&#xE17;&#xE35;&#xE48; migrate &#xE40;&#xE2A;&#xE23;&#xE47;&#xE08;&#xE41;&#xE25;&#xE49;&#xE27;&#xE08;&#xE30;&#xE40;&#xE1B;&#xE34;&#xE14;&#xE40;&#xE04;&#xE23;&#xE37;&#xE48;&#xE2D;&#xE07;&#xE40;&#xE25;&#xE22;&#xE2B;&#xE23;&#xE37;&#xE2D;&#xE44;&#xE21;&#xE48;<br><strong>- Measure Network Performance:</strong> &#xE15;&#xE31;&#xE49;&#xE07;&#xE04;&#xE48;&#xE32;&#xE27;&#xE48;&#xE32;&#xE08;&#xE30;&#xE43;&#xE2B;&#xE49;&#xE41;&#xE2A;&#xE14;&#xE07; metric &#xE15;&#xE48;&#xE32;&#xE07;&#xE46; &#xE15;&#xE2D;&#xE19; migrate &#xE2B;&#xE23;&#xE37;&#xE2D;&#xE44;&#xE21;&#xE48;<br><strong>- Enable Concurrency:</strong> &#xE40;&#xE1B;&#xE47;&#xE19;&#xE01;&#xE32;&#xE23;&#xE15;&#xE31;&#xE49;&#xE07;&#xE04;&#xE48;&#xE32; Concurrency &#xE43;&#xE19;&#xE01;&#xE32;&#xE23; migration</p><figure class="kg-card kg-image-card kg-card-hascaption"><img src="https://blog.unixdev.co.th/content/images/2023/08/Screenshot-2566-08-14-at-15.54.27.png" class="kg-image" alt loading="lazy" width="1238" height="1230" srcset="https://blog.unixdev.co.th/content/images/size/w600/2023/08/Screenshot-2566-08-14-at-15.54.27.png 600w, https://blog.unixdev.co.th/content/images/size/w1000/2023/08/Screenshot-2566-08-14-at-15.54.27.png 1000w, https://blog.unixdev.co.th/content/images/2023/08/Screenshot-2566-08-14-at-15.54.27.png 1238w" sizes="(min-width: 720px) 720px"><figcaption>&#xE43;&#xE19;&#xE15;&#xE31;&#xE27;&#xE2D;&#xE22;&#xE48;&#xE32;&#xE07;&#xE1C;&#xE21;&#xE02;&#xE2D;&#xE43;&#xE0A;&#xE49; config &#xE15;&#xE32;&#xE21;&#xE19;&#xE35;&#xE49;&#xE19;&#xE30;&#xE04;&#xE23;&#xE31;&#xE1A;</figcaption></figure><p>&#xE40;&#xE21;&#xE37;&#xE48;&#xE2D;&#xE40;&#xE23;&#xE32;&#xE15;&#xE31;&#xE49;&#xE07;&#xE04;&#xE48;&#xE32;&#xE40;&#xE2A;&#xE23;&#xE47;&#xE08;&#xE41;&#xE25;&#xE49;&#xE27;&#xE01;&#xE47;&#xE43;&#xE2B;&#xE49;&#xE01;&#xE14;&#xE1B;&#xE38;&#xE48;&#xE21; Next: Configure Target &#xE44;&#xE14;&#xE49;&#xE40;&#xE25;&#xE22;<br>&#xE2B;&#xE25;&#xE31;&#xE01;&#xE08;&#xE32;&#xE01;&#xE19;&#xE31;&#xE49;&#xE19;&#xE21;&#xE31;&#xE19;&#xE01;&#xE47;&#xE08;&#xE30;&#xE19;&#xE33;&#xE40;&#xE23;&#xE32;&#xE40;&#xE02;&#xE49;&#xE32;&#xE21;&#xE32;&#xE2A;&#xE39;&#xE48;&#xE2B;&#xE19;&#xE49;&#xE32; Configure Target &#xE0B;&#xE36;&#xE48;&#xE07;&#xE08;&#xE30;&#xE43;&#xE2B;&#xE49;&#xE40;&#xE23;&#xE32;&#xE15;&#xE31;&#xE49;&#xE07;&#xE04;&#xE48;&#xE32;&#xE15;&#xE48;&#xE32;&#xE07;&#xE46; &#xE02;&#xE2D;&#xE07;&#xE40;&#xE04;&#xE23;&#xE37;&#xE48;&#xE2D;&#xE07; VM &#xE17;&#xE35;&#xE48;&#xE40;&#xE23;&#xE32;&#xE08;&#xE30;&#xE40;&#xE1B;&#xE34;&#xE14;&#xE02;&#xE36;&#xE49;&#xE19;&#xE21;&#xE32;&#xE1A;&#xE19; Huawei cloud<br><strong>&#xE23;&#xE32;&#xE22;&#xE25;&#xE30;&#xE40;&#xE2D;&#xE35;&#xE22;&#xE14;&#xE02;&#xE2D;&#xE07;&#xE01;&#xE32;&#xE23; config </strong><br><strong>- Region: </strong>&#xE40;&#xE23;&#xE32;&#xE2A;&#xE32;&#xE21;&#xE32;&#xE23;&#xE16;&#xE40;&#xE25;&#xE37;&#xE2D;&#xE01;&#xE44;&#xE14;&#xE49;&#xE27;&#xE48;&#xE32;&#xE08;&#xE30;&#xE2A;&#xE23;&#xE49;&#xE32;&#xE07;&#xE40;&#xE04;&#xE23;&#xE37;&#xE48;&#xE2D;&#xE07; VM &#xE43;&#xE19; Datacenter &#xE02;&#xE2D;&#xE07;&#xE1B;&#xE23;&#xE30;&#xE40;&#xE17;&#xE28;&#xE44;&#xE2B;&#xE19;<br><strong>- Project: </strong>&#xE08;&#xE30;&#xE40;&#xE1B;&#xE47;&#xE19;&#xE2A;&#xE48;&#xE27;&#xE19;&#xE17;&#xE35;&#xE48;&#xE43;&#xE2B;&#xE49;&#xE40;&#xE23;&#xE32;&#xE40;&#xE25;&#xE37;&#xE2D;&#xE01;&#xE27;&#xE48;&#xE32;&#xE08;&#xE30;&#xE2A;&#xE23;&#xE49;&#xE32;&#xE07;&#xE43;&#xE19; project &#xE44;&#xE2B;&#xE19;<br><strong>- Server: </strong>&#xE08;&#xE30;&#xE43;&#xE2B;&#xE49;&#xE40;&#xE23;&#xE32;&#xE40;&#xE25;&#xE37;&#xE2D;&#xE01;&#xE27;&#xE48;&#xE32;&#xE08;&#xE30; migrate &#xE44;&#xE1B;&#xE22;&#xE31;&#xE07;&#xE40;&#xE04;&#xE23;&#xE37;&#xE48;&#xE2D;&#xE07;&#xE17;&#xE35;&#xE48;&#xE40;&#xE23;&#xE32;&#xE2A;&#xE23;&#xE49;&#xE32;&#xE07;&#xE44;&#xE27;&#xE49;&#xE41;&#xE25;&#xE49;&#xE27;&#xE2B;&#xE23;&#xE37;&#xE2D;&#xE08;&#xE30;&#xE2A;&#xE23;&#xE49;&#xE32;&#xE07;&#xE40;&#xE1B;&#xE47;&#xE19;&#xE40;&#xE04;&#xE23;&#xE37;&#xE48;&#xE2D;&#xE07;&#xE43;&#xE2B;&#xE21;&#xE48; ***&#xE0B;&#xE36;&#xE48;&#xE07;&#xE43;&#xE19;&#xE17;&#xE35;&#xE48;&#xE19;&#xE35;&#xE49;&#xE1C;&#xE21;&#xE08;&#xE30;&#xE2A;&#xE23;&#xE49;&#xE32;&#xE07;&#xE40;&#xE1B;&#xE47;&#xE19;&#xE40;&#xE04;&#xE23;&#xE37;&#xE48;&#xE2D;&#xE07;&#xE43;&#xE2B;&#xE21;&#xE48;***<br><strong>- Server Template:</strong> &#xE08;&#xE30;&#xE40;&#xE1B;&#xE47;&#xE19;&#xE01;&#xE32;&#xE23;&#xE01;&#xE33;&#xE2B;&#xE19;&#xE14;&#xE27;&#xE48;&#xE32;&#xE08;&#xE30;&#xE2A;&#xE23;&#xE49;&#xE32;&#xE07;&#xE40;&#xE04;&#xE23;&#xE37;&#xE48;&#xE2D;&#xE07;&#xE43;&#xE2B;&#xE21;&#xE48;&#xE43;&#xE19; VPC, Subnet, Security Group &#xE2D;&#xE31;&#xE19;&#xE44;&#xE2B;&#xE19;<br><strong>- Advanced Settings:</strong> &#xE08;&#xE30;&#xE40;&#xE1B;&#xE47;&#xE19;&#xE01;&#xE32;&#xE23;&#xE15;&#xE31;&#xE49;&#xE07;&#xE04;&#xE48;&#xE32;&#xE23;&#xE32;&#xE22;&#xE25;&#xE30;&#xE40;&#xE2D;&#xE35;&#xE22;&#xE14;&#xE15;&#xE48;&#xE32;&#xE07;&#xE46; &#xE02;&#xE2D;&#xE07; VM &#xE1A;&#xE19; Huawei cloud</p><figure class="kg-card kg-image-card"><img src="https://blog.unixdev.co.th/content/images/2023/08/Screenshot-2566-08-14-at-16.50.26.png" class="kg-image" alt loading="lazy" width="1243" height="1230" srcset="https://blog.unixdev.co.th/content/images/size/w600/2023/08/Screenshot-2566-08-14-at-16.50.26.png 600w, https://blog.unixdev.co.th/content/images/size/w1000/2023/08/Screenshot-2566-08-14-at-16.50.26.png 1000w, https://blog.unixdev.co.th/content/images/2023/08/Screenshot-2566-08-14-at-16.50.26.png 1243w" sizes="(min-width: 720px) 720px"></figure><p>&#xE2B;&#xE25;&#xE31;&#xE07;&#xE08;&#xE32;&#xE01;&#xE17;&#xE35;&#xE48;&#xE40;&#xE23;&#xE32;&#xE15;&#xE31;&#xE49;&#xE07;&#xE04;&#xE48;&#xE32;&#xE15;&#xE48;&#xE32;&#xE07;&#xE46; &#xE40;&#xE2A;&#xE23;&#xE47;&#xE08;&#xE41;&#xE25;&#xE49;&#xE27;&#xE01;&#xE47;&#xE01;&#xE14;&#xE1B;&#xE38;&#xE48;&#xE21; Next: Confirm &#xE44;&#xE14;&#xE49;&#xE40;&#xE25;&#xE22; &#xE41;&#xE25;&#xE49;&#xE27;&#xE40;&#xE23;&#xE32;&#xE01;&#xE47;&#xE08;&#xE30;&#xE40;&#xE02;&#xE49;&#xE32;&#xE21;&#xE32;&#xE2A;&#xE39;&#xE48;&#xE2B;&#xE19;&#xE49;&#xE32; confirm &#xE43;&#xE2B;&#xE49;&#xE40;&#xE23;&#xE32;&#xE15;&#xE23;&#xE27;&#xE08;&#xE2A;&#xE2D;&#xE1A;&#xE23;&#xE32;&#xE22;&#xE25;&#xE30;&#xE40;&#xE2D;&#xE35;&#xE22;&#xE14;&#xE02;&#xE2D;&#xE07;&#xE40;&#xE04;&#xE23;&#xE37;&#xE48;&#xE2D;&#xE07;&#xE43;&#xE2B;&#xE49;&#xE40;&#xE23;&#xE35;&#xE22;&#xE1A;&#xE23;&#xE49;&#xE2D;&#xE22;&#xE41;&#xE25;&#xE30;&#xE01;&#xE14;&#xE1B;&#xE38;&#xE48;&#xE21; Save &#xE44;&#xE14;&#xE49;&#xE40;&#xE25;&#xE22;</p><figure class="kg-card kg-image-card"><img src="https://blog.unixdev.co.th/content/images/2023/08/Screenshot-2566-08-14-at-17.15.38.png" class="kg-image" alt loading="lazy" width="1241" height="1195" srcset="https://blog.unixdev.co.th/content/images/size/w600/2023/08/Screenshot-2566-08-14-at-17.15.38.png 600w, https://blog.unixdev.co.th/content/images/size/w1000/2023/08/Screenshot-2566-08-14-at-17.15.38.png 1000w, https://blog.unixdev.co.th/content/images/2023/08/Screenshot-2566-08-14-at-17.15.38.png 1241w" sizes="(min-width: 720px) 720px"></figure><p>&#xE40;&#xE21;&#xE37;&#xE48;&#xE2D;&#xE40;&#xE23;&#xE32;&#xE01;&#xE14;&#xE1B;&#xE38;&#xE48;&#xE21; Save &#xE41;&#xE25;&#xE49;&#xE27;&#xE01;&#xE47;&#xE08;&#xE30;&#xE21;&#xE35;&#xE2B;&#xE19;&#xE49;&#xE32;&#xE15;&#xE48;&#xE32;&#xE07;&#xE16;&#xE32;&#xE21;&#xE40;&#xE23;&#xE37;&#xE48;&#xE2D;&#xE07;&#xE01;&#xE32;&#xE23; save config &#xE43;&#xE2B;&#xE49;&#xE40;&#xE23;&#xE32;&#xE01;&#xE14;&#xE22;&#xE2D;&#xE21;&#xE23;&#xE31;&#xE1A; awared of the migration conditions and risks. &#xE41;&#xE25;&#xE49;&#xE27;&#xE01;&#xE14; Yes &#xE40;&#xE25;&#xE22; &#xE2B;&#xE25;&#xE31;&#xE07;&#xE08;&#xE32;&#xE01;&#xE19;&#xE31;&#xE49;&#xE19;&#xE40;&#xE23;&#xE32;&#xE08;&#xE30;&#xE44;&#xE1B;&#xE2A;&#xE39;&#xE48;&#xE2B;&#xE19;&#xE49;&#xE32; Target server configured. &#xE01;&#xE47;&#xE43;&#xE2B;&#xE49;&#xE40;&#xE23;&#xE32;&#xE01;&#xE14; Back to Server List &#xE44;&#xE14;&#xE49;&#xE40;&#xE25;&#xE22;</p><figure class="kg-card kg-image-card"><img src="https://blog.unixdev.co.th/content/images/2023/08/Screenshot-2566-08-14-at-17.17.59.png" class="kg-image" alt loading="lazy" width="458" height="462"></figure><p>&#xE2B;&#xE25;&#xE31;&#xE07;&#xE08;&#xE32;&#xE01;&#xE19;&#xE31;&#xE49;&#xE19;&#xE40;&#xE23;&#xE32;&#xE08;&#xE30;&#xE01;&#xE25;&#xE31;&#xE1A;&#xE21;&#xE32;&#xE2A;&#xE39;&#xE48;&#xE2B;&#xE19;&#xE49;&#xE32; SMS &#xE2D;&#xE35;&#xE01;&#xE04;&#xE23;&#xE31;&#xE49;&#xE07; </p><p></p><p><strong>Step 4 </strong>&#xE40;&#xE23;&#xE34;&#xE48;&#xE21;&#xE17;&#xE33;&#xE01;&#xE32;&#xE23; migrate </p><p>&#xE43;&#xE2B;&#xE49;&#xE40;&#xE23;&#xE32;&#xE01;&#xE14;&#xE1B;&#xE38;&#xE48;&#xE21; start &#xE40;&#xE1E;&#xE37;&#xE48;&#xE2D;&#xE40;&#xE23;&#xE34;&#xE48;&#xE21;&#xE01;&#xE32;&#xE23; migration &#xE44;&#xE14;&#xE49;&#xE40;&#xE25;&#xE22;&#xE40;&#xE21;&#xE37;&#xE48;&#xE2D;&#xE40;&#xE23;&#xE32;&#xE1E;&#xE23;&#xE49;&#xE2D;&#xE21;&#xE41;&#xE25;&#xE49;&#xE27;</p><figure class="kg-card kg-image-card"><img src="https://blog.unixdev.co.th/content/images/2023/08/Screenshot-2566-08-14-at-17.32.30.png" class="kg-image" alt loading="lazy" width="1244" height="498" srcset="https://blog.unixdev.co.th/content/images/size/w600/2023/08/Screenshot-2566-08-14-at-17.32.30.png 600w, https://blog.unixdev.co.th/content/images/size/w1000/2023/08/Screenshot-2566-08-14-at-17.32.30.png 1000w, https://blog.unixdev.co.th/content/images/2023/08/Screenshot-2566-08-14-at-17.32.30.png 1244w" sizes="(min-width: 720px) 720px"></figure><p>&#xE2B;&#xE25;&#xE31;&#xE01;&#xE08;&#xE32;&#xE01;&#xE19;&#xE31;&#xE49;&#xE19;&#xE08;&#xE30;&#xE21;&#xE35;&#xE2B;&#xE19;&#xE49;&#xE32; Confirm &#xE0A;&#xE36;&#xE49;&#xE19;&#xE21;&#xE32;&#xE01;&#xE47;&#xE43;&#xE2B;&#xE49;&#xE40;&#xE23;&#xE32;&#xE01;&#xE14; Yes &#xE44;&#xE14;&#xE49;&#xE40;&#xE25;&#xE22;</p><figure class="kg-card kg-image-card"><img src="https://blog.unixdev.co.th/content/images/2023/08/Screenshot-2566-08-14-at-17.33.39.png" class="kg-image" alt loading="lazy" width="573" height="394"></figure><p>&#xE2B;&#xE25;&#xE31;&#xE07;&#xE08;&#xE32;&#xE14;&#xE19;&#xE31;&#xE49;&#xE19;&#xE40;&#xE23;&#xE32;&#xE01;&#xE47;&#xE23;&#xE2D;&#xE08;&#xE19;&#xE01;&#xE23;&#xE30;&#xE17;&#xE31;&#xE49;&#xE07; migration &#xE40;&#xE2A;&#xE23;&#xE47;&#xE08;</p><figure class="kg-card kg-image-card"><img src="https://blog.unixdev.co.th/content/images/2023/08/Screenshot-2566-08-14-at-17.35.57.png" class="kg-image" alt loading="lazy" width="1013" height="671" srcset="https://blog.unixdev.co.th/content/images/size/w600/2023/08/Screenshot-2566-08-14-at-17.35.57.png 600w, https://blog.unixdev.co.th/content/images/size/w1000/2023/08/Screenshot-2566-08-14-at-17.35.57.png 1000w, https://blog.unixdev.co.th/content/images/2023/08/Screenshot-2566-08-14-at-17.35.57.png 1013w" sizes="(min-width: 720px) 720px"></figure><p>&#xE2B;&#xE25;&#xE31;&#xE07;&#xE08;&#xE32;&#xE01;&#xE17;&#xE35;&#xE48; migrate &#xE40;&#xE2A;&#xE23;&#xE47;&#xE08;&#xE41;&#xE25;&#xE49;&#xE27;&#xE01;&#xE47;&#xE08;&#xE30;&#xE44;&#xE14;&#xE49;&#xE41;&#xE1A;&#xE1A;&#xE19;&#xE35;&#xE49;&#xE40;&#xE25;&#xE22;</p><figure class="kg-card kg-image-card"><img src="https://blog.unixdev.co.th/content/images/2023/08/Screenshot-2566-08-14-at-19.08.25.png" class="kg-image" alt loading="lazy" width="1006" height="664" srcset="https://blog.unixdev.co.th/content/images/size/w600/2023/08/Screenshot-2566-08-14-at-19.08.25.png 600w, https://blog.unixdev.co.th/content/images/size/w1000/2023/08/Screenshot-2566-08-14-at-19.08.25.png 1000w, https://blog.unixdev.co.th/content/images/2023/08/Screenshot-2566-08-14-at-19.08.25.png 1006w" sizes="(min-width: 720px) 720px"></figure><p>&#xE43;&#xE2B;&#xE49;&#xE40;&#xE23;&#xE32;&#xE40;&#xE02;&#xE49;&#xE32;&#xE44;&#xE1B;&#xE14;&#xE39;&#xE17;&#xE35;&#xE48; Elastic Cloud Server &#xE42;&#xE14;&#xE22;&#xE01;&#xE14;&#xE44;&#xE1B;&#xE17;&#xE35;&#xE48;&#xE41;&#xE16;&#xE1A; 3 &#xE02;&#xE35;&#xE14;&#xE14;&#xE49;&#xE32;&#xE19;&#xE0B;&#xE49;&#xE32;&#xE22;&#xE21;&#xE37;&#xE2D;&#xE41;&#xE25;&#xE49;&#xE27;&#xE04;&#xE49;&#xE19;&#xE2B;&#xE32; ECS &#xE41;&#xE25;&#xE49;&#xE27;&#xE01;&#xE14;&#xE40;&#xE02;&#xE49;&#xE32;&#xE44;&#xE1B;&#xE17;&#xE35;&#xE48; Elastic Cloud Server &#xE44;&#xE14;&#xE49;&#xE40;&#xE25;&#xE22;</p><figure class="kg-card kg-image-card"><img src="https://blog.unixdev.co.th/content/images/2023/08/Screenshot-2566-08-14-at-19.20.41.png" class="kg-image" alt loading="lazy" width="1123" height="406" srcset="https://blog.unixdev.co.th/content/images/size/w600/2023/08/Screenshot-2566-08-14-at-19.20.41.png 600w, https://blog.unixdev.co.th/content/images/size/w1000/2023/08/Screenshot-2566-08-14-at-19.20.41.png 1000w, https://blog.unixdev.co.th/content/images/2023/08/Screenshot-2566-08-14-at-19.20.41.png 1123w" sizes="(min-width: 720px) 720px"></figure><p>&#xE40;&#xE23;&#xE32;&#xE01;&#xE47;&#xE08;&#xE30;&#xE40;&#xE2B;&#xE47;&#xE19;&#xE40;&#xE04;&#xE23;&#xE37;&#xE48;&#xE2D;&#xE07; VM &#xE17;&#xE35;&#xE48;&#xE40;&#xE23;&#xE32;&#xE1E;&#xE36;&#xE48;&#xE07; migrate &#xE21;&#xE32;&#xE40;&#xE2A;&#xE23;&#xE47;&#xE08;&#xE41;&#xE25;&#xE49;&#xE27; &#xE40;&#xE22;&#xE49; XD</p><figure class="kg-card kg-image-card"><img src="https://blog.unixdev.co.th/content/images/2023/08/Screenshot-2566-08-14-at-19.24.35.png" class="kg-image" alt loading="lazy" width="1222" height="258" srcset="https://blog.unixdev.co.th/content/images/size/w600/2023/08/Screenshot-2566-08-14-at-19.24.35.png 600w, https://blog.unixdev.co.th/content/images/size/w1000/2023/08/Screenshot-2566-08-14-at-19.24.35.png 1000w, https://blog.unixdev.co.th/content/images/2023/08/Screenshot-2566-08-14-at-19.24.35.png 1222w" sizes="(min-width: 720px) 720px"></figure><p>&#xE40;&#xE1B;&#xE47;&#xE19;&#xE22;&#xE31;&#xE07;&#xE44;&#xE07;&#xE04;&#xE23;&#xE31;&#xE1A; &#xE44;&#xE21;&#xE48;&#xE40;&#xE2B;&#xE47;&#xE19;&#xE08;&#xE30;&#xE22;&#xE32;&#xE01;&#xE40;&#xE25;&#xE22;(&#xE2B;&#xE23;&#xE2D;) &#xE2B;&#xE27;&#xE31;&#xE07;&#xE27;&#xE48;&#xE32; blog &#xE19;&#xE35;&#xE49;&#xE08;&#xE30;&#xE17;&#xE33;&#xE43;&#xE2B;&#xE49;&#xE1C;&#xE39;&#xE49;&#xE2D;&#xE48;&#xE32;&#xE19;&#xE17;&#xE38;&#xE01;&#xE17;&#xE48;&#xE32;&#xE19;&#xE2A;&#xE32;&#xE21;&#xE32;&#xE23;&#xE16; migrate &#xE40;&#xE04;&#xE23;&#xE37;&#xE48;&#xE2D;&#xE07; VM &#xE21;&#xE32;&#xE22;&#xE31;&#xE07; Huawei cloud &#xE01;&#xE31;&#xE19;&#xE44;&#xE14;&#xE49;&#xE19;&#xE30;&#xE04;&#xE23;&#xE31;&#xE1A;:)</p>]]></content:encoded></item><item><title><![CDATA[Eazy way to install sentry by using docker(วิธีการติดตั้ง setry แบบง่ายๆ ด้วย docker)]]></title><description><![CDATA[<p>&#xE2A;&#xE27;&#xE31;&#xE2A;&#xE14;&#xE35;&#xE40;&#xE01;&#xE35;&#xE22;&#xE23;&#xE15;&#xE34;&#xE1C;&#xE39;&#xE49;&#xE21;&#xE35;&#xE41;&#xE02;&#xE01; &#xE41;&#xE2E;&#xE23;&#xE48; &#xE41;&#xE02;&#xE01;&#xE1C;&#xE39;&#xE49;&#xE21;&#xE35;&#xE40;&#xE01;&#xE35;&#xE22;&#xE23;&#xE15;&#xE34;&#xE17;&#xE38;&#xE01;&#xE17;&#xE48;&#xE32;&#xE19;&#xE17;&#xE35;&#xE48;</p>]]></description><link>https://blog.unixdev.co.th/eazy-sentry-installation/</link><guid isPermaLink="false">64d5c3fa7ea9c11debf4234e</guid><dc:creator><![CDATA[Supalerk Roengmongkol]]></dc:creator><pubDate>Fri, 11 Aug 2023 07:59:35 GMT</pubDate><media:content url="https://blog.unixdev.co.th/content/images/2023/08/sentry-icon.png" medium="image"/><content:encoded><![CDATA[<img src="https://blog.unixdev.co.th/content/images/2023/08/sentry-icon.png" alt="Eazy way to install sentry by using docker(&#xE27;&#xE34;&#xE18;&#xE35;&#xE01;&#xE32;&#xE23;&#xE15;&#xE34;&#xE14;&#xE15;&#xE31;&#xE49;&#xE07; setry &#xE41;&#xE1A;&#xE1A;&#xE07;&#xE48;&#xE32;&#xE22;&#xE46; &#xE14;&#xE49;&#xE27;&#xE22; docker)"><p>&#xE2A;&#xE27;&#xE31;&#xE2A;&#xE14;&#xE35;&#xE40;&#xE01;&#xE35;&#xE22;&#xE23;&#xE15;&#xE34;&#xE1C;&#xE39;&#xE49;&#xE21;&#xE35;&#xE41;&#xE02;&#xE01; &#xE41;&#xE2E;&#xE23;&#xE48; &#xE41;&#xE02;&#xE01;&#xE1C;&#xE39;&#xE49;&#xE21;&#xE35;&#xE40;&#xE01;&#xE35;&#xE22;&#xE23;&#xE15;&#xE34;&#xE17;&#xE38;&#xE01;&#xE17;&#xE48;&#xE32;&#xE19;&#xE17;&#xE35;&#xE48;&#xE40;&#xE02;&#xE49;&#xE32;&#xE21;&#xE32;&#xE2D;&#xE48;&#xE32;&#xE19;&#xE1A;&#xE17;&#xE04;&#xE27;&#xE32;&#xE21;&#xE19;&#xE35;&#xE49;<br>&#xE43;&#xE19;&#xE1A;&#xE17;&#xE04;&#xE27;&#xE32;&#xE21;&#xE19;&#xE35;&#xE49;&#xE1C;&#xE21;&#xE08;&#xE30;&#xE21;&#xE35;&#xE1A;&#xE2D;&#xE01;&#xE27;&#xE34;&#xE18;&#xE35;&#xE07;&#xE48;&#xE32;&#xE22;&#xE46; &#xE43;&#xE19;&#xE01;&#xE32;&#xE23;&#xE15;&#xE34;&#xE14;&#xE15;&#xE31;&#xE49;&#xE07; Sentry &#xE42;&#xE14;&#xE22;&#xE43;&#xE0A;&#xE49; docker &#xE01;&#xE31;&#xE19;&#xE19;&#xE30;&#xE04;&#xE23;&#xE31;&#xE1A;<br></p><p><strong>What is Sentry?</strong><br>&#xE1C;&#xE21;&#xE08;&#xE30;&#xE02;&#xE2D;&#xE2D;&#xE18;&#xE34;&#xE1A;&#xE32;&#xE22;&#xE16;&#xE36;&#xE07;&#xE15;&#xE31;&#xE27; Sentry &#xE41;&#xE1A;&#xE1A;&#xE2A;&#xE31;&#xE49;&#xE19;&#xE46; &#xE01;&#xE48;&#xE2D;&#xE19;&#xE25;&#xE30;&#xE01;&#xE31;&#xE19;&#xE19;&#xE30;&#xE04;&#xE23;&#xE31;&#xE1A; <br>Sentry &#xE40;&#xE1B;&#xE47;&#xE19; error monitoring software &#xE17;&#xE35;&#xE48;&#xE21;&#xE35;&#xE04;&#xE27;&#xE32;&#xE21;&#xE2A;&#xE32;&#xE21;&#xE32;&#xE23;&#xE16;&#xE43;&#xE19;&#xE01;&#xE32;&#xE23;&#xE15;&#xE23;&#xE27;&#xE08;&#xE08;&#xE31;&#xE1A; error &#xE15;&#xE48;&#xE32;&#xE07;&#xE46; &#xE17;&#xE35;&#xE48;&#xE40;&#xE01;&#xE34;&#xE14;&#xE02;&#xE36;&#xE49;&#xE19;&#xE44;&#xE14;&#xE49;&#xE41;&#xE25;&#xE30;&#xE22;&#xE31;&#xE07;&#xE2A;&#xE32;&#xE21;&#xE32;&#xE23;&#xE16;&#xE40;&#xE1B;&#xE47;&#xE19; performance monitoring software &#xE17;&#xE35;&#xE48;&#xE43;&#xE0A;&#xE49;&#xE15;&#xE23;&#xE27;&#xE08;&#xE14;&#xE39; performance &#xE02;&#xE2D;&#xE07; application &#xE44;&#xE14;&#xE49;&#xE14;&#xE49;&#xE27;&#xE22;(&#xE42;&#xE04;&#xE15;&#xE23;&#xE40;&#xE17;&#xE48;) &#xE41;&#xE16;&#xE21;&#xE22;&#xE31;&#xE07;&#xE23;&#xE2D;&#xE07;&#xE23;&#xE31;&#xE1A;&#xE20;&#xE32;&#xE29;&#xE32;&#xE21;&#xE32;&#xE01;&#xE01;&#xE27;&#xE48;&#xE32; 30 &#xE20;&#xE32;&#xE29;&#xE32;&#xE14;&#xE49;&#xE27;&#xE22;(&#xE40;&#xE22;&#xE2D;&#xE30;&#xE2A;&#xE38;&#xE14;&#xE46;) &#xE22;&#xE01;&#xE15;&#xE31;&#xE27;&#xE2D;&#xE22;&#xE48;&#xE32;&#xE07;&#xE40;&#xE0A;&#xE48;&#xE19; .Net, Java, PHP, Python, Ruby, React, NodeJS, etc. <br></p><figure class="kg-card kg-image-card kg-card-hascaption"><img src="https://blog.unixdev.co.th/content/images/2023/08/Screenshot-2566-08-11-at-12.19.20.png" class="kg-image" alt="Eazy way to install sentry by using docker(&#xE27;&#xE34;&#xE18;&#xE35;&#xE01;&#xE32;&#xE23;&#xE15;&#xE34;&#xE14;&#xE15;&#xE31;&#xE49;&#xE07; setry &#xE41;&#xE1A;&#xE1A;&#xE07;&#xE48;&#xE32;&#xE22;&#xE46; &#xE14;&#xE49;&#xE27;&#xE22; docker)" loading="lazy" width="2000" height="603" srcset="https://blog.unixdev.co.th/content/images/size/w600/2023/08/Screenshot-2566-08-11-at-12.19.20.png 600w, https://blog.unixdev.co.th/content/images/size/w1000/2023/08/Screenshot-2566-08-11-at-12.19.20.png 1000w, https://blog.unixdev.co.th/content/images/size/w1600/2023/08/Screenshot-2566-08-11-at-12.19.20.png 1600w, https://blog.unixdev.co.th/content/images/2023/08/Screenshot-2566-08-11-at-12.19.20.png 2293w" sizes="(min-width: 720px) 720px"><figcaption>&#xE40;&#xE23;&#xE35;&#xE22;&#xE01;&#xE44;&#xE14;&#xE49;&#xE27;&#xE48;&#xE32;&#xE40;&#xE22;&#xE2D;&#xE30;&#xE2A;&#xE38;&#xE14;&#xE46; &#xE44;&#xE1B;&#xE40;&#xE25;&#xE22;</figcaption></figure><p></p><p><strong>Prerequiment</strong> &#xE01;&#xE48;&#xE2D;&#xE19;&#xE17;&#xE35;&#xE48;&#xE08;&#xE30;&#xE25;&#xE07; sentry &#xE44;&#xE14;&#xE49; &#xE40;&#xE23;&#xE32;&#xE15;&#xE49;&#xE2D;&#xE07;&#xE21;&#xE35;&#xE2D;&#xE30;&#xE44;&#xE23;&#xE1A;&#xE49;&#xE32;&#xE07;</p><ul><li>VM &#xE17;&#xE35;&#xE48;&#xE21;&#xE35;&#xE2A;&#xE40;&#xE1B;&#xE04;&#xE02;&#xE31;&#xE49;&#xE19;&#xE15;&#xE48;&#xE33; 4 CPU Cores | 8 GB RAM</li><li>&#xE21;&#xE35; disk &#xE27;&#xE48;&#xE32;&#xE07;&#xE2D;&#xE22;&#xE48;&#xE32;&#xE07;&#xE19;&#xE49;&#xE2D;&#xE22; 20 GB </li><li>Docker 19.03.6+</li><li>Compose 2.0.1+</li></ul><p></p><p><strong>Install docker and docker compose</strong></p><p>&#xE2A;&#xE33;&#xE2B;&#xE23;&#xE31;&#xE1A;&#xE1C;&#xE39;&#xE49;&#xE2D;&#xE48;&#xE32;&#xE19;&#xE17;&#xE35;&#xE48;&#xE22;&#xE31;&#xE07;&#xE44;&#xE21;&#xE48;&#xE44;&#xE14;&#xE49;&#xE25;&#xE07; docker &#xE01;&#xE31;&#xE1A; docker compose &#xE2A;&#xE32;&#xE21;&#xE32;&#xE23;&#xE16;&#xE44;&#xE1B;&#xE2D;&#xE48;&#xE32;&#xE19;&#xE44;&#xE14;&#xE49;&#xE17;&#xE35;&#xE48;</p><p>&#xE2A;&#xE33;&#xE2B;&#xE23;&#xE31;&#xE1A; Debian</p><ul><li><a href="https://docs.docker.com/engine/install/debian/?ref=blog.unixdev.co.th">Install Docker Engine on Debian | Docker Documentation</a></li></ul><p>&#xE2A;&#xE33;&#xE2B;&#xE23;&#xE31;&#xE1A; Ubuntu</p><ul><li><a href="https://docs.docker.com/engine/install/ubuntu/?ref=blog.unixdev.co.th">Install Docker Engine on Ubuntu | Docker Documentation</a></li></ul><p></p><p><strong>Install sentry!</strong></p><p>&#xE40;&#xE23;&#xE32;&#xE21;&#xE32;&#xE40;&#xE23;&#xE34;&#xE48;&#xE21;&#xE15;&#xE49;&#xE19;&#xE14;&#xE49;&#xE27;&#xE22;&#xE01;&#xE32;&#xE23; clone repo &#xE02;&#xE2D;&#xE07; sentry &#xE01;&#xE31;&#xE19;&#xE01;&#xE48;&#xE2D;&#xE19;&#xE40;&#xE25;&#xE22;&#xE22;&#xE22;&#xE22;&#xE22;&#xE22;&#xE22;</p><p># git clone https://github.com/getsentry/self-hosted sentry</p><p>*&#xE16;&#xE49;&#xE32;&#xE2B;&#xE32;&#xE01; run command &#xE19;&#xE35;&#xE49;&#xE41;&#xE25;&#xE49;&#xE27;&#xE40;&#xE01;&#xE34;&#xE14; error &#xE43;&#xE2B;&#xE49;&#xE25;&#xE2D;&#xE07;&#xE40;&#xE0A;&#xE47;&#xE04;&#xE14;&#xE39;&#xE27;&#xE48;&#xE32;&#xE40;&#xE23;&#xE32; install git &#xE44;&#xE27;&#xE49;&#xE41;&#xE25;&#xE49;&#xE27;&#xE2B;&#xE23;&#xE37;&#xE2D;&#xE22;&#xE31;&#xE07; &#xE16;&#xE49;&#xE32;&#xE22;&#xE31;&#xE07;&#xE01;&#xE47;&#xE2A;&#xE32;&#xE21;&#xE32;&#xE23;&#xE16;&#xE43;&#xE0A;&#xE49; command &#xE19;&#xE35;&#xE49;&#xE40;&#xE1E;&#xE37;&#xE48;&#xE2D; install git &#xE44;&#xE14;&#xE49;&#xE40;&#xE25;&#xE22;</p><p># apt install git</p><p></p><p>&#xE16;&#xE31;&#xE14;&#xE21;&#xE32;&#xE40;&#xE23;&#xE32;&#xE01;&#xE47;&#xE40;&#xE02;&#xE49;&#xE32;&#xE44;&#xE1B;&#xE43;&#xE19; folder &#xE02;&#xE2D;&#xE07; sentry &#xE41;&#xE25;&#xE49;&#xE27;&#xE43;&#xE2B;&#xE49; docker &#xE17;&#xE33;&#xE07;&#xE32;&#xE19;&#xE43;&#xE2B;&#xE49;&#xE40;&#xE23;&#xE32;&#xE44;&#xE14;&#xE49;&#xE40;&#xE25;&#xE22;</p><p># cd sentry</p><p>&#xE2B;&#xE25;&#xE31;&#xE07;&#xE08;&#xE32;&#xE01;&#xE17;&#xE35;&#xE48;&#xE40;&#xE02;&#xE49;&#xE32;&#xE21;&#xE32;&#xE43;&#xE19; folder &#xE02;&#xE2D;&#xE07; sentry &#xE01;&#xE31;&#xE19;&#xE41;&#xE25;&#xE49;&#xE27;&#xE40;&#xE23;&#xE32;&#xE01;&#xE47;&#xE2A;&#xE31;&#xE48;&#xE07; run install.sh &#xE01;&#xE31;&#xE19;&#xE40;&#xE25;&#xE22;</p><p># ./install.sh</p><figure class="kg-card kg-image-card kg-card-hascaption"><img src="https://blog.unixdev.co.th/content/images/2023/08/Screenshot-2566-08-11-at-13.59.34.png" class="kg-image" alt="Eazy way to install sentry by using docker(&#xE27;&#xE34;&#xE18;&#xE35;&#xE01;&#xE32;&#xE23;&#xE15;&#xE34;&#xE14;&#xE15;&#xE31;&#xE49;&#xE07; setry &#xE41;&#xE1A;&#xE1A;&#xE07;&#xE48;&#xE32;&#xE22;&#xE46; &#xE14;&#xE49;&#xE27;&#xE22; docker)" loading="lazy" width="554" height="132"><figcaption>&#xE40;&#xE21;&#xE37;&#xE48;&#xE2D; command ./install.sh &#xE17;&#xE33;&#xE07;&#xE32;&#xE19;&#xE40;&#xE2A;&#xE23;&#xE47;&#xE08;&#xE41;&#xE25;&#xE49;&#xE27;&#xE01;&#xE47;&#xE08;&#xE30;&#xE02;&#xE36;&#xE49;&#xE19;&#xE43;&#xE2B;&#xE49;&#xE43;&#xE0A;&#xE49; docker compose up -d &#xE40;&#xE23;&#xE32;&#xE01;&#xE47;&#xE17;&#xE33;&#xE15;&#xE32;&#xE21;&#xE17;&#xE35;&#xE48;&#xE40;&#xE02;&#xE32;&#xE22;&#xE2D;&#xE01;&#xE40;&#xE25;&#xE22;&#xE04;&#xE23;&#xE31;&#xE1A;</figcaption></figure><p>&#xE2B;&#xE25;&#xE31;&#xE07;&#xE08;&#xE32;&#xE01;&#xE17;&#xE35;&#xE48; install.sh &#xE17;&#xE33;&#xE07;&#xE32;&#xE19;&#xE40;&#xE2A;&#xE23;&#xE47;&#xE08;&#xE41;&#xE25;&#xE49;&#xE27;&#xE40;&#xE23;&#xE32;&#xE01;&#xE47;&#xE2A;&#xE31;&#xE48;&#xE07;&#xE43;&#xE2B;&#xE49; docker compose &#xE40;&#xE1B;&#xE34;&#xE14; sentry &#xE43;&#xE2B;&#xE49;&#xE40;&#xE23;&#xE32;&#xE01;&#xE31;&#xE19;&#xE40;&#xE25;&#xE22;</p><p># docker compose up -d</p><figure class="kg-card kg-image-card kg-card-hascaption"><img src="https://blog.unixdev.co.th/content/images/2023/08/Screenshot-2566-08-11-at-14.01.36.png" class="kg-image" alt="Eazy way to install sentry by using docker(&#xE27;&#xE34;&#xE18;&#xE35;&#xE01;&#xE32;&#xE23;&#xE15;&#xE34;&#xE14;&#xE15;&#xE31;&#xE49;&#xE07; setry &#xE41;&#xE1A;&#xE1A;&#xE07;&#xE48;&#xE32;&#xE22;&#xE46; &#xE14;&#xE49;&#xE27;&#xE22; docker)" loading="lazy" width="998" height="794" srcset="https://blog.unixdev.co.th/content/images/size/w600/2023/08/Screenshot-2566-08-11-at-14.01.36.png 600w, https://blog.unixdev.co.th/content/images/2023/08/Screenshot-2566-08-11-at-14.01.36.png 998w" sizes="(min-width: 720px) 720px"><figcaption>&#xE40;&#xE21;&#xE37;&#xE48;&#xE2D; Sentry &#xE02;&#xE2D;&#xE07;&#xE40;&#xE23;&#xE32; run &#xE40;&#xE2A;&#xE23;&#xE47;&#xE08;&#xE41;&#xE25;&#xE49;&#xE27;&#xE01;&#xE47;&#xE08;&#xE30;&#xE44;&#xE14;&#xE49;&#xE2B;&#xE19;&#xE49;&#xE32;&#xE15;&#xE32;&#xE1B;&#xE23;&#xE30;&#xE21;&#xE32;&#xE13;&#xE19;&#xE35;&#xE49;&#xE40;&#xE25;&#xE22;&#xE04;&#xE23;&#xE31;&#xE1A; ^^</figcaption></figure><p>&#xE2B;&#xE25;&#xE31;&#xE07;&#xE08;&#xE32;&#xE01;&#xE19;&#xE31;&#xE49;&#xE19;&#xE43;&#xE2B;&#xE49;&#xE40;&#xE23;&#xE32;&#xE40;&#xE2D;&#xE32; ip &#xE02;&#xE2D;&#xE07;&#xE40;&#xE04;&#xE23;&#xE37;&#xE48;&#xE2D;&#xE07; VM &#xE17;&#xE35;&#xE48;&#xE40;&#xE23;&#xE32;&#xE25;&#xE07; sentry &#xE44;&#xE14;&#xE49;&#xE44;&#xE1B;&#xE40;&#xE1B;&#xE34;&#xE14;&#xE43;&#xE19; browser &#xE40;&#xE1C;&#xE37;&#xE48;&#xE2D;&#xE40;&#xE02;&#xE49;&#xE32;&#xE44;&#xE1B;&#xE0A;&#xE21;&#xE1C;&#xE25;&#xE07;&#xE32;&#xE19;&#xE2A;&#xE38;&#xE14;&#xE40;&#xE17;&#xE48;&#xE02;&#xE2D;&#xE07;&#xE40;&#xE23;&#xE32;&#xE44;&#xE14;&#xE49;&#xE40;&#xE25;&#xE22; ***&#xE15;&#xE49;&#xE2D;&#xE07;&#xE40;&#xE02;&#xE49;&#xE32; port 9000 &#xE19;&#xE30;&#xE04;&#xE23;&#xE31;&#xE1A;</p><p>http://x.x.x.x:9000/</p><figure class="kg-card kg-image-card kg-card-hascaption"><img src="https://blog.unixdev.co.th/content/images/2023/08/Screenshot-2566-08-11-at-14.10.40.png" class="kg-image" alt="Eazy way to install sentry by using docker(&#xE27;&#xE34;&#xE18;&#xE35;&#xE01;&#xE32;&#xE23;&#xE15;&#xE34;&#xE14;&#xE15;&#xE31;&#xE49;&#xE07; setry &#xE41;&#xE1A;&#xE1A;&#xE07;&#xE48;&#xE32;&#xE22;&#xE46; &#xE14;&#xE49;&#xE27;&#xE22; docker)" loading="lazy" width="1279" height="700" srcset="https://blog.unixdev.co.th/content/images/size/w600/2023/08/Screenshot-2566-08-11-at-14.10.40.png 600w, https://blog.unixdev.co.th/content/images/size/w1000/2023/08/Screenshot-2566-08-11-at-14.10.40.png 1000w, https://blog.unixdev.co.th/content/images/2023/08/Screenshot-2566-08-11-at-14.10.40.png 1279w" sizes="(min-width: 720px) 720px"><figcaption>&#xE44;&#xE14;&#xE49;&#xE2D;&#xE2D;&#xE01;&#xE21;&#xE32;&#xE40;&#xE1B;&#xE47;&#xE19;&#xE2B;&#xE19;&#xE49;&#xE32;&#xE40;&#xE27;&#xE47;&#xE1A;&#xE2D;&#xE22;&#xE48;&#xE32;&#xE07;&#xE2A;&#xE27;&#xE22;&#xE07;&#xE32;&#xE21;&#xE40;&#xE25;&#xE22;</figcaption></figure><p>&#xE16;&#xE31;&#xE14;&#xE21;&#xE32;&#xE17;&#xE38;&#xE01;&#xE04;&#xE19;&#xE04;&#xE07;&#xE2A;&#xE07;&#xE2A;&#xE31;&#xE22;&#xE41;&#xE25;&#xE49;&#xE27;&#xE27;&#xE48;&#xE32;&#xE40;&#xE23;&#xE32;&#xE44;&#xE1B;&#xE21;&#xE35; account &#xE15;&#xE2D;&#xE19;&#xE44;&#xE2B;&#xE19;?</p><p>&#xE04;&#xE33;&#xE15;&#xE2D;&#xE1A;&#xE04;&#xE37;&#xE2D;&#xE44;&#xE21;&#xE48;&#xE21;&#xE35;&#xE04;&#xE23;&#xE31;&#xE1A;5555555 &#xE40;&#xE1E;&#xE23;&#xE32;&#xE30;&#xE09;&#xE30;&#xE19;&#xE31;&#xE49;&#xE19;&#xE40;&#xE23;&#xE32;&#xE08;&#xE30;&#xE44;&#xE1B;&#xE2A;&#xE23;&#xE49;&#xE32;&#xE07; user &#xE01;&#xE31;&#xE19;</p><p>&#xE43;&#xE2B;&#xE49;&#xE43;&#xE0A;&#xE49; command </p><p># docker compose run --rm web createuser </p><figure class="kg-card kg-image-card"><img src="https://blog.unixdev.co.th/content/images/2023/08/Screenshot-2566-08-11-at-14.28.37.png" class="kg-image" alt="Eazy way to install sentry by using docker(&#xE27;&#xE34;&#xE18;&#xE35;&#xE01;&#xE32;&#xE23;&#xE15;&#xE34;&#xE14;&#xE15;&#xE31;&#xE49;&#xE07; setry &#xE41;&#xE1A;&#xE1A;&#xE07;&#xE48;&#xE32;&#xE22;&#xE46; &#xE14;&#xE49;&#xE27;&#xE22; docker)" loading="lazy" width="999" height="717" srcset="https://blog.unixdev.co.th/content/images/size/w600/2023/08/Screenshot-2566-08-11-at-14.28.37.png 600w, https://blog.unixdev.co.th/content/images/2023/08/Screenshot-2566-08-11-at-14.28.37.png 999w" sizes="(min-width: 720px) 720px"></figure><p>&#xE2B;&#xE25;&#xE31;&#xE07;&#xE08;&#xE32;&#xE01;&#xE17;&#xE35;&#xE48;&#xE40;&#xE23;&#xE32;&#xE43;&#xE0A;&#xE49; command &#xE14;&#xE49;&#xE32;&#xE19;&#xE1A;&#xE19;&#xE44;&#xE1B;&#xE41;&#xE25;&#xE49;&#xE27;&#xE21;&#xE31;&#xE19;&#xE08;&#xE30;&#xE16;&#xE32;&#xE21; Email &#xE02;&#xE2D;&#xE07;&#xE40;&#xE23;&#xE32;&#xE43;&#xE2B;&#xE49;&#xE40;&#xE23;&#xE32;&#xE01;&#xE23;&#xE2D;&#xE01; Email &#xE17;&#xE35;&#xE48;&#xE08;&#xE30;&#xE43;&#xE0A;&#xE49;&#xE25;&#xE07;&#xE44;&#xE1B;&#xE41;&#xE25;&#xE49;&#xE27;&#xE2B;&#xE25;&#xE31;&#xE07;&#xE08;&#xE32;&#xE01;&#xE19;&#xE31;&#xE49;&#xE19;&#xE21;&#xE31;&#xE19;&#xE01;&#xE47;&#xE08;&#xE30;&#xE43;&#xE2B;&#xE49;&#xE40;&#xE23;&#xE32;&#xE15;&#xE31;&#xE49;&#xE07; password &#xE01;&#xE47;&#xE43;&#xE2B;&#xE49;&#xE40;&#xE23;&#xE32;&#xE43;&#xE2A;&#xE48; password &#xE44;&#xE1B;&#xE40;&#xE25;&#xE22;&#xE2B;&#xE25;&#xE31;&#xE07;&#xE08;&#xE32;&#xE01;&#xE17;&#xE35;&#xE48;&#xE43;&#xE2A;&#xE48; password &#xE41;&#xE25;&#xE30; confirmation &#xE44;&#xE1B;&#xE41;&#xE25;&#xE49;&#xE27;&#xE01;&#xE47;&#xE08;&#xE30;&#xE21;&#xE35;&#xE16;&#xE32;&#xE21;&#xE15;&#xE48;&#xE2D;&#xE27;&#xE48;&#xE32;&#xE08;&#xE30;&#xE43;&#xE2B;&#xE49;&#xE40;&#xE1B;&#xE47;&#xE19; superuser &#xE43;&#xE0A;&#xE48;&#xE44;&#xE2B;&#xE21;&#xE01;&#xE47;&#xE15;&#xE2D;&#xE1A; y &#xE44;&#xE1B;&#xE40;&#xE25;&#xE22;&#xE04;&#xE23;&#xE31;&#xE1A;</p><p></p><p>&#xE2B;&#xE25;&#xE31;&#xE07;&#xE08;&#xE32;&#xE01;&#xE19;&#xE31;&#xE49;&#xE19;&#xE43;&#xE2B;&#xE49;&#xE40;&#xE23;&#xE32;&#xE01;&#xE25;&#xE31;&#xE1A;&#xE21;&#xE32;&#xE17;&#xE35;&#xE48;&#xE2B;&#xE19;&#xE49;&#xE32;&#xE40;&#xE27;&#xE47;&#xE1A;&#xE41;&#xE25;&#xE49;&#xE27;&#xE43;&#xE2B;&#xE49;&#xE01;&#xE23;&#xE2D;&#xE01; Email &#xE01;&#xE31;&#xE1A; password &#xE17;&#xE35;&#xE48;&#xE40;&#xE23;&#xE32;&#xE15;&#xE31;&#xE49;&#xE07;&#xE40;&#xE21;&#xE37;&#xE48;&#xE2D;&#xE01;&#xE35;&#xE49;&#xE44;&#xE14;&#xE49;&#xE40;&#xE25;&#xE22;</p><figure class="kg-card kg-image-card"><img src="https://blog.unixdev.co.th/content/images/2023/08/Screenshot-2566-08-11-at-14.31.01.png" class="kg-image" alt="Eazy way to install sentry by using docker(&#xE27;&#xE34;&#xE18;&#xE35;&#xE01;&#xE32;&#xE23;&#xE15;&#xE34;&#xE14;&#xE15;&#xE31;&#xE49;&#xE07; setry &#xE41;&#xE1A;&#xE1A;&#xE07;&#xE48;&#xE32;&#xE22;&#xE46; &#xE14;&#xE49;&#xE27;&#xE22; docker)" loading="lazy" width="701" height="474" srcset="https://blog.unixdev.co.th/content/images/size/w600/2023/08/Screenshot-2566-08-11-at-14.31.01.png 600w, https://blog.unixdev.co.th/content/images/2023/08/Screenshot-2566-08-11-at-14.31.01.png 701w"></figure><p></p><p>&#xE2B;&#xE25;&#xE31;&#xE07;&#xE08;&#xE32;&#xE01;&#xE17;&#xE35;&#xE48;&#xE40;&#xE23;&#xE32; login &#xE40;&#xE02;&#xE49;&#xE32;&#xE21;&#xE32;&#xE41;&#xE25;&#xE49;&#xE27;&#xE01;&#xE47;&#xE08;&#xE30;&#xE21;&#xE35;&#xE43;&#xE2B;&#xE49;&#xE40;&#xE23;&#xE32; setting &#xE04;&#xE48;&#xE32;&#xE15;&#xE48;&#xE32;&#xE07;&#xE46; &#xE02;&#xE2D;&#xE07; sentry &#xE2D;&#xE31;&#xE19;&#xE19;&#xE35;&#xE49;&#xE01;&#xE47;&#xE43;&#xE2B;&#xE49;&#xE40;&#xE23;&#xE32;&#xE1B;&#xE25;&#xE48;&#xE2D;&#xE22;&#xE40;&#xE1B;&#xE47;&#xE19;&#xE04;&#xE48;&#xE32; default &#xE44;&#xE1B;&#xE01;&#xE48;&#xE2D;&#xE19;&#xE01;&#xE47;&#xE44;&#xE14;&#xE49;</p><figure class="kg-card kg-image-card"><img src="https://blog.unixdev.co.th/content/images/2023/08/Screenshot-2566-08-11-at-14.35.08.png" class="kg-image" alt="Eazy way to install sentry by using docker(&#xE27;&#xE34;&#xE18;&#xE35;&#xE01;&#xE32;&#xE23;&#xE15;&#xE34;&#xE14;&#xE15;&#xE31;&#xE49;&#xE07; setry &#xE41;&#xE1A;&#xE1A;&#xE07;&#xE48;&#xE32;&#xE22;&#xE46; &#xE14;&#xE49;&#xE27;&#xE22; docker)" loading="lazy" width="625" height="1309" srcset="https://blog.unixdev.co.th/content/images/size/w600/2023/08/Screenshot-2566-08-11-at-14.35.08.png 600w, https://blog.unixdev.co.th/content/images/2023/08/Screenshot-2566-08-11-at-14.35.08.png 625w"></figure><p></p><p>&#xE2B;&#xE25;&#xE31;&#xE07;&#xE08;&#xE32;&#xE01;&#xE19;&#xE31;&#xE49;&#xE19;&#xE21;&#xE31;&#xE19;&#xE08;&#xE30;&#xE43;&#xE2B;&#xE49;&#xE40;&#xE23;&#xE32;&#xE01;&#xE23;&#xE2D;&#xE01; password &#xE40;&#xE1E;&#xE37;&#xE48;&#xE2D; confirm &#xE41;&#xE25;&#xE30;&#xE40;&#xE23;&#xE32;&#xE01;&#xE47;&#xE08;&#xE30;&#xE40;&#xE02;&#xE49;&#xE32;&#xE21;&#xE32;&#xE16;&#xE36;&#xE07;&#xE2B;&#xE19;&#xE49;&#xE32;&#xE02;&#xE2D;&#xE07; sentry &#xE44;&#xE14;&#xE49;&#xE41;&#xE25;&#xE49;&#xE27;&#xE27;&#xE27;&#xE27;&#xE27;&#xE27;</p><figure class="kg-card kg-image-card"><img src="https://blog.unixdev.co.th/content/images/2023/08/Screenshot-2566-08-11-at-14.48.08.png" class="kg-image" alt="Eazy way to install sentry by using docker(&#xE27;&#xE34;&#xE18;&#xE35;&#xE01;&#xE32;&#xE23;&#xE15;&#xE34;&#xE14;&#xE15;&#xE31;&#xE49;&#xE07; setry &#xE41;&#xE1A;&#xE1A;&#xE07;&#xE48;&#xE32;&#xE22;&#xE46; &#xE14;&#xE49;&#xE27;&#xE22; docker)" loading="lazy" width="1279" height="1303" srcset="https://blog.unixdev.co.th/content/images/size/w600/2023/08/Screenshot-2566-08-11-at-14.48.08.png 600w, https://blog.unixdev.co.th/content/images/size/w1000/2023/08/Screenshot-2566-08-11-at-14.48.08.png 1000w, https://blog.unixdev.co.th/content/images/2023/08/Screenshot-2566-08-11-at-14.48.08.png 1279w" sizes="(min-width: 720px) 720px"></figure><p></p><p>&#xE40;&#xE1B;&#xE47;&#xE19;&#xE44;&#xE07;&#xE04;&#xE23;&#xE31;&#xE1A; &#xE07;&#xE48;&#xE32;&#xE22;&#xE46; &#xE40;&#xE25;&#xE22;&#xE2B;&#xE27;&#xE31;&#xE07;&#xE27;&#xE48;&#xE32;&#xE08;&#xE30;&#xE0A;&#xE48;&#xE27;&#xE22;&#xE43;&#xE2B;&#xE49;&#xE1C;&#xE39;&#xE49;&#xE2D;&#xE48;&#xE32;&#xE19;&#xE17;&#xE38;&#xE01;&#xE17;&#xE48;&#xE32;&#xE19;&#xE2A;&#xE32;&#xE21;&#xE32;&#xE23;&#xE16;&#xE15;&#xE34;&#xE14;&#xE15;&#xE31;&#xE49;&#xE07; sentry &#xE40;&#xE1E;&#xE37;&#xE48;&#xE2D;&#xE43;&#xE0A;&#xE49;&#xE07;&#xE32;&#xE19;&#xE01;&#xE31;&#xE19;&#xE44;&#xE14;&#xE49;&#xE19;&#xE30;&#xE04;&#xE23;&#xE31;&#xE1A; :)</p>]]></content:encoded></item><item><title><![CDATA[Backup & restore Mongodb]]></title><description><![CDATA[<p></p><ol><li>&#xE43;&#xE0A;&#xE49;&#xE04;&#xE33;&#xE2A;&#xE31;&#xE48;&#xE07; <strong>mongosh</strong> &#xE40;&#xE1E;&#xE37;&#xE48;&#xE2D;&#xE40;&#xE02;&#xE49;&#xE32;&#xE2A;&#xE39;&#xE48; mongdb cli &#xE41;&#xE25;&#xE30;&#xE43;&#xE0A;&#xE49;&#xE04;&#xE33;&#xE2A;&#xE31;&#xE48;&#xE07; <strong>show dbs </strong>&#xE40;&#xE1E;&#xE37;&#xE48;&#xE2D;&#xE14;&#xE39; db &#xE17;&#xE35;&#xE48;&#xE21;</li></ol>]]></description><link>https://blog.unixdev.co.th/backup-restore-mongodb/</link><guid isPermaLink="false">646dc8167ea9c11debf422f2</guid><dc:creator><![CDATA[Nawabhorn Charattrakool]]></dc:creator><pubDate>Wed, 24 May 2023 08:38:14 GMT</pubDate><content:encoded><![CDATA[<p></p><ol><li>&#xE43;&#xE0A;&#xE49;&#xE04;&#xE33;&#xE2A;&#xE31;&#xE48;&#xE07; <strong>mongosh</strong> &#xE40;&#xE1E;&#xE37;&#xE48;&#xE2D;&#xE40;&#xE02;&#xE49;&#xE32;&#xE2A;&#xE39;&#xE48; mongdb cli &#xE41;&#xE25;&#xE30;&#xE43;&#xE0A;&#xE49;&#xE04;&#xE33;&#xE2A;&#xE31;&#xE48;&#xE07; <strong>show dbs </strong>&#xE40;&#xE1E;&#xE37;&#xE48;&#xE2D;&#xE14;&#xE39; db &#xE17;&#xE35;&#xE48;&#xE21;&#xE35;&#xE2D;&#xE22;&#xE39;&#xE48;&#xE17;&#xE31;&#xE49;&#xE07;&#xE2B;&#xE21;&#xE14;</li></ol><figure class="kg-card kg-image-card"><img src="https://blog.unixdev.co.th/content/images/2023/05/image.png" class="kg-image" alt loading="lazy" width="1847" height="617" srcset="https://blog.unixdev.co.th/content/images/size/w600/2023/05/image.png 600w, https://blog.unixdev.co.th/content/images/size/w1000/2023/05/image.png 1000w, https://blog.unixdev.co.th/content/images/size/w1600/2023/05/image.png 1600w, https://blog.unixdev.co.th/content/images/2023/05/image.png 1847w" sizes="(min-width: 720px) 720px"></figure><p>2. backup db &#xE42;&#xE14;&#xE22;&#xE43;&#xE0A;&#xE49;&#xE04;&#xE33;&#xE2A;&#xE31;&#xE48;&#xE07; <strong>mongodump --db=test</strong></p><figure class="kg-card kg-image-card"><img src="https://blog.unixdev.co.th/content/images/2023/05/image-1.png" class="kg-image" alt loading="lazy" width="1237" height="206" srcset="https://blog.unixdev.co.th/content/images/size/w600/2023/05/image-1.png 600w, https://blog.unixdev.co.th/content/images/size/w1000/2023/05/image-1.png 1000w, https://blog.unixdev.co.th/content/images/2023/05/image-1.png 1237w" sizes="(min-width: 720px) 720px"></figure><p>3. &#xE2A;&#xE48;&#xE07;&#xE44;&#xE1F;&#xE25;&#xE4C;&#xE17;&#xE35;&#xE48; backup &#xE2D;&#xE2D;&#xE01;&#xE21;&#xE32;&#xE44;&#xE1B;&#xE2A;&#xE39;&#xE48;&#xE40;&#xE04;&#xE23;&#xE37;&#xE48;&#xE2D;&#xE07;&#xE17;&#xE35;&#xE48;&#xE15;&#xE49;&#xE2D;&#xE07;&#xE01;&#xE32;&#xE23;&#xE43;&#xE2B;&#xE49;&#xE44;&#xE1B; &#xE42;&#xE14;&#xE22;&#xE43;&#xE0A;&#xE49;&#xE04;&#xE33;&#xE2A;&#xE31;&#xE48;&#xE07;</p><p><strong>scp -r dump/ <a>root@172.30.103.224</a>:/root/</strong></p><p>4. &#xE17;&#xE33;&#xE01;&#xE32;&#xE23; restore &#xE44;&#xE1F;&#xE25;&#xE4C;&#xE17;&#xE35;&#xE48; backup &#xE44;&#xE27;&#xE49;&#xE42;&#xE14;&#xE22;&#xE43;&#xE0A;&#xE49;&#xE04;&#xE33;&#xE2A;&#xE31;&#xE48;&#xE07; </p><p><strong>mongorestore dump/test/ol_cdump.bson</strong></p><figure class="kg-card kg-image-card"><img src="https://blog.unixdev.co.th/content/images/2023/05/image-2.png" class="kg-image" alt loading="lazy" width="1292" height="366" srcset="https://blog.unixdev.co.th/content/images/size/w600/2023/05/image-2.png 600w, https://blog.unixdev.co.th/content/images/size/w1000/2023/05/image-2.png 1000w, https://blog.unixdev.co.th/content/images/2023/05/image-2.png 1292w" sizes="(min-width: 720px) 720px"></figure><p>5. &#xE40;&#xE21;&#xE37;&#xE48;&#xE2D;&#xE17;&#xE33;&#xE01;&#xE32;&#xE23; restore &#xE40;&#xE2A;&#xE23;&#xE47;&#xE08;&#xE40;&#xE21;&#xE37;&#xE48;&#xE2D;&#xE17;&#xE33;&#xE01;&#xE32;&#xE23;&#xE15;&#xE23;&#xE27;&#xE08;&#xE2A;&#xE2D;&#xE1A;&#xE14;&#xE39;&#xE01;&#xE47;&#xE08;&#xE30;&#xE21;&#xE35; db &#xE17;&#xE35;&#xE48;&#xE40;&#xE23;&#xE32; dumb &#xE2D;&#xE2D;&#xE01;&#xE21;&#xE32;</p><figure class="kg-card kg-image-card"><img src="https://blog.unixdev.co.th/content/images/2023/05/image-5.png" class="kg-image" alt loading="lazy" width="1571" height="569" srcset="https://blog.unixdev.co.th/content/images/size/w600/2023/05/image-5.png 600w, https://blog.unixdev.co.th/content/images/size/w1000/2023/05/image-5.png 1000w, https://blog.unixdev.co.th/content/images/2023/05/image-5.png 1571w" sizes="(min-width: 720px) 720px"></figure>]]></content:encoded></item><item><title><![CDATA[Config Wordpress with External database]]></title><description><![CDATA[<figure class="kg-card kg-image-card"><img src="https://blog.unixdev.co.th/content/images/2022/08/image-2-2.png" class="kg-image" alt loading="lazy" width="939" height="693" srcset="https://blog.unixdev.co.th/content/images/size/w600/2022/08/image-2-2.png 600w, https://blog.unixdev.co.th/content/images/2022/08/image-2-2.png 939w" sizes="(min-width: 720px) 720px"></figure><p>&#xE43;&#xE19;&#xE15;&#xE2D;&#xE19;&#xE19;&#xE35;&#xE49;&#xE40;&#xE23;&#xE32;&#xE15;&#xE49;&#xE2D;&#xE07;&#xE01;&#xE32;&#xE23;&#xE17;&#xE35;&#xE48;&#xE08;&#xE30;&#xE40;&#xE0A;&#xE37;&#xE48;&#xE2D;&#xE21; wordpress server &#xE01;&#xE31;&#xE1A; database server &#xE41;&#xE22;&#xE01;</p><p>DB Server</p><p>1) apt update -y</p><p>apt upgrade</p><p>apt install -y</p>]]></description><link>https://blog.unixdev.co.th/wordpress-debian-with-external-mariadb-database/</link><guid isPermaLink="false">62f2287ddfbce457fddefee3</guid><dc:creator><![CDATA[Nawabhorn Charattrakool]]></dc:creator><pubDate>Tue, 09 Aug 2022 09:43:25 GMT</pubDate><content:encoded><![CDATA[<figure class="kg-card kg-image-card"><img src="https://blog.unixdev.co.th/content/images/2022/08/image-2-2.png" class="kg-image" alt loading="lazy" width="939" height="693" srcset="https://blog.unixdev.co.th/content/images/size/w600/2022/08/image-2-2.png 600w, https://blog.unixdev.co.th/content/images/2022/08/image-2-2.png 939w" sizes="(min-width: 720px) 720px"></figure><p>&#xE43;&#xE19;&#xE15;&#xE2D;&#xE19;&#xE19;&#xE35;&#xE49;&#xE40;&#xE23;&#xE32;&#xE15;&#xE49;&#xE2D;&#xE07;&#xE01;&#xE32;&#xE23;&#xE17;&#xE35;&#xE48;&#xE08;&#xE30;&#xE40;&#xE0A;&#xE37;&#xE48;&#xE2D;&#xE21; wordpress server &#xE01;&#xE31;&#xE1A; database server &#xE41;&#xE22;&#xE01;</p><p>DB Server</p><p>1) apt update -y</p><p>apt upgrade</p><p>apt install -y mariadb-server mariadb-client</p><p>nano /etc/mysql/mariadb.conf.d/50-server.cnf</p><p>// &#xE43;&#xE2A;&#xE48; IP address &#xE02;&#xE2D;&#xE07; database server &#xE43;&#xE19; bind-address</p><figure class="kg-card kg-image-card"><img src="https://blog.unixdev.co.th/content/images/2022/08/image-3-1.png" class="kg-image" alt loading="lazy" width="539" height="70"></figure><p>&#xE2A;&#xE23;&#xE49;&#xE32;&#xE07; Database &#xE2A;&#xE33;&#xE2B;&#xE23;&#xE31;&#xE1A; Wordpress &#xE17;&#xE35;&#xE48; 1</p><p>mariadb -u root -p</p><p>create database wp_db;</p><p>create user &apos;wp_user&apos;@&apos;ip_webserver&apos; identified by &apos;password&apos;;</p><p>grant all privileges on wp_db.* to &apos;wp_user&apos;@&apos;ip_webserver&apos;;</p><p>FLUSH PRIVILEGES;</p><p>quit;</p><p>&#xE2A;&#xE23;&#xE49;&#xE32;&#xE07; Database &#xE2A;&#xE33;&#xE2B;&#xE23;&#xE31;&#xE1A; Wordpress &#xE17;&#xE35;&#xE48; 2 &#xE42;&#xE14;&#xE22;&#xE0A;&#xE37;&#xE48;&#xE2D; Database &#xE41;&#xE25;&#xE30; user &#xE08;&#xE30;&#xE15;&#xE49;&#xE2D;&#xE07;&#xE15;&#xE48;&#xE32;&#xE07;&#xE01;&#xE31;&#xE1A; db &#xE41;&#xE23;&#xE01;</p><p></p><p>Web server</p><p>2) &#xE17;&#xE14;&#xE25;&#xE2D;&#xE07;&#xE40;&#xE02;&#xE49;&#xE32; DB &#xE27;&#xE48;&#xE32;&#xE2A;&#xE32;&#xE21;&#xE32;&#xE23;&#xE16;&#xE40;&#xE0A;&#xE37;&#xE48;&#xE2D;&#xE21;&#xE15;&#xE48;&#xE2D;&#xE44;&#xE14;&#xE49;&#xE2B;&#xE23;&#xE37;&#xE2D;&#xE44;&#xE21;&#xE48;</p><p>mariadb -u wp_user -p -h ip_database</p><figure class="kg-card kg-image-card"><img src="https://blog.unixdev.co.th/content/images/2022/08/image-4-1.png" class="kg-image" alt loading="lazy" width="632" height="196" srcset="https://blog.unixdev.co.th/content/images/size/w600/2022/08/image-4-1.png 600w, https://blog.unixdev.co.th/content/images/2022/08/image-4-1.png 632w"></figure><p>3) &#xE41;&#xE01;&#xE49;&#xE44;&#xE02;&#xE44;&#xE1F;&#xE25;&#xE4C; wp-config.php</p><figure class="kg-card kg-image-card"><img src="https://blog.unixdev.co.th/content/images/2022/08/Screenshot-2022-08-09-164118-1.png" class="kg-image" alt loading="lazy" width="610" height="307" srcset="https://blog.unixdev.co.th/content/images/size/w600/2022/08/Screenshot-2022-08-09-164118-1.png 600w, https://blog.unixdev.co.th/content/images/2022/08/Screenshot-2022-08-09-164118-1.png 610w"></figure><p>4) &#xE40;&#xE02;&#xE49;&#xE32; https://ply-01.unddev.net , https://ply-02.unddev.net &#xE40;&#xE1E;&#xE37;&#xE48;&#xE2D;&#xE15;&#xE34;&#xE14;&#xE15;&#xE31;&#xE49;&#xE07; wordpress</p><figure class="kg-card kg-image-card"><img src="https://blog.unixdev.co.th/content/images/2022/08/image-5-1.png" class="kg-image" alt loading="lazy" width="658" height="688" srcset="https://blog.unixdev.co.th/content/images/size/w600/2022/08/image-5-1.png 600w, https://blog.unixdev.co.th/content/images/2022/08/image-5-1.png 658w"></figure>]]></content:encoded></item><item><title><![CDATA[Config Loadbalancer on Nginx]]></title><description><![CDATA[<figure class="kg-card kg-image-card"><img src="https://blog.unixdev.co.th/content/images/2022/08/Screenshot-2022-08-04-165322.png" class="kg-image" alt loading="lazy" width="960" height="685" srcset="https://blog.unixdev.co.th/content/images/size/w600/2022/08/Screenshot-2022-08-04-165322.png 600w, https://blog.unixdev.co.th/content/images/2022/08/Screenshot-2022-08-04-165322.png 960w" sizes="(min-width: 720px) 720px"></figure><p>Loadbalancer &#xE08;&#xE30;&#xE40;&#xE1B;&#xE47;&#xE19;&#xE40;&#xE04;&#xE23;&#xE37;&#xE48;&#xE2D;&#xE07;&#xE40;&#xE0B;&#xE34;&#xE23;&#xE4C;&#xE1F;&#xE40;&#xE27;&#xE2D;&#xE23;&#xE4C;&#xE17;&#xE35;&#xE48;&#xE08;&#xE30;&#xE17;&#xE33;&#xE43;&#xE2B;&#xE49;&#xE2A;&#xE32;&#xE21;&#xE32;&#xE23;&#xE16;&#xE23;&#xE2D;&#xE07;&#xE23;&#xE31;&#xE1A;&#xE20;&#xE32;&#xE23;</p>]]></description><link>https://blog.unixdev.co.th/config-loadbalancer-in-nginx/</link><guid isPermaLink="false">62eb96d9dfbce457fddefe5b</guid><dc:creator><![CDATA[Nawabhorn Charattrakool]]></dc:creator><pubDate>Thu, 04 Aug 2022 10:14:26 GMT</pubDate><content:encoded><![CDATA[<figure class="kg-card kg-image-card"><img src="https://blog.unixdev.co.th/content/images/2022/08/Screenshot-2022-08-04-165322.png" class="kg-image" alt loading="lazy" width="960" height="685" srcset="https://blog.unixdev.co.th/content/images/size/w600/2022/08/Screenshot-2022-08-04-165322.png 600w, https://blog.unixdev.co.th/content/images/2022/08/Screenshot-2022-08-04-165322.png 960w" sizes="(min-width: 720px) 720px"></figure><p>Loadbalancer &#xE08;&#xE30;&#xE40;&#xE1B;&#xE47;&#xE19;&#xE40;&#xE04;&#xE23;&#xE37;&#xE48;&#xE2D;&#xE07;&#xE40;&#xE0B;&#xE34;&#xE23;&#xE4C;&#xE1F;&#xE40;&#xE27;&#xE2D;&#xE23;&#xE4C;&#xE17;&#xE35;&#xE48;&#xE08;&#xE30;&#xE17;&#xE33;&#xE43;&#xE2B;&#xE49;&#xE2A;&#xE32;&#xE21;&#xE32;&#xE23;&#xE16;&#xE23;&#xE2D;&#xE07;&#xE23;&#xE31;&#xE1A;&#xE20;&#xE32;&#xE23;&#xE30;&#xE07;&#xE32;&#xE19;&#xE17;&#xE35;&#xE48;&#xE21;&#xE35;&#xE08;&#xE33;&#xE19;&#xE27;&#xE19;&#xE21;&#xE32;&#xE01;&#xE44;&#xE14;&#xE49;&#xE42;&#xE14;&#xE22;&#xE21;&#xE31;&#xE19;&#xE08;&#xE30;&#xE17;&#xE33;&#xE2B;&#xE19;&#xE49;&#xE32;&#xE17;&#xE35;&#xE48;&#xE40;&#xE1B;&#xE47;&#xE19;&#xE15;&#xE31;&#xE27;&#xE01;&#xE23;&#xE30;&#xE08;&#xE32;&#xE22;&#xE07;&#xE32;&#xE19;&#xE44;&#xE1B;&#xE43;&#xE2B;&#xE49;&#xE01;&#xE31;&#xE1A;&#xE40;&#xE04;&#xE23;&#xE37;&#xE48;&#xE2D;&#xE07;&#xE40;&#xE0B;&#xE34;&#xE23;&#xE4C;&#xE1F;&#xE40;&#xE27;&#xE2D;&#xE23;&#xE4C;&#xE15;&#xE48;&#xE32;&#xE07; &#xE46; &#xE20;&#xE32;&#xE22;&#xE43;&#xE19;&#xE23;&#xE30;&#xE1A;&#xE1A; &#xE17;&#xE33;&#xE43;&#xE2B;&#xE49;&#xE25;&#xE14;&#xE01;&#xE32;&#xE23;&#xE40;&#xE01;&#xE34;&#xE14;&#xE1B;&#xE31;&#xE0D;&#xE2B;&#xE32; overload &#xE41;&#xE25;&#xE30;&#xE17;&#xE33;&#xE43;&#xE2B;&#xE49;&#xE23;&#xE30;&#xE1A;&#xE1A;&#xE21;&#xE35;&#xE1B;&#xE23;&#xE30;&#xE2A;&#xE34;&#xE17;&#xE18;&#xE34;&#xE20;&#xE32;&#xE1E;&#xE21;&#xE32;&#xE01;&#xE02;&#xE36;&#xE49;&#xE19;</p><p>&#xE42;&#xE14;&#xE22;&#xE43;&#xE19;&#xE17;&#xE35;&#xE48;&#xE19;&#xE35;&#xE49;&#xE40;&#xE23;&#xE32;&#xE08;&#xE30;&#xE43;&#xE2B;&#xE49;&#xE40;&#xE0B;&#xE34;&#xE23;&#xE4C;&#xE1F;&#xE40;&#xE27;&#xE2D;&#xE23;&#xE4C;&#xE40;&#xE04;&#xE23;&#xE37;&#xE48;&#xE2D;&#xE07;&#xE19;&#xE36;&#xE07;&#xE08;&#xE30;&#xE17;&#xE33;&#xE2B;&#xE19;&#xE49;&#xE32;&#xE17;&#xE35;&#xE48;&#xE40;&#xE1B;&#xE47;&#xE19; loadbalancer &#xE42;&#xE14;&#xE22;&#xE17;&#xE33;&#xE07;&#xE32;&#xE19;&#xE2D;&#xE22;&#xE39;&#xE48;&#xE1A;&#xE19; nginx </p><p>1) &#xE15;&#xE34;&#xE14;&#xE15;&#xE31;&#xE49;&#xE07; nginx &#xE1A;&#xE19;&#xE40;&#xE04;&#xE23;&#xE37;&#xE48;&#xE2D;&#xE07;&#xE40;&#xE0B;&#xE34;&#xE23;&#xE4C;&#xE1F;&#xE40;&#xE27;&#xE2D;&#xE23;&#xE4C;&#xE19;&#xE35;&#xE49;</p><p>apt install nginx</p><p>2)&#xE41;&#xE01;&#xE49;&#xE44;&#xE02;&#xE44;&#xE1F;&#xE25;&#xE4C; nginx config &#xE40;&#xE1E;&#xE37;&#xE48;&#xE2D;&#xE43;&#xE2B;&#xE49; nginx &#xE17;&#xE33;&#xE07;&#xE32;&#xE19;&#xE40;&#xE1B;&#xE47;&#xE19; loadbalancer</p><p>nano /etc/nginx/sites-available/loadbalancer</p><p>&#xE43;&#xE2A;&#xE48;&#xE04;&#xE2D;&#xE19;&#xE1F;&#xE34;&#xE01;&#xE19;&#xE35;&#xE49;&#xE25;&#xE07;&#xE44;&#xE1B;&#xE43;&#xE19;&#xE44;&#xE1F;&#xE25;&#xE4C; loadbalancer &#xE42;&#xE14;&#xE22;&#xE27;&#xE34;&#xE18;&#xE35;&#xE01;&#xE32;&#xE23;&#xE17;&#xE35;&#xE48;&#xE08;&#xE30;&#xE43;&#xE0A;&#xE49;&#xE40;&#xE1B;&#xE47;&#xE19;&#xE41;&#xE1A;&#xE1A; Round-Robin </p><p>upstream mywebapp1 {</p><p> &#xA0; &#xA0;server ply-03.unddev.net;</p><p> &#xA0; &#xA0;server ply-04.unddev.net;</p><p>}</p><p></p><p>server {</p><p># &#xA0; &#xA0;listen 80;</p><p> &#xA0; &#xA0;listen 443 ssl;</p><p> &#xA0; &#xA0;server_name ply-03.unddev.net ply-04.undddev.net;</p><p></p><p> &#xA0; &#xA0;ssl on;</p><p> &#xA0; &#xA0;ssl_certificate &#xA0; &#xA0; &#xA0; &#xA0; /etc/nginx/ssl/loadbalancer/fullchain.pem;</p><p> &#xA0; &#xA0;ssl_certificate_key &#xA0; &#xA0; /etc/nginx/ssl/loadbalancer/privkey.pem;</p><p># &#xA0; &#xA0;ssl_trusted_certificate /etc/nginx/ssl/ply01/ca-certs.pem;</p><p></p><p> # &#xA0; ssl_session_cache shared:SSL:20m;</p><p> &#xA0;# &#xA0;ssl_session_timeout 10m;</p><p></p><p># &#xA0; &#xA0;ssl_prefer_server_ciphers &#xA0; &#xA0; &#xA0; on;</p><p># &#xA0; &#xA0;ssl_protocols &#xA0; &#xA0; &#xA0; &#xA0; &#xA0; &#xA0; &#xA0; &#xA0; &#xA0; TLSv1 TLSv1.1 TLSv1.2;</p><p># &#xA0; &#xA0;ssl_ciphers &#xA0; &#xA0; &#xA0; &#xA0; &#xA0; &#xA0; &#xA0; &#xA0; &#xA0; &#xA0; ECDH+AESGCM:DH+AESGCM:ECDH+AES256:DH+AES256:ECDH+AES128:DH+AES:ECDH+3DES:DH+3DES:RSA+AESGCM:RSA+AES:RSA+3DES:!aNULL:!MD5:!DSS;</p><p></p><p># &#xA0; &#xA0;add_header Strict-Transport-Security &quot;max-age=31536000&quot;;</p><p></p><p> &#xA0; &#xA0;location / {</p><p> &#xA0; &#xA0; &#xA0; &#xA0;proxy_pass https://45.127.62.92;</p><p> &#xA0; &#xA0; &#xA0; &#xA0;proxy_set_header Host $host;</p><p> &#xA0; &#xA0; &#xA0; &#xA0;proxy_set_header X-Real-IP $remote_addr;</p><p> &#xA0; &#xA0; &#xA0; &#xA0;proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;</p><p> &#xA0; &#xA0; &#xA0; &#xA0;proxy_set_header X-Forwarded-Proto $scheme;</p><p> &#xA0; &#xA0;}</p><p>}</p><figure class="kg-card kg-image-card"><img src="https://blog.unixdev.co.th/content/images/2022/08/Screenshot-2022-08-04-170327.png" class="kg-image" alt loading="lazy" width="1327" height="526" srcset="https://blog.unixdev.co.th/content/images/size/w600/2022/08/Screenshot-2022-08-04-170327.png 600w, https://blog.unixdev.co.th/content/images/size/w1000/2022/08/Screenshot-2022-08-04-170327.png 1000w, https://blog.unixdev.co.th/content/images/2022/08/Screenshot-2022-08-04-170327.png 1327w" sizes="(min-width: 720px) 720px"></figure><p>ln -s /etc/nginx/sites-available/loadbalancer /etc/nginx/sites-enabled/</p><p>rm /etc/nginx/sites-enabled/default</p><p>3) &#xE40;&#xE1E;&#xE34;&#xE48;&#xE21; ssl file &#xE42;&#xE14;&#xE22;&#xE04;&#xE31;&#xE14;&#xE25;&#xE2D;&#xE01;&#xE44;&#xE1F;&#xE25;&#xE4C; fullchain.pem &#xE41;&#xE25;&#xE30; privkey.pem &#xE08;&#xE32;&#xE01;&#xE40;&#xE04;&#xE23;&#xE37;&#xE48;&#xE2D;&#xE07; web server &#xE21;&#xE32;&#xE44;&#xE27;&#xE49;&#xE43;&#xE19; path &#xE17;&#xE35;&#xE48;&#xE44;&#xE14;&#xE49;&#xE43;&#xE2A;&#xE48;&#xE43;&#xE19;&#xE44;&#xE1F;&#xE25;&#xE4C; config </p><p>cd /etc/nginx</p><p>mkdir -p ssl/loadbalancer</p><p>nano fullchain.pem</p><p>nano privkey.pem</p><p>(&#xE44;&#xE21;&#xE48;&#xE21;&#xE35;&#xE23;&#xE39;&#xE1B;&#xE40;&#xE1E;&#xE23;&#xE32;&#xE30;&#xE27;&#xE48;&#xE32; key &#xE41;&#xE25;&#xE30; private key &#xE15;&#xE48;&#xE32;&#xE07; &#xE46; &#xE44;&#xE21;&#xE48;&#xE04;&#xE27;&#xE23;&#xE40;&#xE1C;&#xE22;&#xE41;&#xE1E;&#xE23;&#xE48;)</p><p>4) &#xE41;&#xE01;&#xE49;&#xE44;&#xE02; host file &#xE43;&#xE19;&#xE40;&#xE04;&#xE23;&#xE37;&#xE48;&#xE2D;&#xE07;&#xE15;&#xE31;&#xE27;&#xE40;&#xE2D;&#xE07; &#xE40;&#xE1E;&#xE37;&#xE48;&#xE2D;&#xE1A;&#xE31;&#xE19;&#xE17;&#xE36;&#xE01; donaimname ip &#xE02;&#xE2D;&#xE07;server<br>C:\Windows\System32\drivers\etc\</p><figure class="kg-card kg-image-card"><img src="https://blog.unixdev.co.th/content/images/2022/08/image.png" class="kg-image" alt loading="lazy" width="882" height="630" srcset="https://blog.unixdev.co.th/content/images/size/w600/2022/08/image.png 600w, https://blog.unixdev.co.th/content/images/2022/08/image.png 882w" sizes="(min-width: 720px) 720px"></figure><p>5) restart nginx service </p><p>nginx -s reload </p><p>6) &#xE15;&#xE23;&#xE27;&#xE08;&#xE2A;&#xE2D;&#xE1A;&#xE27;&#xE48;&#xE32;&#xE40;&#xE2A;&#xE49;&#xE19;&#xE17;&#xE32;&#xE07;&#xE43;&#xE19;&#xE01;&#xE32;&#xE23;&#xE40;&#xE02;&#xE49;&#xE32; web server &#xE19;&#xE31;&#xE49;&#xE19;&#xE44;&#xE14;&#xE49;&#xE1C;&#xE48;&#xE32;&#xE19; loadbalancer &#xE41;&#xE25;&#xE49;&#xE27;&#xE2B;&#xE23;&#xE37;&#xE2D;&#xE44;&#xE21;&#xE48;</p><figure class="kg-card kg-image-card"><img src="https://blog.unixdev.co.th/content/images/2022/08/Screenshot-2022-08-04-171220.png" class="kg-image" alt loading="lazy" width="730" height="321" srcset="https://blog.unixdev.co.th/content/images/size/w600/2022/08/Screenshot-2022-08-04-171220.png 600w, https://blog.unixdev.co.th/content/images/2022/08/Screenshot-2022-08-04-171220.png 730w" sizes="(min-width: 720px) 720px"></figure><figure class="kg-card kg-image-card"><img src="https://blog.unixdev.co.th/content/images/2022/08/Screenshot-2022-08-04-171301.png" class="kg-image" alt loading="lazy" width="1666" height="313" srcset="https://blog.unixdev.co.th/content/images/size/w600/2022/08/Screenshot-2022-08-04-171301.png 600w, https://blog.unixdev.co.th/content/images/size/w1000/2022/08/Screenshot-2022-08-04-171301.png 1000w, https://blog.unixdev.co.th/content/images/size/w1600/2022/08/Screenshot-2022-08-04-171301.png 1600w, https://blog.unixdev.co.th/content/images/2022/08/Screenshot-2022-08-04-171301.png 1666w" sizes="(min-width: 720px) 720px"></figure>]]></content:encoded></item><item><title><![CDATA[Install Let's Encrypt SSL on Debian 10]]></title><description><![CDATA[<p>&#xE2B;&#xE25;&#xE31;&#xE07;&#xE08;&#xE32;&#xE01;&#xE17;&#xE35;&#xE48;&#xE40;&#xE23;&#xE32;&#xE44;&#xE14;&#xE49;&#xE15;&#xE31;&#xE49;&#xE07;&#xE04;&#xE48;&#xE32; domain name &#xE43;&#xE2B;&#xE49;&#xE01;&#xE31;&#xE1A;&#xE40;&#xE27;&#xE47;&#xE1A;&#xE44;&#xE0B;&#xE15;&#xE4C;&#xE41;&#xE25;&#xE49;&#xE27;&#xE19;&#xE31;&#xE49;&#xE19; &#xE41;&#xE15;&#xE48;</p>]]></description><link>https://blog.unixdev.co.th/let-encrypt-free-ssl-debian/</link><guid isPermaLink="false">62bad1f5dfbce457fddefdd8</guid><dc:creator><![CDATA[Nawabhorn Charattrakool]]></dc:creator><pubDate>Tue, 28 Jun 2022 10:26:25 GMT</pubDate><content:encoded><![CDATA[<p>&#xE2B;&#xE25;&#xE31;&#xE07;&#xE08;&#xE32;&#xE01;&#xE17;&#xE35;&#xE48;&#xE40;&#xE23;&#xE32;&#xE44;&#xE14;&#xE49;&#xE15;&#xE31;&#xE49;&#xE07;&#xE04;&#xE48;&#xE32; domain name &#xE43;&#xE2B;&#xE49;&#xE01;&#xE31;&#xE1A;&#xE40;&#xE27;&#xE47;&#xE1A;&#xE44;&#xE0B;&#xE15;&#xE4C;&#xE41;&#xE25;&#xE49;&#xE27;&#xE19;&#xE31;&#xE49;&#xE19; &#xE41;&#xE15;&#xE48;&#xE40;&#xE23;&#xE32;&#xE15;&#xE49;&#xE2D;&#xE07;&#xE01;&#xE32;&#xE23;&#xE17;&#xE35;&#xE48;&#xE08;&#xE30;&#xE40;&#xE1B;&#xE25;&#xE35;&#xE48;&#xE22;&#xE19; http &#xE43;&#xE2B;&#xE49;&#xE40;&#xE1B;&#xE47;&#xE19; https &#xE40;&#xE1E;&#xE37;&#xE48;&#xE2D;&#xE04;&#xE27;&#xE32;&#xE21; security &#xE02;&#xE2D;&#xE07;&#xE40;&#xE27;&#xE47;&#xE1A;&#xE44;&#xE0B;&#xE15;&#xE4C;</p><p>1) &#xE15;&#xE34;&#xE14;&#xE15;&#xE31;&#xE49;&#xE07; certbot tool &#xE40;&#xE1E;&#xE37;&#xE48;&#xE2D;&#xE43;&#xE0A;&#xE49;&#xE43;&#xE19;&#xE01;&#xE32;&#xE23;&#xE15;&#xE34;&#xE14;&#xE15;&#xE31;&#xE49;&#xE07; Let&apos;s Encrypt SSL &#xE41;&#xE25;&#xE30; generate free SSL certificate </p><p>apt install certbot python3-certbot-nginx</p><figure class="kg-card kg-image-card"><img src="https://blog.unixdev.co.th/content/images/2022/06/Screenshot-2022-06-28-165922.png" class="kg-image" alt loading="lazy" width="780" height="37" srcset="https://blog.unixdev.co.th/content/images/size/w600/2022/06/Screenshot-2022-06-28-165922.png 600w, https://blog.unixdev.co.th/content/images/2022/06/Screenshot-2022-06-28-165922.png 780w" sizes="(min-width: 720px) 720px"></figure><p>2) &#xE40;&#xE23;&#xE35;&#xE22;&#xE01;&#xE43;&#xE0A;&#xE49;&#xE07;&#xE32;&#xE19;&#xE42;&#xE14;&#xE22;&#xE43;&#xE0A;&#xE49;&#xE04;&#xE33;&#xE2A;&#xE31;&#xE48;&#xE07;&#xE14;&#xE49;&#xE32;&#xE19;&#xE25;&#xE48;&#xE32;&#xE07;&#xE19;&#xE35;&#xE49; &#xE41;&#xE25;&#xE30;&#xE08;&#xE32;&#xE01;&#xE19;&#xE31;&#xE49;&#xE19;&#xE40;&#xE02;&#xE32;&#xE08;&#xE30;&#xE43;&#xE2B;&#xE49;&#xE43;&#xE2A;&#xE48;&#xE2D;&#xE35;&#xE40;&#xE21;&#xE25;&#xE4C;, &#xE22;&#xE2D;&#xE21;&#xE23;&#xE31;&#xE1A;&#xE19;&#xE42;&#xE22;&#xE1A;&#xE32;&#xE22; &#xE41;&#xE25;&#xE30;&#xE22;&#xE2D;&#xE21;&#xE23;&#xE31;&#xE1A;&#xE43;&#xE2B;&#xE49;&#xE2A;&#xE48;&#xE07;&#xE02;&#xE48;&#xE32;&#xE27;&#xE2A;&#xE32;&#xE23;&#xE1C;&#xE48;&#xE32;&#xE19;&#xE17;&#xE32;&#xE07;&#xE2D;&#xE35;&#xE40;&#xE21;&#xE25;&#xE4C;</p><p>certbot --nginx</p><figure class="kg-card kg-image-card"><img src="https://blog.unixdev.co.th/content/images/2022/06/Screenshot-2022-06-28-170137.png" class="kg-image" alt loading="lazy" width="1062" height="517" srcset="https://blog.unixdev.co.th/content/images/size/w600/2022/06/Screenshot-2022-06-28-170137.png 600w, https://blog.unixdev.co.th/content/images/size/w1000/2022/06/Screenshot-2022-06-28-170137.png 1000w, https://blog.unixdev.co.th/content/images/2022/06/Screenshot-2022-06-28-170137.png 1062w" sizes="(min-width: 720px) 720px"></figure><p>&#xE40;&#xE02;&#xE32;&#xE08;&#xE30;&#xE16;&#xE32;&#xE21;&#xE27;&#xE48;&#xE32;&#xE15;&#xE49;&#xE2D;&#xE07;&#xE01;&#xE32;&#xE23;&#xE43;&#xE2B;&#xE49; domain name &#xE2D;&#xE31;&#xE19;&#xE44;&#xE2B;&#xE19;&#xE43;&#xE2B;&#xE49;&#xE40;&#xE1B;&#xE47;&#xE19; HTTPS &#xE43;&#xE19;&#xE17;&#xE35;&#xE48;&#xE19;&#xE35;&#xE49;&#xE40;&#xE23;&#xE32;&#xE15;&#xE49;&#xE2D;&#xE07;&#xE01;&#xE32;&#xE23;&#xE40;&#xE25;&#xE37;&#xE2D;&#xE01;&#xE17;&#xE31;&#xE49;&#xE07;&#xE2B;&#xE21;&#xE14;&#xE19;&#xE35;&#xE49;&#xE01;&#xE47;&#xE08;&#xE30;&#xE17;&#xE33;&#xE01;&#xE32;&#xE23;&#xE01;&#xE14; enter &#xE44;&#xE1B;&#xE40;&#xE25;&#xE22; &#xE41;&#xE15;&#xE48;&#xE16;&#xE49;&#xE32;&#xE15;&#xE49;&#xE2D;&#xE07;&#xE01;&#xE32;&#xE23;&#xE40;&#xE25;&#xE37;&#xE2D;&#xE01;&#xE01;&#xE47;&#xE2A;&#xE32;&#xE21;&#xE32;&#xE23;&#xE16;&#xE43;&#xE2A;&#xE48;&#xE40;&#xE1B;&#xE47;&#xE19;&#xE15;&#xE31;&#xE27;&#xE40;&#xE25;&#xE02;&#xE0A;&#xE37;&#xE48;&#xE2D;&#xE17;&#xE35;&#xE48;&#xE15;&#xE49;&#xE2D;&#xE07;&#xE01;&#xE32;&#xE23;</p><figure class="kg-card kg-image-card"><img src="https://blog.unixdev.co.th/content/images/2022/06/Screenshot-2022-06-28-170008.png" class="kg-image" alt loading="lazy" width="1000" height="394" srcset="https://blog.unixdev.co.th/content/images/size/w600/2022/06/Screenshot-2022-06-28-170008.png 600w, https://blog.unixdev.co.th/content/images/2022/06/Screenshot-2022-06-28-170008.png 1000w" sizes="(min-width: 720px) 720px"></figure><p>&#xE40;&#xE02;&#xE32;&#xE08;&#xE30;&#xE16;&#xE32;&#xE21;&#xE27;&#xE48;&#xE32;&#xE15;&#xE49;&#xE2D;&#xE07;&#xE01;&#xE32;&#xE23;&#xE41;&#xE01;&#xE49;&#xE44;&#xE02;&#xE43;&#xE2B;&#xE49; redirect traffic &#xE44;&#xE1B;&#xE22;&#xE31;&#xE07; HTTPS &#xE21;&#xE31;&#xE49;&#xE22; &#xE43;&#xE19;&#xE17;&#xE35;&#xE48;&#xE19;&#xE35;&#xE49;&#xE08;&#xE30;&#xE40;&#xE25;&#xE37;&#xE2D;&#xE01;&#xE43;&#xE2B;&#xE49; redirect &#xE01;&#xE47;&#xE25;&#xE30;&#xE1E;&#xE34;&#xE21;&#xE1E;&#xE4C; 2 &#xE25;&#xE07;&#xE44;&#xE1B;</p><figure class="kg-card kg-image-card"><img src="https://blog.unixdev.co.th/content/images/2022/06/Screenshot-2022-06-28-170036.png" class="kg-image" alt loading="lazy" width="1084" height="271" srcset="https://blog.unixdev.co.th/content/images/size/w600/2022/06/Screenshot-2022-06-28-170036.png 600w, https://blog.unixdev.co.th/content/images/size/w1000/2022/06/Screenshot-2022-06-28-170036.png 1000w, https://blog.unixdev.co.th/content/images/2022/06/Screenshot-2022-06-28-170036.png 1084w" sizes="(min-width: 720px) 720px"></figure><p>&#xE01;&#xE32;&#xE23;&#xE15;&#xE34;&#xE14;&#xE15;&#xE31;&#xE49;&#xE07;&#xE2A;&#xE33;&#xE40;&#xE23;&#xE47;&#xE08;</p><figure class="kg-card kg-image-card"><img src="https://blog.unixdev.co.th/content/images/2022/06/Screenshot-2022-06-28-170050.png" class="kg-image" alt loading="lazy" width="1036" height="684" srcset="https://blog.unixdev.co.th/content/images/size/w600/2022/06/Screenshot-2022-06-28-170050.png 600w, https://blog.unixdev.co.th/content/images/size/w1000/2022/06/Screenshot-2022-06-28-170050.png 1000w, https://blog.unixdev.co.th/content/images/2022/06/Screenshot-2022-06-28-170050.png 1036w" sizes="(min-width: 720px) 720px"></figure><p>3) &#xE15;&#xE23;&#xE27;&#xE08;&#xE2A;&#xE2D;&#xE1A;&#xE2B;&#xE19;&#xE49;&#xE32;&#xE40;&#xE27;&#xE47;&#xE1A; &#xE08;&#xE32;&#xE01;&#xE15;&#xE23;&#xE07;&#xE02;&#xE49;&#xE32;&#xE07;&#xE2B;&#xE19;&#xE49;&#xE32; domain name &#xE15;&#xE2D;&#xE19;&#xE41;&#xE23;&#xE01;&#xE21;&#xE31;&#xE19;&#xE08;&#xE30;&#xE02;&#xE36;&#xE49;&#xE19;&#xE27;&#xE48;&#xE32; Not secure &#xE2B;&#xE25;&#xE31;&#xE07;&#xE08;&#xE32;&#xE01;&#xE15;&#xE34;&#xE14;&#xE15;&#xE31;&#xE49;&#xE07; SSL &#xE01;&#xE47;&#xE08;&#xE30;&#xE21;&#xE35;&#xE23;&#xE39;&#xE1B;&#xE41;&#xE21;&#xE48;&#xE01;&#xE38;&#xE0D;&#xE41;&#xE08;&#xE02;&#xE36;&#xE49;&#xE19;&#xE21;&#xE32;&#xE41;&#xE17;&#xE19;</p><figure class="kg-card kg-image-card"><img src="https://blog.unixdev.co.th/content/images/2022/06/image-4.png" class="kg-image" alt loading="lazy" width="470" height="299"></figure><figure class="kg-card kg-image-card"><img src="https://blog.unixdev.co.th/content/images/2022/06/image-5.png" class="kg-image" alt loading="lazy" width="602" height="729" srcset="https://blog.unixdev.co.th/content/images/size/w600/2022/06/image-5.png 600w, https://blog.unixdev.co.th/content/images/2022/06/image-5.png 602w"></figure>]]></content:encoded></item><item><title><![CDATA[Config Multi Database on Nginx, Wordpress]]></title><description><![CDATA[<figure class="kg-card kg-image-card"><img src="https://blog.unixdev.co.th/content/images/2022/06/image-2.png" class="kg-image" alt loading="lazy" width="949" height="533" srcset="https://blog.unixdev.co.th/content/images/size/w600/2022/06/image-2.png 600w, https://blog.unixdev.co.th/content/images/2022/06/image-2.png 949w" sizes="(min-width: 720px) 720px"></figure><p>&#xE2B;&#xE25;&#xE31;&#xE07;&#xE08;&#xE32;&#xE01;&#xE17;&#xE35;&#xE48;&#xE15;&#xE34;&#xE14;&#xE15;&#xE31;&#xE49;&#xE07; nginx , wordpress &#xE41;&#xE25;&#xE30;&#xE15;&#xE31;&#xE49;&#xE07;&#xE04;&#xE48;&#xE32; domain name &#xE44;&#xE1B;&#xE41;&#xE15;&#xE48;&#xE27;&#xE48;&#xE32;&#xE40;&#xE23;&#xE32;&#xE21;&#xE35;&#xE2A;&#xE34;&#xE48;&#xE07;&#xE17;&#xE35;</p>]]></description><link>https://blog.unixdev.co.th/config-multi-database-on-nginx-wordpress/</link><guid isPermaLink="false">62baac9ddfbce457fddefd5f</guid><dc:creator><![CDATA[Nawabhorn Charattrakool]]></dc:creator><pubDate>Tue, 28 Jun 2022 07:42:33 GMT</pubDate><content:encoded><![CDATA[<figure class="kg-card kg-image-card"><img src="https://blog.unixdev.co.th/content/images/2022/06/image-2.png" class="kg-image" alt loading="lazy" width="949" height="533" srcset="https://blog.unixdev.co.th/content/images/size/w600/2022/06/image-2.png 600w, https://blog.unixdev.co.th/content/images/2022/06/image-2.png 949w" sizes="(min-width: 720px) 720px"></figure><p>&#xE2B;&#xE25;&#xE31;&#xE07;&#xE08;&#xE32;&#xE01;&#xE17;&#xE35;&#xE48;&#xE15;&#xE34;&#xE14;&#xE15;&#xE31;&#xE49;&#xE07; nginx , wordpress &#xE41;&#xE25;&#xE30;&#xE15;&#xE31;&#xE49;&#xE07;&#xE04;&#xE48;&#xE32; domain name &#xE44;&#xE1B;&#xE41;&#xE15;&#xE48;&#xE27;&#xE48;&#xE32;&#xE40;&#xE23;&#xE32;&#xE21;&#xE35;&#xE2A;&#xE34;&#xE48;&#xE07;&#xE17;&#xE35;&#xE48;&#xE15;&#xE49;&#xE2D;&#xE07;&#xE01;&#xE32;&#xE23;&#xE40;&#xE1E;&#xE34;&#xE48;&#xE21;&#xE01;&#xE47;&#xE04;&#xE37;&#xE2D; &#xE15;&#xE49;&#xE2D;&#xE07;&#xE01;&#xE32;&#xE23;&#xE43;&#xE2B;&#xE49;&#xE15;&#xE31;&#xE27;&#xE40;&#xE27;&#xE47;&#xE1A;&#xE17;&#xE31;&#xE49;&#xE07;&#xE2A;&#xE2D;&#xE07;&#xE19;&#xE35;&#xE48;&#xE21;&#xE35; database &#xE17;&#xE35;&#xE48;&#xE41;&#xE22;&#xE01;&#xE2D;&#xE2D;&#xE01;&#xE08;&#xE32;&#xE01;&#xE01;&#xE31;&#xE19; </p><p>1) &#xE17;&#xE33;&#xE01;&#xE32;&#xE23;&#xE2A;&#xE23;&#xE49;&#xE32;&#xE07; database &#xE43;&#xE2B;&#xE49;&#xE01;&#xE31;&#xE1A;&#xE40;&#xE27;&#xE47;&#xE1A;&#xE17;&#xE35;&#xE48; 1 </p><p>CREATE DATABASE ply01;</p><p>CREATE USER ply01@localhost identified by &apos;password&apos;;</p><p>GRANT ALL PRIVILEGES ON ply01.* TO ply01@localhost;</p><p>FLUSH PRIVILEGES;</p><figure class="kg-card kg-image-card"><img src="https://blog.unixdev.co.th/content/images/2022/06/Screenshot-2022-06-28-135833-1.png" class="kg-image" alt loading="lazy" width="951" height="360" srcset="https://blog.unixdev.co.th/content/images/size/w600/2022/06/Screenshot-2022-06-28-135833-1.png 600w, https://blog.unixdev.co.th/content/images/2022/06/Screenshot-2022-06-28-135833-1.png 951w" sizes="(min-width: 720px) 720px"></figure><p>2) &#xE2A;&#xE23;&#xE49;&#xE32;&#xE07; database &#xE43;&#xE2B;&#xE49;&#xE01;&#xE31;&#xE1A;&#xE40;&#xE27;&#xE47;&#xE1A;&#xE17;&#xE35;&#xE48; 2</p><p>CREATE DATABASE ply02;</p><p>CREATE USER ply02@localhost identified by &apos;password&apos;;</p><p>GRANT ALL PRIVILEGES ON ply02.* TO ply02@localhost;</p><p>FLUSH PRIVILEGES;</p><figure class="kg-card kg-image-card"><img src="https://blog.unixdev.co.th/content/images/2022/06/Screenshot-2022-06-28-143101.png" class="kg-image" alt loading="lazy" width="928" height="402" srcset="https://blog.unixdev.co.th/content/images/size/w600/2022/06/Screenshot-2022-06-28-143101.png 600w, https://blog.unixdev.co.th/content/images/2022/06/Screenshot-2022-06-28-143101.png 928w" sizes="(min-width: 720px) 720px"></figure><p> 3) &#xE17;&#xE33;&#xE01;&#xE32;&#xE23;&#xE41;&#xE22;&#xE01; source code &#xE02;&#xE2D;&#xE07; wordpress &#xE43;&#xE2B;&#xE49;&#xE40;&#xE1B;&#xE47;&#xE19;&#xE42;&#xE1F;&#xE25;&#xE40;&#xE14;&#xE2D;&#xE23;&#xE4C;&#xE41;&#xE22;&#xE01;&#xE02;&#xE2D;&#xE07;&#xE41;&#xE15;&#xE48;&#xE25;&#xE30;&#xE40;&#xE27;&#xE47;&#xE1A; &#xE42;&#xE14;&#xE22;&#xE43;&#xE0A;&#xE49;&#xE04;&#xE33;&#xE2A;&#xE31;&#xE48;&#xE07;&#xE14;&#xE49;&#xE32;&#xE19;&#xE25;&#xE48;&#xE32;&#xE07;&#xE19;&#xE35;&#xE49; &#xE08;&#xE30;&#xE17;&#xE33;&#xE01;&#xE32;&#xE23;&#xE04;&#xE31;&#xE14;&#xE25;&#xE2D;&#xE01;&#xE44;&#xE1F;&#xE25;&#xE4C;&#xE43;&#xE19;&#xE42;&#xE1F;&#xE25;&#xE40;&#xE14;&#xE2D;&#xE23;&#xE4C; wordpress &#xE17;&#xE35;&#xE48;&#xE44;&#xE14;&#xE49;&#xE15;&#xE34;&#xE14;&#xE15;&#xE31;&#xE49;&#xE07;&#xE44;&#xE1B;&#xE43;&#xE19;&#xE15;&#xE2D;&#xE19;&#xE41;&#xE23;&#xE01;&#xE21;&#xE32;&#xE43;&#xE2A;&#xE48;&#xE43;&#xE19;&#xE42;&#xE1F;&#xE25;&#xE40;&#xE14;&#xE2D;&#xE23;&#xE4C;&#xE43;&#xE2B;&#xE21;&#xE48;&#xE17;&#xE35;&#xE48;&#xE41;&#xE22;&#xE01;&#xE40;&#xE27;&#xE47;&#xE1A;</p><p>mkdir ply01</p><p>mkdir ply02</p><p>cp -a wordpress/* /var/www/ply01/</p><p>cp -a wordpress/* /var/www/ply02/</p><p>&#xE41;&#xE25;&#xE30;&#xE17;&#xE33;&#xE01;&#xE32;&#xE23;&#xE41;&#xE01;&#xE49;&#xE44;&#xE02;&#xE44;&#xE1F;&#xE25;&#xE4C; config &#xE17;&#xE35;&#xE48;&#xE40;&#xE0A;&#xE37;&#xE48;&#xE2D;&#xE21;&#xE15;&#xE48;&#xE2D;&#xE01;&#xE31;&#xE1A; database &#xE41;&#xE01;&#xE49;&#xE44;&#xE02; DB_NAME , DB_USER , DB_PASSWORD &#xE43;&#xE2B;&#xE49;&#xE40;&#xE1B;&#xE47;&#xE19;&#xE44;&#xE1B;&#xE15;&#xE32;&#xE21;&#xE17;&#xE35;&#xE48;&#xE40;&#xE23;&#xE32;&#xE44;&#xE14;&#xE49;&#xE2A;&#xE23;&#xE49;&#xE32;&#xE07;&#xE44;&#xE27;&#xE49;&#xE43;&#xE19;&#xE15;&#xE2D;&#xE19;&#xE41;&#xE23;&#xE01;</p><p>nano /var/www/ply01/wp-config.php</p><p>nano /var/www/ply02/wp-config.php</p><figure class="kg-card kg-image-card"><img src="https://blog.unixdev.co.th/content/images/2022/06/Screenshot-2022-06-28-140526-1.png" class="kg-image" alt loading="lazy" width="898" height="471" srcset="https://blog.unixdev.co.th/content/images/size/w600/2022/06/Screenshot-2022-06-28-140526-1.png 600w, https://blog.unixdev.co.th/content/images/2022/06/Screenshot-2022-06-28-140526-1.png 898w" sizes="(min-width: 720px) 720px"></figure><p>3) &#xE15;&#xE31;&#xE49;&#xE07;&#xE04;&#xE48;&#xE32;&#xE44;&#xE1F;&#xE25;&#xE4C;&#xE04;&#xE2D;&#xE19;&#xE1F;&#xE34;&#xE01;&#xE02;&#xE2D;&#xE07; nginx &#xE43;&#xE2B;&#xE49;&#xE17;&#xE33;&#xE01;&#xE32;&#xE23;&#xE0A;&#xE35;&#xE49;&#xE21;&#xE32;&#xE17;&#xE35;&#xE48;&#xE17;&#xE35;&#xE48;&#xE2D;&#xE22;&#xE39;&#xE48;&#xE44;&#xE1F;&#xE25;&#xE4C;&#xE19;&#xE35;&#xE49; &#xE41;&#xE01;&#xE49;&#xE44;&#xE02;&#xE15;&#xE23;&#xE07; root &#xE43;&#xE2B;&#xE49;&#xE43;&#xE2A;&#xE48; path &#xE02;&#xE2D;&#xE07; sourcecode &#xE17;&#xE35;&#xE48;&#xE44;&#xE14;&#xE49;&#xE2A;&#xE23;&#xE49;&#xE32;&#xE07;&#xE41;&#xE25;&#xE30;&#xE15;&#xE31;&#xE49;&#xE07;&#xE04;&#xE48;&#xE32;&#xE44;&#xE27;&#xE49;&#xE01;&#xE48;&#xE2D;&#xE19;&#xE2B;&#xE19;&#xE49;&#xE32;</p><p>nano /etc/nginx/site-available/ply01.unddev.net</p><p>nano /etc/nginx/site-available/ply02.unddev.net</p><figure class="kg-card kg-image-card"><img src="https://blog.unixdev.co.th/content/images/2022/06/Screenshot-2022-06-28-140645.png" class="kg-image" alt loading="lazy" width="859" height="673" srcset="https://blog.unixdev.co.th/content/images/size/w600/2022/06/Screenshot-2022-06-28-140645.png 600w, https://blog.unixdev.co.th/content/images/2022/06/Screenshot-2022-06-28-140645.png 859w" sizes="(min-width: 720px) 720px"></figure><p>4) restart nginx</p><p>systemctl restart nginx.service</p><p>systemctl status nginx.service</p><figure class="kg-card kg-image-card"><img src="https://blog.unixdev.co.th/content/images/2022/06/Screenshot-2022-06-28-141737.png" class="kg-image" alt loading="lazy" width="1521" height="444" srcset="https://blog.unixdev.co.th/content/images/size/w600/2022/06/Screenshot-2022-06-28-141737.png 600w, https://blog.unixdev.co.th/content/images/size/w1000/2022/06/Screenshot-2022-06-28-141737.png 1000w, https://blog.unixdev.co.th/content/images/2022/06/Screenshot-2022-06-28-141737.png 1521w" sizes="(min-width: 720px) 720px"></figure><p>5) &#xE40;&#xE02;&#xE49;&#xE32;&#xE44;&#xE1B;&#xE17;&#xE35;&#xE48; domain name &#xE40;&#xE1E;&#xE37;&#xE48;&#xE2D;&#xE15;&#xE34;&#xE14;&#xE15;&#xE31;&#xE49;&#xE07; wordpress</p><p>http://ply01-unddev.net/wp-admin</p><p><a href="http://ply01-unddev.net/?ref=blog.unixdev.co.th">http://ply02-unddev.net</a>/wp-admin</p><figure class="kg-card kg-image-card"><img src="https://blog.unixdev.co.th/content/images/2022/06/Screenshot-2022-06-28-140804.png" class="kg-image" alt loading="lazy" width="1882" height="955" srcset="https://blog.unixdev.co.th/content/images/size/w600/2022/06/Screenshot-2022-06-28-140804.png 600w, https://blog.unixdev.co.th/content/images/size/w1000/2022/06/Screenshot-2022-06-28-140804.png 1000w, https://blog.unixdev.co.th/content/images/size/w1600/2022/06/Screenshot-2022-06-28-140804.png 1600w, https://blog.unixdev.co.th/content/images/2022/06/Screenshot-2022-06-28-140804.png 1882w" sizes="(min-width: 720px) 720px"></figure>]]></content:encoded></item><item><title><![CDATA[Config Mullti Host Wordpress]]></title><description><![CDATA[<p>&#xE15;&#xE31;&#xE49;&#xE07;&#xE04;&#xE48;&#xE32;&#xE43;&#xE2B;&#xE49;&#xE40;&#xE27;&#xE47;&#xE1A; wordpress &#xE2A;&#xE32;&#xE21;&#xE32;&#xE23;&#xE16;&#xE21;&#xE35;&#xE2B;&#xE25;&#xE32;&#xE22; domain name &#xE44;&#xE14;&#xE49;&#xE41;&#xE15;&#xE48;&#xE22;&#xE31;&#xE07;&#xE2D;&#xE22;&#xE39;&#xE48;&#xE43;&#xE19; server &#xE40;&#xE14;&#xE35;&#xE22;&#xE27;</p>]]></description><link>https://blog.unixdev.co.th/config-mullti-host-wordpress/</link><guid isPermaLink="false">62b97167dfbce457fddefcf5</guid><dc:creator><![CDATA[Nawabhorn Charattrakool]]></dc:creator><pubDate>Mon, 27 Jun 2022 09:39:58 GMT</pubDate><content:encoded><![CDATA[<p>&#xE15;&#xE31;&#xE49;&#xE07;&#xE04;&#xE48;&#xE32;&#xE43;&#xE2B;&#xE49;&#xE40;&#xE27;&#xE47;&#xE1A; wordpress &#xE2A;&#xE32;&#xE21;&#xE32;&#xE23;&#xE16;&#xE21;&#xE35;&#xE2B;&#xE25;&#xE32;&#xE22; domain name &#xE44;&#xE14;&#xE49;&#xE41;&#xE15;&#xE48;&#xE22;&#xE31;&#xE07;&#xE2D;&#xE22;&#xE39;&#xE48;&#xE43;&#xE19; server &#xE40;&#xE14;&#xE35;&#xE22;&#xE27;&#xE01;&#xE31;&#xE19; &#xE41;&#xE25;&#xE30;&#xE40;&#xE1B;&#xE47;&#xE19;&#xE40;&#xE27;&#xE47;&#xE1A;&#xE40;&#xE14;&#xE35;&#xE22;&#xE27;&#xE01;&#xE31;&#xE19;</p><figure class="kg-card kg-image-card"><img src="https://blog.unixdev.co.th/content/images/2022/06/image-1.png" class="kg-image" alt loading="lazy" width="1041" height="573" srcset="https://blog.unixdev.co.th/content/images/size/w600/2022/06/image-1.png 600w, https://blog.unixdev.co.th/content/images/size/w1000/2022/06/image-1.png 1000w, https://blog.unixdev.co.th/content/images/2022/06/image-1.png 1041w" sizes="(min-width: 720px) 720px"></figure><p>&#xE40;&#xE23;&#xE34;&#xE48;&#xE21;&#xE08;&#xE32;&#xE01;&#xE40;&#xE02;&#xE49;&#xE32;&#xE44;&#xE1B;&#xE2A;&#xE23;&#xE49;&#xE32;&#xE07;&#xE44;&#xE1F;&#xE25;&#xE4C; config nginx &#xE02;&#xE2D;&#xE07;&#xE15;&#xE31;&#xE27;&#xE40;&#xE27;&#xE47;&#xE1A;&#xE42;&#xE14;&#xE40;&#xE21;&#xE19;&#xE40;&#xE19;&#xE21;&#xE19;&#xE31;&#xE49;&#xE19;</p><p>nano /etc/nginx/sites-available/ply01.unddev.net</p><p>&#xE04;&#xE31;&#xE14;&#xE25;&#xE2D;&#xE01; file config &#xE43;&#xE2A;&#xE48;&#xE25;&#xE07;&#xE44;&#xE1B;&#xE43;&#xE19;&#xE44;&#xE1F;&#xE25;&#xE4C; &#xE41;&#xE25;&#xE30;&#xE40;&#xE1B;&#xE25;&#xE35;&#xE48;&#xE22;&#xE19; server name &#xE40;&#xE1B;&#xE47;&#xE19; domain name &#xE17;&#xE35;&#xE48;&#xE15;&#xE49;&#xE2D;&#xE07;&#xE01;&#xE32;&#xE23;</p><p>server {<br>listen 80;<br>root /var/www/html/wordpress;<br>index index.php index.html index.htm;<br>server_name ply-01.unddev.net;</p><p>access_log /var/log/nginx/wordpress_access.log;<br>error_log /var/log/nginx/wordpress_error.log;</p><p>client_max_body_size 64M;</p><p>location / {<br>try_files $uri $uri/ /index.php?$args;<br>}</p><p>location ~ .php$ {<br>try_files $uri =404;<br>include /etc/nginx/fastcgi_params;<br>fastcgi_read_timeout 3600s;<br>fastcgi_buffer_size 128k;<br>fastcgi_buffers 4 128k;<br>fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;<br>fastcgi_pass unix:/run/php/php7.4-fpm.sock;<br>fastcgi_index index.php;<br>}</p><p>}</p><p>&#xE2B;&#xE25;&#xE31;&#xE07;&#xE08;&#xE32;&#xE01;&#xE19;&#xE31;&#xE49;&#xE19;&#xE08;&#xE30;&#xE43;&#xE0A;&#xE49;&#xE04;&#xE33;&#xE2A;&#xE31;&#xE48;&#xE07; ln &#xE40;&#xE1E;&#xE37;&#xE48;&#xE2D;&#xE2A;&#xE23;&#xE49;&#xE32;&#xE07; soft link &#xE44;&#xE1F;&#xE25;&#xE4C;&#xE08;&#xE32;&#xE01;&#xE42;&#xE1F;&#xE25;&#xE40;&#xE14;&#xE2D;&#xE23;&#xE4C; site-available &#xE44;&#xE1B;&#xE22;&#xE31;&#xE07; site-enable &#xE40;&#xE1E;&#xE37;&#xE48;&#xE2D;&#xE17;&#xE35;&#xE48;&#xE08;&#xE30;&#xE43;&#xE0A;&#xE49;&#xE07;&#xE32;&#xE19;&#xE2B;&#xE19;&#xE49;&#xE32;&#xE40;&#xE27;&#xE47;&#xE1A;&#xE44;&#xE14;&#xE49;</p><p>ln -s /etc/nginx/site-available/ply01.unddev.net /etc/nginx/site-enabled/</p><p>&#xE2B;&#xE25;&#xE31;&#xE07;&#xE08;&#xE32;&#xE01;&#xE19;&#xE31;&#xE49;&#xE19; restart nginx</p><p>systemctl restart nginx.service</p><p>&#xE15;&#xE23;&#xE27;&#xE08;&#xE2A;&#xE2D;&#xE1A;&#xE01;&#xE32;&#xE23;&#xE17;&#xE33;&#xE07;&#xE32;&#xE19;&#xE02;&#xE2D;&#xE07; nginx &#xE27;&#xE48;&#xE32;&#xE23;&#xE30;&#xE1A;&#xE1A;&#xE21;&#xE35;&#xE2D;&#xE30;&#xE44;&#xE23; error &#xE2B;&#xE23;&#xE37;&#xE2D;&#xE44;&#xE21;&#xE48;</p><p>systemctl status nginx.service</p><figure class="kg-card kg-image-card"><img src="https://lh3.googleusercontent.com/uj0P_krsA5mxNQC8XrFDPYkiDrlB-ocLw1raqOZGVxxnMzOfLLYvOz4_urXGm77Pwe8VcbXq4rQHx3UtBJbrvI2rCiXoQAnuAAz8Piy1s1aNyJQWTTziMSnYDGI9t_wjX2prlIH5rSVx4lfWbQ" class="kg-image" alt loading="lazy"></figure><p>domain name &#xE17;&#xE35;&#xE48;2 &#xE01;&#xE47;&#xE17;&#xE33;&#xE40;&#xE2B;&#xE21;&#xE37;&#xE2D;&#xE19;&#xE27;&#xE34;&#xE18;&#xE35;&#xE41;&#xE23;&#xE01;&#xE41;&#xE04;&#xE48;&#xE40;&#xE1B;&#xE25;&#xE35;&#xE48;&#xE22;&#xE19;&#xE0A;&#xE37;&#xE48;&#xE2D;&#xE44;&#xE1F;&#xE25;&#xE4C; &#xE41;&#xE25;&#xE30; server name</p><p></p><p>&#xE15;&#xE31;&#xE49;&#xE07;&#xE04;&#xE48;&#xE32; &#xA0;url &#xE43;&#xE2B;&#xE49;&#xE01;&#xE31;&#xE1A;&#xE40;&#xE27;&#xE47;&#xE1A; wordpress</p><p>&#xE44;&#xE1B;&#xE17;&#xE35;&#xE48;&#xE15;&#xE31;&#xE49;&#xE07;&#xE04;&#xE48;&#xE32; &#xE41;&#xE25;&#xE30; &#xE17;&#xE31;&#xE48;&#xE27;&#xE44;&#xE1B; &#xE2B;&#xE25;&#xE31;&#xE07;&#xE08;&#xE32;&#xE01;&#xE19;&#xE31;&#xE49;&#xE19;&#xE43;&#xE2A;&#xE48; url &#xE25;&#xE07;&#xE44;&#xE1B;&#xE43;&#xE19;&#xE17;&#xE35;&#xE48;&#xE2D;&#xE22;&#xE39;&#xE48;</p><figure class="kg-card kg-image-card"><img src="https://blog.unixdev.co.th/content/images/2022/06/image.png" class="kg-image" alt loading="lazy" width="1842" height="909" srcset="https://blog.unixdev.co.th/content/images/size/w600/2022/06/image.png 600w, https://blog.unixdev.co.th/content/images/size/w1000/2022/06/image.png 1000w, https://blog.unixdev.co.th/content/images/size/w1600/2022/06/image.png 1600w, https://blog.unixdev.co.th/content/images/2022/06/image.png 1842w" sizes="(min-width: 720px) 720px"></figure><p>&#xE40;&#xE2A;&#xE23;&#xE47;&#xE08;&#xE41;&#xE25;&#xE49;&#xE27;&#xE21;&#xE31;&#xE19;&#xE01;&#xE47;&#xE08;&#xE30;&#xE43;&#xE2B;&#xE49; login &#xE43;&#xE2B;&#xE21;&#xE48; &#xE0B;&#xE36;&#xE48;&#xE07;&#xE15;&#xE23;&#xE07;&#xE19;&#xE35;&#xE49;&#xE08;&#xE30;&#xE21;&#xE35;&#xE1B;&#xE31;&#xE0D;&#xE2B;&#xE32;&#xE04;&#xE37;&#xE2D; &#xE25;&#xE47;&#xE2D;&#xE01;&#xE2D;&#xE34;&#xE19;&#xE40;&#xE02;&#xE49;&#xE32;&#xE44;&#xE1B;&#xE44;&#xE21;&#xE48;&#xE44;&#xE14;&#xE49; &#xE1E;&#xE32;&#xE2A;&#xE40;&#xE27;&#xE34;&#xE23;&#xE4C;&#xE14;&#xE44;&#xE21;&#xE48;&#xE16;&#xE39;&#xE01;&#xE15;&#xE49;&#xE2D;&#xE07; &#xE08;&#xE30;&#xE41;&#xE01;&#xE49;&#xE1B;&#xE31;&#xE0D;&#xE2B;&#xE32;&#xE42;&#xE14;&#xE22;&#xE40;&#xE02;&#xE49;&#xE32;&#xE25;&#xE34;&#xE07;&#xE04;&#xE4C;</p><p>http://ply-01.unddev.net/login</p><p>&#xE41;&#xE25;&#xE49;&#xE27; login &#xE40;&#xE02;&#xE49;&#xE32;&#xE44;&#xE1B;&#xE43;&#xE2B;&#xE21;&#xE48;&#xE01;&#xE47;&#xE08;&#xE30;&#xE40;&#xE02;&#xE49;&#xE32;&#xE44;&#xE14;&#xE49;&#xE41;&#xE25;&#xE49;&#xE27;</p><p></p><p>&#xE41;&#xE25;&#xE30;&#xE16;&#xE49;&#xE32;&#xE2B;&#xE32;&#xE01;&#xE27;&#xE48;&#xE32;&#xE40;&#xE02;&#xE49;&#xE32;&#xE1C;&#xE48;&#xE32;&#xE19; domain name &#xE41;&#xE25;&#xE49;&#xE27;&#xE2B;&#xE19;&#xE49;&#xE32;&#xE40;&#xE27;&#xE47;&#xE1A;&#xE44;&#xE21;&#xE48;&#xE02;&#xE36;&#xE49;&#xE19;&#xE41;&#xE25;&#xE30;&#xE14;&#xE39;&#xE43;&#xE19; error log &#xE02;&#xE36;&#xE49;&#xE19; http status code &#xE40;&#xE1B;&#xE47;&#xE19; 302 (Redirect) &#xE01;&#xE47;&#xE08;&#xE30;&#xE15;&#xE49;&#xE2D;&#xE07;&#xE41;&#xE01;&#xE49;&#xE44;&#xE02; host file &#xE43;&#xE19;&#xE40;&#xE04;&#xE23;&#xE37;&#xE48;&#xE2D;&#xE07;&#xE02;&#xE2D;&#xE07;&#xE15;&#xE19;&#xE40;&#xE2D;&#xE07;</p><p>C:\Windows\System32\drivers\etc\hosts</p><figure class="kg-card kg-image-card"><img src="https://blog.unixdev.co.th/content/images/2022/08/Screenshot-2022-08-04-143508.png" class="kg-image" alt loading="lazy" width="790" height="741" srcset="https://blog.unixdev.co.th/content/images/size/w600/2022/08/Screenshot-2022-08-04-143508.png 600w, https://blog.unixdev.co.th/content/images/2022/08/Screenshot-2022-08-04-143508.png 790w" sizes="(min-width: 720px) 720px"></figure>]]></content:encoded></item><item><title><![CDATA[Install php5.6 on debian 10]]></title><description><![CDATA[<p></p><p>1) update and install package<br></p><!--kg-card-begin: markdown--><p>$ sudo apt update<br>
$ sudo apt upgrade<br>
$ sudo apt install ca-certificates apt-transport-https lsb-release<br>
$ sudo apt install gnupg gnupg2 gnupg1<br>
$ wget -q <a href="https://packages.sury.org/php/apt.gpg?ref=blog.unixdev.co.th">https://packages.sury.org/php/apt.gpg</a> -O- | sudo apt-key add -<br>
$ echo &quot;deb <a href="https://packages.sury.org/php/?ref=blog.unixdev.co.th">https://packages.sury.org/php/</a> $(lsb_release -sc) main&quot;</p>]]></description><link>https://blog.unixdev.co.th/install-php5-6-on-debian-10/</link><guid isPermaLink="false">625e384d418e7105fcce4503</guid><dc:creator><![CDATA[Chanitapon]]></dc:creator><pubDate>Tue, 19 Apr 2022 08:41:08 GMT</pubDate><content:encoded><![CDATA[<p></p><p>1) update and install package<br></p><!--kg-card-begin: markdown--><p>$ sudo apt update<br>
$ sudo apt upgrade<br>
$ sudo apt install ca-certificates apt-transport-https lsb-release<br>
$ sudo apt install gnupg gnupg2 gnupg1<br>
$ wget -q <a href="https://packages.sury.org/php/apt.gpg?ref=blog.unixdev.co.th">https://packages.sury.org/php/apt.gpg</a> -O- | sudo apt-key add -<br>
$ echo &quot;deb <a href="https://packages.sury.org/php/?ref=blog.unixdev.co.th">https://packages.sury.org/php/</a> $(lsb_release -sc) main&quot; | sudo tee /etc/apt/sources.list.d/php.list</p>
<!--kg-card-end: markdown--><figure class="kg-card kg-image-card"><img src="https://blog.unixdev.co.th/content/images/2022/04/image-37.png" class="kg-image" alt loading="lazy" width="1466" height="510" srcset="https://blog.unixdev.co.th/content/images/size/w600/2022/04/image-37.png 600w, https://blog.unixdev.co.th/content/images/size/w1000/2022/04/image-37.png 1000w, https://blog.unixdev.co.th/content/images/2022/04/image-37.png 1466w" sizes="(min-width: 720px) 720px"></figure><figure class="kg-card kg-image-card"><img src="https://blog.unixdev.co.th/content/images/2022/04/image-38.png" class="kg-image" alt loading="lazy" width="2000" height="538" srcset="https://blog.unixdev.co.th/content/images/size/w600/2022/04/image-38.png 600w, https://blog.unixdev.co.th/content/images/size/w1000/2022/04/image-38.png 1000w, https://blog.unixdev.co.th/content/images/size/w1600/2022/04/image-38.png 1600w, https://blog.unixdev.co.th/content/images/2022/04/image-38.png 2021w" sizes="(min-width: 720px) 720px"></figure><figure class="kg-card kg-image-card"><img src="https://blog.unixdev.co.th/content/images/2022/04/image-39.png" class="kg-image" alt loading="lazy" width="1530" height="128" srcset="https://blog.unixdev.co.th/content/images/size/w600/2022/04/image-39.png 600w, https://blog.unixdev.co.th/content/images/size/w1000/2022/04/image-39.png 1000w, https://blog.unixdev.co.th/content/images/2022/04/image-39.png 1530w" sizes="(min-width: 720px) 720px"></figure><figure class="kg-card kg-image-card"><img src="https://blog.unixdev.co.th/content/images/2022/04/image-40.png" class="kg-image" alt loading="lazy" width="2000" height="102" srcset="https://blog.unixdev.co.th/content/images/size/w600/2022/04/image-40.png 600w, https://blog.unixdev.co.th/content/images/size/w1000/2022/04/image-40.png 1000w, https://blog.unixdev.co.th/content/images/size/w1600/2022/04/image-40.png 1600w, https://blog.unixdev.co.th/content/images/2022/04/image-40.png 2117w" sizes="(min-width: 720px) 720px"></figure><p></p><p>2) Installation PHP5.6 </p><!--kg-card-begin: markdown--><p>$ sudo apt update<br>
$ sudo apt install php5.6</p>
<!--kg-card-end: markdown--><figure class="kg-card kg-image-card"><img src="https://blog.unixdev.co.th/content/images/2022/04/image-41.png" class="kg-image" alt loading="lazy" width="2000" height="615" srcset="https://blog.unixdev.co.th/content/images/size/w600/2022/04/image-41.png 600w, https://blog.unixdev.co.th/content/images/size/w1000/2022/04/image-41.png 1000w, https://blog.unixdev.co.th/content/images/size/w1600/2022/04/image-41.png 1600w, https://blog.unixdev.co.th/content/images/2022/04/image-41.png 2085w" sizes="(min-width: 720px) 720px"></figure><p></p><p>Check install php5.6 completed</p><!--kg-card-begin: markdown--><p>$ php -v</p>
<!--kg-card-end: markdown--><figure class="kg-card kg-image-card"><img src="https://blog.unixdev.co.th/content/images/2022/04/image-42.png" class="kg-image" alt loading="lazy" width="1208" height="197" srcset="https://blog.unixdev.co.th/content/images/size/w600/2022/04/image-42.png 600w, https://blog.unixdev.co.th/content/images/size/w1000/2022/04/image-42.png 1000w, https://blog.unixdev.co.th/content/images/2022/04/image-42.png 1208w" sizes="(min-width: 720px) 720px"></figure>]]></content:encoded></item><item><title><![CDATA[PowerDNS + PowerDNS-Admin + Recursor On Debian10/11]]></title><description><![CDATA[<p></p><ol><li>Install the required tools</li></ol><!--kg-card-begin: markdown--><p>sudo apt update &amp;&amp; sudo apt upgrade<br>
sudo apt install curl vim git -y</p>
<!--kg-card-end: markdown--><p>2. Install PowerDNS Databases</p><!--kg-card-begin: markdown--><p>sudo apt install software-properties-common gnupg2 -y<br>
curl -LsS -O <a href="https://downloads.mariadb.com/MariaDB/mariadb_repo_setup?ref=blog.unixdev.co.th">https://downloads.mariadb.com/MariaDB/mariadb_repo_setup</a><br>
sudo bash mariadb_repo_setup<br>
sudo apt update<br>
sudo apt</p>]]></description><link>https://blog.unixdev.co.th/powerdns-debian/</link><guid isPermaLink="false">6254f606418e7105fcce42e4</guid><dc:creator><![CDATA[Chanitapon]]></dc:creator><pubDate>Tue, 19 Apr 2022 08:39:22 GMT</pubDate><content:encoded><![CDATA[<p></p><ol><li>Install the required tools</li></ol><!--kg-card-begin: markdown--><p>sudo apt update &amp;&amp; sudo apt upgrade<br>
sudo apt install curl vim git -y</p>
<!--kg-card-end: markdown--><p>2. Install PowerDNS Databases</p><!--kg-card-begin: markdown--><p>sudo apt install software-properties-common gnupg2 -y<br>
curl -LsS -O <a href="https://downloads.mariadb.com/MariaDB/mariadb_repo_setup?ref=blog.unixdev.co.th">https://downloads.mariadb.com/MariaDB/mariadb_repo_setup</a><br>
sudo bash mariadb_repo_setup<br>
sudo apt update<br>
sudo apt install mariadb-server mariadb-client<br>
sudo systemctl start mariadb<br>
sudo systemctl enable mariadb</p>
<!--kg-card-end: markdown--><p>Create a PowerDNS database</p><p><em>*Remember the password set for the user should not contain special characters*</em></p><!--kg-card-begin: markdown--><p>mysql -u root<br>
CREATE DATABASE powerdns;<br>
GRANT ALL ON powerdns.* TO &apos;powerdns_user&apos;@&apos;%&apos; IDENTIFIED BY &apos;Strongpassword&apos;;<br>
FLUSH PRIVILEGES;<br>
EXIT</p>
<!--kg-card-end: markdown--><figure class="kg-card kg-image-card"><img src="https://blog.unixdev.co.th/content/images/2022/04/image.png" class="kg-image" alt loading="lazy" width="1472" height="620" srcset="https://blog.unixdev.co.th/content/images/size/w600/2022/04/image.png 600w, https://blog.unixdev.co.th/content/images/size/w1000/2022/04/image.png 1000w, https://blog.unixdev.co.th/content/images/2022/04/image.png 1472w" sizes="(min-width: 720px) 720px"></figure><p>3. Install PowerDNS on Debian 11 / Debian 10</p><!--kg-card-begin: markdown--><p>sudo systemctl stop systemd-resolved<br>
sudo systemctl disable systemd-resolved<br>
unlink /etc/resolv.conf</p>
<!--kg-card-end: markdown--><p>Update the<strong><strong><em> resolv.conf</em></strong></strong> file.</p><!--kg-card-begin: markdown--><p>echo &quot;nameserver 8.8.8.8&quot; | sudo tee /etc/resolv.conf</p>
<!--kg-card-end: markdown--><figure class="kg-card kg-image-card"><img src="https://blog.unixdev.co.th/content/images/2022/04/image-1.png" class="kg-image" alt loading="lazy" width="1028" height="190" srcset="https://blog.unixdev.co.th/content/images/size/w600/2022/04/image-1.png 600w, https://blog.unixdev.co.th/content/images/size/w1000/2022/04/image-1.png 1000w, https://blog.unixdev.co.th/content/images/2022/04/image-1.png 1028w" sizes="(min-width: 720px) 720px"></figure><p></p><p>Install the latest release of PowerDNS</p><!--kg-card-begin: markdown--><p>sudo vim /etc/apt/sources.list.d/pdns.list</p>
<!--kg-card-end: markdown--><p>For Debian 11</p><!--kg-card-begin: markdown--><p>deb [arch=amd64] <a href="http://repo.powerdns.com/debian?ref=blog.unixdev.co.th">http://repo.powerdns.com/debian</a> bullseye-auth-46 main</p>
<!--kg-card-end: markdown--><p>For Debian 10</p><!--kg-card-begin: markdown--><p>deb [arch=amd64] <a href="http://repo.powerdns.com/debian?ref=blog.unixdev.co.th">http://repo.powerdns.com/debian</a> buster-auth-46 main</p>
<!--kg-card-end: markdown--><p>Import the GPG key signing for the repository.</p><!--kg-card-begin: markdown--><p>curl -fsSL <a href="https://repo.powerdns.com/FD380FBB-pub.asc?ref=blog.unixdev.co.th">https://repo.powerdns.com/FD380FBB-pub.asc</a> | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/pdns.gpg</p>
<!--kg-card-end: markdown--><p>Set the APT preferences.</p><!--kg-card-begin: markdown--><p>$ sudo vim /etc/apt/preferences.d/pdns<br>
Package: pdns-*<br>
Pin: origin repo.powerdns.com<br>
Pin-Priority: 600</p>
<!--kg-card-end: markdown--><figure class="kg-card kg-image-card"><img src="https://blog.unixdev.co.th/content/images/2022/04/image-3.png" class="kg-image" alt loading="lazy" width="515" height="170"></figure><p>Update your APT package index.</p><!--kg-card-begin: markdown--><p>sudo apt update<br>
sudo apt install pdns-server pdns-backend-mysql</p>
<!--kg-card-end: markdown--><figure class="kg-card kg-image-card"><img src="https://blog.unixdev.co.th/content/images/2022/04/image-4.png" class="kg-image" alt loading="lazy" width="1412" height="837" srcset="https://blog.unixdev.co.th/content/images/size/w600/2022/04/image-4.png 600w, https://blog.unixdev.co.th/content/images/size/w1000/2022/04/image-4.png 1000w, https://blog.unixdev.co.th/content/images/2022/04/image-4.png 1412w" sizes="(min-width: 720px) 720px"></figure><p></p><p>4. Configure the PowerDNS Database</p><!--kg-card-begin: markdown--><p>$ mysql -u powerdns_user -p powerdns &lt; /usr/share/pdns-backend-mysql/schema/schema.mysql.sql</p>
<!--kg-card-end: markdown--><figure class="kg-card kg-image-card"><img src="https://blog.unixdev.co.th/content/images/2022/04/image-5.png" class="kg-image" alt loading="lazy" width="1560" height="197" srcset="https://blog.unixdev.co.th/content/images/size/w600/2022/04/image-5.png 600w, https://blog.unixdev.co.th/content/images/size/w1000/2022/04/image-5.png 1000w, https://blog.unixdev.co.th/content/images/2022/04/image-5.png 1560w" sizes="(min-width: 720px) 720px"></figure><p></p><p>You can then verify import as below.</p><!--kg-card-begin: markdown--><p>sudo mysql -u root<br>
use powerdns;<br>
show tables;</p>
<!--kg-card-end: markdown--><figure class="kg-card kg-image-card"><img src="https://blog.unixdev.co.th/content/images/2022/04/image-6.png" class="kg-image" alt loading="lazy" width="1420" height="807" srcset="https://blog.unixdev.co.th/content/images/size/w600/2022/04/image-6.png 600w, https://blog.unixdev.co.th/content/images/size/w1000/2022/04/image-6.png 1000w, https://blog.unixdev.co.th/content/images/2022/04/image-6.png 1420w" sizes="(min-width: 720px) 720px"></figure><p></p><p>5. Configure the PowerDNS connection details to the database</p><!--kg-card-begin: markdown--><p>vim /etc/powerdns/pdns.d/pdns.local.gmysql.conf</p>
<!--kg-card-end: markdown--><!--kg-card-begin: markdown--><p>launch+=gmysql<br>
gmysql-host=127.0.0.1<br>
gmysql-port=3306<br>
gmysql-dbname=powerdns<br>
gmysql-user=powerdns_user<br>
gmysql-password=Strongpassword<br>
gmysql-dnssec=yes</p>
<!--kg-card-end: markdown--><figure class="kg-card kg-image-card"><img src="https://blog.unixdev.co.th/content/images/2022/04/image-7.png" class="kg-image" alt loading="lazy" width="788" height="277" srcset="https://blog.unixdev.co.th/content/images/size/w600/2022/04/image-7.png 600w, https://blog.unixdev.co.th/content/images/2022/04/image-7.png 788w" sizes="(min-width: 720px) 720px"></figure><p></p><p>Set the appropriate permissions for the file.</p><!--kg-card-begin: markdown--><p>sudo chown pdns: /etc/powerdns/pdns.d/pdns.local.gmysql.conf<br>
sudo chmod 640 /etc/powerdns/pdns.d/pdns.local.gmysql.conf</p>
<!--kg-card-end: markdown--><figure class="kg-card kg-image-card"><img src="https://blog.unixdev.co.th/content/images/2022/04/image-8.png" class="kg-image" alt loading="lazy" width="1149" height="207" srcset="https://blog.unixdev.co.th/content/images/size/w600/2022/04/image-8.png 600w, https://blog.unixdev.co.th/content/images/size/w1000/2022/04/image-8.png 1000w, https://blog.unixdev.co.th/content/images/2022/04/image-8.png 1149w" sizes="(min-width: 720px) 720px"></figure><p>verify the database connection.</p><!--kg-card-begin: markdown--><p>sudo systemctl stop pdns.service<br>
sudo pdns_server --daemon=no --guardian=no --loglevel=9</p>
<!--kg-card-end: markdown--><p>output:</p><figure class="kg-card kg-image-card"><img src="https://blog.unixdev.co.th/content/images/2022/04/image-9.png" class="kg-image" alt loading="lazy" width="2000" height="801" srcset="https://blog.unixdev.co.th/content/images/size/w600/2022/04/image-9.png 600w, https://blog.unixdev.co.th/content/images/size/w1000/2022/04/image-9.png 1000w, https://blog.unixdev.co.th/content/images/size/w1600/2022/04/image-9.png 1600w, https://blog.unixdev.co.th/content/images/2022/04/image-9.png 2085w" sizes="(min-width: 720px) 720px"></figure><p>ctrl+c for exit</p><!--kg-card-begin: markdown--><p>sudo systemctl restart pdns<br>
sudo systemctl enable pdns</p>
<!--kg-card-end: markdown--><p>Verify the port 53 is open for DNS.</p><!--kg-card-begin: markdown--><p>sudo ss -alnp4 | grep pdns</p>
<!--kg-card-end: markdown--><figure class="kg-card kg-image-card"><img src="https://blog.unixdev.co.th/content/images/2022/04/image-10.png" class="kg-image" alt loading="lazy" width="1812" height="272" srcset="https://blog.unixdev.co.th/content/images/size/w600/2022/04/image-10.png 600w, https://blog.unixdev.co.th/content/images/size/w1000/2022/04/image-10.png 1000w, https://blog.unixdev.co.th/content/images/size/w1600/2022/04/image-10.png 1600w, https://blog.unixdev.co.th/content/images/2022/04/image-10.png 1812w" sizes="(min-width: 720px) 720px"></figure><p></p><p>6. Install PowerDNS Admin on Debian 11 / Debian 10</p><p>Install the required build tools.</p><!--kg-card-begin: markdown--><p>$ sudo apt install python3-dev -y</p>
<p>$ sudo apt install libsasl2-dev libldap2-dev libssl-dev libxml2-dev libxslt1-dev libxmlsec1-dev libffi-dev pkg-config apt-transport-https virtualenv python3-venv build-essential libmariadb-dev git python3-flask -y</p>
<p>$ curl -sL <a href="https://deb.nodesource.com/setup_16.x?ref=blog.unixdev.co.th">https://deb.nodesource.com/setup_16.x</a> | sudo -E bash -<br>
$ sudo apt install -y nodejs</p>
<p>$ curl -sL <a href="https://dl.yarnpkg.com/debian/pubkey.gpg?ref=blog.unixdev.co.th">https://dl.yarnpkg.com/debian/pubkey.gpg</a> | gpg --dearmor | sudo tee /usr/share/keyrings/yarnkey.gpg &gt;/dev/null</p>
<p>$ echo &quot;deb [signed-by=/usr/share/keyrings/yarnkey.gpg] <a href="https://dl.yarnpkg.com/debian?ref=blog.unixdev.co.th">https://dl.yarnpkg.com/debian</a> stable main&quot; | sudo tee /etc/apt/sources.list.d/yarn.list</p>
<p>$ sudo apt update<br>
$ sudo apt install yarn -y</p>
<!--kg-card-end: markdown--><figure class="kg-card kg-image-card"><img src="https://blog.unixdev.co.th/content/images/2022/04/image-11.png" class="kg-image" alt loading="lazy" width="1262" height="546" srcset="https://blog.unixdev.co.th/content/images/size/w600/2022/04/image-11.png 600w, https://blog.unixdev.co.th/content/images/size/w1000/2022/04/image-11.png 1000w, https://blog.unixdev.co.th/content/images/2022/04/image-11.png 1262w" sizes="(min-width: 720px) 720px"></figure><p></p><p>7. clone the PowerDNS admin</p><!--kg-card-begin: markdown--><p>$ sudo su -<br>
$ git clone <a href="https://github.com/ngoduykhanh/PowerDNS-Admin.git?ref=blog.unixdev.co.th">https://github.com/ngoduykhanh/PowerDNS-Admin.git</a> /var/www/html/pdns</p>
<!--kg-card-end: markdown--><figure class="kg-card kg-image-card"><img src="https://blog.unixdev.co.th/content/images/2022/04/image-12.png" class="kg-image" alt loading="lazy" width="1531" height="210" srcset="https://blog.unixdev.co.th/content/images/size/w600/2022/04/image-12.png 600w, https://blog.unixdev.co.th/content/images/size/w1000/2022/04/image-12.png 1000w, https://blog.unixdev.co.th/content/images/2022/04/image-12.png 1531w" sizes="(min-width: 720px) 720px"></figure><p></p><p>8. Create a virtual environment</p><!--kg-card-begin: markdown--><p>$ cd /var/www/html/pdns/<br>
$ virtualenv -p python3 flask<br>
$ source ./flask/bin/activate<br>
$ pip install --upgrade pip<br>
$ pip install -r requirements.txt<br>
$ deactivate</p>
<!--kg-card-end: markdown--><figure class="kg-card kg-image-card"><img src="https://blog.unixdev.co.th/content/images/2022/04/image-14.png" class="kg-image" alt loading="lazy" width="1310" height="344" srcset="https://blog.unixdev.co.th/content/images/size/w600/2022/04/image-14.png 600w, https://blog.unixdev.co.th/content/images/size/w1000/2022/04/image-14.png 1000w, https://blog.unixdev.co.th/content/images/2022/04/image-14.png 1310w" sizes="(min-width: 720px) 720px"></figure><figure class="kg-card kg-image-card"><img src="https://blog.unixdev.co.th/content/images/2022/04/image-15.png" class="kg-image" alt loading="lazy" width="1433" height="575" srcset="https://blog.unixdev.co.th/content/images/size/w600/2022/04/image-15.png 600w, https://blog.unixdev.co.th/content/images/size/w1000/2022/04/image-15.png 1000w, https://blog.unixdev.co.th/content/images/2022/04/image-15.png 1433w" sizes="(min-width: 720px) 720px"></figure><figure class="kg-card kg-image-card"><img src="https://blog.unixdev.co.th/content/images/2022/04/image-16.png" class="kg-image" alt loading="lazy" width="2000" height="572" srcset="https://blog.unixdev.co.th/content/images/size/w600/2022/04/image-16.png 600w, https://blog.unixdev.co.th/content/images/size/w1000/2022/04/image-16.png 1000w, https://blog.unixdev.co.th/content/images/size/w1600/2022/04/image-16.png 1600w, https://blog.unixdev.co.th/content/images/2022/04/image-16.png 2080w" sizes="(min-width: 720px) 720px"></figure><p></p><p>9. configure the PowerDNS admin database</p><!--kg-card-begin: markdown--><p>$ vim /var/www/html/pdns/powerdnsadmin/default_config.py</p>
<p>SQLA_DB_USER = &apos;powerdns_user&apos;<br>
SQLA_DB_PASSWORD = &apos;Strongpassword&apos;<br>
SQLA_DB_HOST = &apos;127.0.0.1&apos;<br>
SQLA_DB_NAME = &apos;powerdns&apos;<br>
SQLALCHEMY_TRACK_MODIFICATIONS = True</p>
<!--kg-card-end: markdown--><figure class="kg-card kg-image-card"><img src="https://blog.unixdev.co.th/content/images/2022/04/image-17.png" class="kg-image" alt loading="lazy" width="766" height="214" srcset="https://blog.unixdev.co.th/content/images/size/w600/2022/04/image-17.png 600w, https://blog.unixdev.co.th/content/images/2022/04/image-17.png 766w" sizes="(min-width: 720px) 720px"></figure><p>create a database schema.</p><!--kg-card-begin: markdown--><p>cd /var/www/html/pdns/<br>
source ./flask/bin/activate<br>
export FLASK_APP=powerdnsadmin/<strong>init</strong>.py<br>
flask db upgrade</p>
<!--kg-card-end: markdown--><p>Sample output:</p><figure class="kg-card kg-image-card"><img src="https://blog.unixdev.co.th/content/images/2022/04/image-18.png" class="kg-image" alt loading="lazy" width="1984" height="552" srcset="https://blog.unixdev.co.th/content/images/size/w600/2022/04/image-18.png 600w, https://blog.unixdev.co.th/content/images/size/w1000/2022/04/image-18.png 1000w, https://blog.unixdev.co.th/content/images/size/w1600/2022/04/image-18.png 1600w, https://blog.unixdev.co.th/content/images/2022/04/image-18.png 1984w" sizes="(min-width: 720px) 720px"></figure><p></p><p>Generate the asset files using Yarn.</p><!--kg-card-begin: markdown--><p>$ yarn install --pure-lockfile<br>
$ flask assets build<br>
$ deactivate</p>
<!--kg-card-end: markdown--><figure class="kg-card kg-image-card"><img src="https://blog.unixdev.co.th/content/images/2022/04/image-20.png" class="kg-image" alt loading="lazy" width="1554" height="354" srcset="https://blog.unixdev.co.th/content/images/size/w600/2022/04/image-20.png 600w, https://blog.unixdev.co.th/content/images/size/w1000/2022/04/image-20.png 1000w, https://blog.unixdev.co.th/content/images/2022/04/image-20.png 1554w" sizes="(min-width: 720px) 720px"></figure><!--kg-card-begin: markdown--><p>Enable PowerDNS API access</p>
<p>$ sudo vim /etc/powerdns/pdns.conf<br>
api=yes<br>
api-key= #You can generate one from <a href="https://codepen.io/corenominal/pen/rxOmMJ?ref=blog.unixdev.co.th">https://codepen.io/corenominal/pen/rxOmMJ</a></p>
<p>$ sudo systemctl restart pdns</p>
<!--kg-card-end: markdown--><figure class="kg-card kg-image-card"><img src="https://blog.unixdev.co.th/content/images/2022/04/image-21.png" class="kg-image" alt loading="lazy" width="1388" height="479" srcset="https://blog.unixdev.co.th/content/images/size/w600/2022/04/image-21.png 600w, https://blog.unixdev.co.th/content/images/size/w1000/2022/04/image-21.png 1000w, https://blog.unixdev.co.th/content/images/2022/04/image-21.png 1388w" sizes="(min-width: 720px) 720px"></figure><p></p><p>10. Create a System service file for PowerDNS Admin</p><!--kg-card-begin: markdown--><p>$ vim /etc/systemd/system/pdnsadmin.service</p>
<p>[Unit]<br>
Description=PowerDNS-Admin<br>
Requires=pdnsadmin.socket<br>
After=network.target</p>
<p>[Service]<br>
PIDFile=/run/pdnsadmin/pid<br>
User=pdns<br>
Group=pdns<br>
WorkingDirectory=/var/www/html/pdns<br>
ExecStart=/var/www/html/pdns/flask/bin/gunicorn --pid /run/pdnsadmin/pid --bind unix:/run/pdnsadmin/socket &apos;powerdnsadmin:create_app()&apos;<br>
ExecReload=/bin/kill -s HUP $MAINPID<br>
ExecStop=/bin/kill -s TERM $MAINPID<br>
PrivateTmp=true</p>
<p>[Install]<br>
WantedBy=multi-user.target</p>
<!--kg-card-end: markdown--><figure class="kg-card kg-image-card"><img src="https://blog.unixdev.co.th/content/images/2022/04/image-22.png" class="kg-image" alt loading="lazy" width="2000" height="498" srcset="https://blog.unixdev.co.th/content/images/size/w600/2022/04/image-22.png 600w, https://blog.unixdev.co.th/content/images/size/w1000/2022/04/image-22.png 1000w, https://blog.unixdev.co.th/content/images/size/w1600/2022/04/image-22.png 1600w, https://blog.unixdev.co.th/content/images/2022/04/image-22.png 2038w" sizes="(min-width: 720px) 720px"></figure><p></p><p></p><!--kg-card-begin: markdown--><p>vim /etc/systemd/system/pdnsadmin.socket</p>
<p>[Unit]<br>
Description=PowerDNS-Admin socket</p>
<p>[Socket]<br>
ListenStream=/run/pdnsadmin/socket</p>
<p>[Install]<br>
WantedBy=sockets.target</p>
<!--kg-card-end: markdown--><figure class="kg-card kg-image-card"><img src="https://blog.unixdev.co.th/content/images/2022/04/image-23.png" class="kg-image" alt loading="lazy" width="719" height="284" srcset="https://blog.unixdev.co.th/content/images/size/w600/2022/04/image-23.png 600w, https://blog.unixdev.co.th/content/images/2022/04/image-23.png 719w"></figure><p></p><!--kg-card-begin: markdown--><p>mkdir /run/pdnsadmin/<br>
echo &quot;d /run/pdnsadmin 0755 pdns pdns -&quot; &gt;&gt; /etc/tmpfiles.d/pdnsadmin.conf<br>
chown -R pdns: /run/pdnsadmin/<br>
chown -R pdns: /var/www/html/pdns/powerdnsadmin/</p>
<!--kg-card-end: markdown--><figure class="kg-card kg-image-card"><img src="https://blog.unixdev.co.th/content/images/2022/04/image-24.png" class="kg-image" alt loading="lazy" width="1706" height="202" srcset="https://blog.unixdev.co.th/content/images/size/w600/2022/04/image-24.png 600w, https://blog.unixdev.co.th/content/images/size/w1000/2022/04/image-24.png 1000w, https://blog.unixdev.co.th/content/images/size/w1600/2022/04/image-24.png 1600w, https://blog.unixdev.co.th/content/images/2022/04/image-24.png 1706w" sizes="(min-width: 720px) 720px"></figure><!--kg-card-begin: markdown--><p>systemctl daemon-reload<br>
systemctl enable --now pdnsadmin.service pdnsadmin.socket<br>
systemctl status pdnsadmin.service pdnsadmin.socket</p>
<!--kg-card-end: markdown--><p>output:</p><figure class="kg-card kg-image-card"><img src="https://blog.unixdev.co.th/content/images/2022/04/image-25.png" class="kg-image" alt loading="lazy" width="2000" height="911" srcset="https://blog.unixdev.co.th/content/images/size/w600/2022/04/image-25.png 600w, https://blog.unixdev.co.th/content/images/size/w1000/2022/04/image-25.png 1000w, https://blog.unixdev.co.th/content/images/size/w1600/2022/04/image-25.png 1600w, https://blog.unixdev.co.th/content/images/2022/04/image-25.png 2081w" sizes="(min-width: 720px) 720px"></figure><p></p><p></p><p>11. Create a PowerDNS Virtual Host file.</p><!--kg-card-begin: markdown--><p>sudo apt install nginx</p>
<p>vim /etc/nginx/conf.d/powerdns-admin.conf</p>
<p>server {<br>
listen	*:80;<br>
server_name               ip-or-domain;</p>
<p>index                     index.html index.htm index.php;<br>
root                      /var/www/html/pdns;<br>
access_log                /var/log/nginx/pdnsadmin_access.log combined;<br>
error_log                 /var/log/nginx/pdnsadmin_error.log;</p>
<p>client_max_body_size              10m;<br>
client_body_buffer_size           128k;<br>
proxy_redirect                    off;<br>
proxy_connect_timeout             90;<br>
proxy_send_timeout                90;<br>
proxy_read_timeout                90;<br>
proxy_buffers                     32 4k;<br>
proxy_buffer_size                 8k;<br>
proxy_set_header                  Host $host;<br>
proxy_set_header                  X-Real-IP $remote_addr;<br>
proxy_set_header                  X-Forwarded-For $proxy_add_x_forwarded_for;<br>
proxy_headers_hash_bucket_size    64;</p>
<p>location ~ ^/static/  {<br>
include  /etc/nginx/mime.types;<br>
root /var/www/html/pdns/powerdnsadmin;</p>
<pre><code>location ~*  \.(jpg|jpeg|png|gif)$ {
  expires 365d;
}

location ~* ^.+.(css|js)$ {
  expires 7d;
}
</code></pre>
<p>}</p>
<p>location / {<br>
proxy_pass            <a href="http://unix/?ref=blog.unixdev.co.th">http://unix</a>:/run/pdnsadmin/socket;<br>
proxy_read_timeout    120;<br>
proxy_connect_timeout 120;<br>
proxy_redirect        off;<br>
}</p>
<p>}</p>
<!--kg-card-end: markdown--><!--kg-card-begin: markdown--><p>$ mv /etc/nginx/sites-enabled/default{,.old}<br>
$ nginx -t<br>
chown -R www-data: /var/www/html/pdns<br>
chown -R pdns:pdns /var/www/html/pdns/powerdnsadmin<br>
systemctl restart nginx</p>
<!--kg-card-end: markdown--><figure class="kg-card kg-image-card"><img src="https://blog.unixdev.co.th/content/images/2022/04/image-26.png" class="kg-image" alt loading="lazy" width="1292" height="225" srcset="https://blog.unixdev.co.th/content/images/size/w600/2022/04/image-26.png 600w, https://blog.unixdev.co.th/content/images/size/w1000/2022/04/image-26.png 1000w, https://blog.unixdev.co.th/content/images/2022/04/image-26.png 1292w" sizes="(min-width: 720px) 720px"></figure><p></p><p>Select <a href="http://172.30.31.105/register?ref=blog.unixdev.co.th">Create an account</a></p><figure class="kg-card kg-image-card"><img src="https://blog.unixdev.co.th/content/images/2022/04/image-27.png" class="kg-image" alt loading="lazy" width="669" height="494" srcset="https://blog.unixdev.co.th/content/images/size/w600/2022/04/image-27.png 600w, https://blog.unixdev.co.th/content/images/2022/04/image-27.png 669w"></figure><figure class="kg-card kg-image-card"><img src="https://blog.unixdev.co.th/content/images/2022/04/image-28.png" class="kg-image" alt loading="lazy" width="621" height="666" srcset="https://blog.unixdev.co.th/content/images/size/w600/2022/04/image-28.png 600w, https://blog.unixdev.co.th/content/images/2022/04/image-28.png 621w"></figure><p></p><p>after create account login to powerdns </p><p>Fill ip-powerdns and apikey</p><p>API URL : http://127.0.0.1:8081</p><figure class="kg-card kg-image-card"><img src="https://blog.unixdev.co.th/content/images/2022/04/image-31.png" class="kg-image" alt loading="lazy" width="1920" height="961" srcset="https://blog.unixdev.co.th/content/images/size/w600/2022/04/image-31.png 600w, https://blog.unixdev.co.th/content/images/size/w1000/2022/04/image-31.png 1000w, https://blog.unixdev.co.th/content/images/size/w1600/2022/04/image-31.png 1600w, https://blog.unixdev.co.th/content/images/2022/04/image-31.png 1920w" sizes="(min-width: 720px) 720px"></figure><p></p><p>Disable create account</p><ol><li>setting &gt; authentication &gt; disable allow user to sign up</li></ol><figure class="kg-card kg-image-card"><img src="https://blog.unixdev.co.th/content/images/2022/04/image-32.png" class="kg-image" alt loading="lazy" width="1026" height="851" srcset="https://blog.unixdev.co.th/content/images/size/w600/2022/04/image-32.png 600w, https://blog.unixdev.co.th/content/images/size/w1000/2022/04/image-32.png 1000w, https://blog.unixdev.co.th/content/images/2022/04/image-32.png 1026w" sizes="(min-width: 720px) 720px"></figure><figure class="kg-card kg-image-card"><img src="https://blog.unixdev.co.th/content/images/2022/04/image-33.png" class="kg-image" alt loading="lazy" width="970" height="811" srcset="https://blog.unixdev.co.th/content/images/size/w600/2022/04/image-33.png 600w, https://blog.unixdev.co.th/content/images/2022/04/image-33.png 970w" sizes="(min-width: 720px) 720px"></figure><p></p><p>PowerDNS Recursor </p><ol><li>apt install pdns-recursor</li></ol><figure class="kg-card kg-image-card"><img src="https://blog.unixdev.co.th/content/images/2022/04/image-34.png" class="kg-image" alt loading="lazy" width="1445" height="454" srcset="https://blog.unixdev.co.th/content/images/size/w600/2022/04/image-34.png 600w, https://blog.unixdev.co.th/content/images/size/w1000/2022/04/image-34.png 1000w, https://blog.unixdev.co.th/content/images/2022/04/image-34.png 1445w" sizes="(min-width: 720px) 720px"></figure><p></p><p>2. Config recursor </p><p>vim /etc/powerdns/recursor.d/public.conf</p><!--kg-card-begin: markdown--><p>config-dir=/etc/powerdns<br>
forward-zones-recurse=myzone.local=127.0.0.1:53<br>
hint-file=/usr/share/dns/root.hints<br>
include-dir=/etc/powerdns/recursor.d<br>
local-address=0.0.0.0<br>
local-port=54<br>
lua-config-file=/etc/powerdns/recursor.lua<br>
quiet=yes<br>
security-poll-suffix=<br>
setgid=pdns<br>
setuid=pdns</p>
<!--kg-card-end: markdown--><p>change myzone.local to your private zone </p><figure class="kg-card kg-image-card"><img src="https://blog.unixdev.co.th/content/images/2022/05/image-1.png" class="kg-image" alt loading="lazy" width="576" height="215"></figure><p>systemctl restart pdns.service</p><p>check port powerdns and powerdns-recursor</p><p>ss -alnp4 | grep pdns</p><figure class="kg-card kg-image-card"><img src="https://blog.unixdev.co.th/content/images/2022/04/image-36.png" class="kg-image" alt loading="lazy" width="1886" height="399" srcset="https://blog.unixdev.co.th/content/images/size/w600/2022/04/image-36.png 600w, https://blog.unixdev.co.th/content/images/size/w1000/2022/04/image-36.png 1000w, https://blog.unixdev.co.th/content/images/size/w1600/2022/04/image-36.png 1600w, https://blog.unixdev.co.th/content/images/2022/04/image-36.png 1886w" sizes="(min-width: 720px) 720px"></figure><hr><p>Ref</p><figure class="kg-card kg-bookmark-card"><a class="kg-bookmark-container" href="https://computingforgeeks.com/install-powerdns-and-powerdns-admin-on-debian/?ref=blog.unixdev.co.th"><div class="kg-bookmark-content"><div class="kg-bookmark-title">Install PowerDNS and PowerDNS Admin on Debian 11/10 | ComputingForGeeks</div><div class="kg-bookmark-description">PowerDNS is a DNS server written in C++ language providing both Authoritative Server and Recursor DNS products. An Authoritative Server answers questions</div><div class="kg-bookmark-metadata"><img class="kg-bookmark-icon" src="https://computingforgeeks.com/wp-content/uploads/2019/05/favicon.ico" alt><span class="kg-bookmark-author">ComputingForGeeks</span><span class="kg-bookmark-publisher">Klinsmann &#xD6;teyo</span></div></div><div class="kg-bookmark-thumbnail"><img src="https://computingforgeeks.com/wp-content/uploads/2022/02/Install-PowerDNS-and-PowerDNS-Admin-on-Debian-7.png" alt></div></a></figure>]]></content:encoded></item><item><title><![CDATA[Mariadb Master-Master Repication]]></title><description><![CDATA[<p></p><p>&#xE15;&#xE34;&#xE14;&#xE15;&#xE31;&#xE49;&#xE07; Mariadb &#xE25;&#xE07; &#xE17;&#xE31;&#xE49;&#xE07; 2 &#xE40;&#xE04;&#xE23;&#xE37;&#xE48;&#xE2D;&#xE07;</p><p>&#xE2A;&#xE32;&#xE21;&#xE32;&#xE23;&#xE16;&#xE15;&#xE34;&#xE14;&#xE15;&#xE31;&#xE49;&#xE07;&#xE44;&#xE14;&#xE49;&#xE15;&#xE32;&#xE21; URL &#xE19;&#xE35;&#xE49;</p><figure class="kg-card kg-bookmark-card"><a class="kg-bookmark-container" href="https://mariadb.org/download/?t=repo-config&amp;d=Debian+11+%22Bullseye%22&amp;v=10.6&amp;r_m=kku&amp;ref=blog.unixdev.co.th"><div class="kg-bookmark-content"><div class="kg-bookmark-title">Download MariaDB Server - MariaDB.</div></div></a></figure>]]></description><link>https://blog.unixdev.co.th/mariadb-master-master-repication/</link><guid isPermaLink="false">6203685e248b981933f73a4e</guid><dc:creator><![CDATA[Chanitapon]]></dc:creator><pubDate>Wed, 09 Feb 2022 07:34:12 GMT</pubDate><content:encoded><![CDATA[<p></p><p>&#xE15;&#xE34;&#xE14;&#xE15;&#xE31;&#xE49;&#xE07; Mariadb &#xE25;&#xE07; &#xE17;&#xE31;&#xE49;&#xE07; 2 &#xE40;&#xE04;&#xE23;&#xE37;&#xE48;&#xE2D;&#xE07;</p><p>&#xE2A;&#xE32;&#xE21;&#xE32;&#xE23;&#xE16;&#xE15;&#xE34;&#xE14;&#xE15;&#xE31;&#xE49;&#xE07;&#xE44;&#xE14;&#xE49;&#xE15;&#xE32;&#xE21; URL &#xE19;&#xE35;&#xE49;</p><figure class="kg-card kg-bookmark-card"><a class="kg-bookmark-container" href="https://mariadb.org/download/?t=repo-config&amp;d=Debian+11+%22Bullseye%22&amp;v=10.6&amp;r_m=kku&amp;ref=blog.unixdev.co.th"><div class="kg-bookmark-content"><div class="kg-bookmark-title">Download MariaDB Server - MariaDB.org</div><div class="kg-bookmark-description">REST API Release Schedule Reporting Bugs &#x2026; Continue reading &#x201C;Download MariaDB Server&#x201D;</div><div class="kg-bookmark-metadata"><img class="kg-bookmark-icon" src="https://mariadb.org/wp-content/uploads/2019/02/cropped-mariadb_org_rgb_r_512-1-270x270.png" alt><span class="kg-bookmark-author">MariaDB.org</span></div></div><div class="kg-bookmark-thumbnail"><img src="https://mariadb.org/wp-content/uploads/2019/01/cropped-mariadb_org_rgb_v-2.png" alt></div></a></figure><p></p><p>1) &#xE40;&#xE21;&#xE37;&#xE48;&#xE2D;&#xE15;&#xE34;&#xE14;&#xE15;&#xE31;&#xE49;&#xE07;&#xE40;&#xE2A;&#xE23;&#xE47;&#xE08;&#xE41;&#xE25;&#xE49;&#xE27;&#xE17;&#xE31;&#xE49;&#xE07; 2 &#xE40;&#xE04;&#xE23;&#xE37;&#xE48;&#xE2D;&#xE07;&#xE43;&#xE2B;&#xE49;&#xE1B;&#xE34;&#xE14; service mariadb &#xE17;&#xE31;&#xE49;&#xE07; 2 &#xE40;&#xE04;&#xE23;&#xE37;&#xE48;&#xE2D;&#xE07;</p><!--kg-card-begin: markdown--><p>systemctl stop mariadb</p>
<!--kg-card-end: markdown--><p>2) Master01 &#xE43;&#xE2B;&#xE49;&#xE43;&#xE2A;&#xE48; config &#xE15;&#xE48;&#xE2D;&#xE44;&#xE1B;&#xE19;&#xE35;&#xE49;&#xE25;&#xE07;&#xE44;&#xE1B;</p><!--kg-card-begin: markdown--><p>vim /etc/mysql/mariadb.conf.d/50-server.cnf</p>
<p>&#xE41;&#xE01;&#xE49; Ip &#xE41;&#xE25;&#xE30;&#xE43;&#xE2A;&#xE48;&#xE04;&#xE2D;&#xE19;&#xE1F;&#xE34;&#xE01;&#xE19;&#xE35;&#xE49;&#xE25;&#xE07;&#xE44;&#xE1B;<br>
#replication<br>
server_id = 1<br>
report_host = master<br>
log_bin = /var/lib/mysql/mariadb-bin<br>
log_bin_index = /var/lib/mysql/mariadb-bin.index<br>
relay_log = /var/lib/mysql/relay-bin<br>
relay_log_index = /var/lib/mysql/relay-bin.index</p>
<!--kg-card-end: markdown--><figure class="kg-card kg-image-card"><img src="https://lh6.googleusercontent.com/wnWAZ3ARFUZo49QrzBFPyTJOvc24q6-Yic1YevuGnelgdgN3_GxSvTAJQMUSfBER7eUUqfknMy_ZD49i4k_Vi77iwKFV20a57wDb0-SV6858bsjldh41TKeffsH-YEyT356evdQH" class="kg-image" alt loading="lazy"></figure><p>&#xE40;&#xE2A;&#xE23;&#xE47;&#xE08;&#xE41;&#xE25;&#xE49;&#xE27;&#xE2A;&#xE31;&#xE48;&#xE07; restart Mariadb &#xE40;&#xE04;&#xE23;&#xE37;&#xE48;&#xE2D;&#xE07; Master01</p><p>3) Master02 &#xE43;&#xE2B;&#xE49;&#xE43;&#xE2A;&#xE48; config &#xE15;&#xE48;&#xE2D;&#xE44;&#xE1B;&#xE19;&#xE35;&#xE49;&#xE25;&#xE07;&#xE44;&#xE1B;</p><!--kg-card-begin: markdown--><p>&#xE41;&#xE01;&#xE49;&#xE44;&#xE02; IP &#xE40;&#xE1B;&#xE47;&#xE19;&#xE02;&#xE2D;&#xE07;&#xE40;&#xE04;&#xE23;&#xE37;&#xE48;&#xE2D;&#xE07;<br>
#replication<br>
server_id = 2<br>
report_host = master2<br>
log_bin = /var/lib/mysql/mariadb-bin<br>
log_bin_index = /var/lib/mysql/mariadb-bin.index<br>
relay_log = /var/lib/mysql/relay-bin<br>
relay_log_index = /var/lib/mysql/relay-bin.index</p>
<!--kg-card-end: markdown--><figure class="kg-card kg-image-card"><img src="https://lh5.googleusercontent.com/sPXtybLBjKE1ecLjX8ayx362W6iLgThWbp8GsbpGxFuu0g7R2tVDgxniUIbcfKc-S60UjIC6aHX0Cw0PbMEYXcuAI3p3PqS7W3px_q8P4-vUY_AjA8WciQMjPa7HzsIwJoO7B2Y-" class="kg-image" alt loading="lazy"></figure><p>&#xE40;&#xE2A;&#xE23;&#xE47;&#xE08;&#xE41;&#xE25;&#xE49;&#xE27;&#xE2A;&#xE31;&#xE48;&#xE07; restart Mariadb &#xE40;&#xE04;&#xE23;&#xE37;&#xE48;&#xE2D;&#xE07; Master02 </p><p></p><p>4) &#xE2A;&#xE23;&#xE49;&#xE32;&#xE07; user &#xE2A;&#xE33;&#xE2B;&#xE23;&#xE31;&#xE1A; replication &#xE1A;&#xE19; Master01 &#xE41;&#xE25;&#xE30; Master02</p><p>Master02</p><!--kg-card-begin: markdown--><p>mysql<br>
create user &apos;master02&apos;@&apos;%&apos; identified by &apos;8$82QH:FKjh*&apos;;<br>
grant replication slave on <em>.</em> to &apos;master02&apos;@&apos;%&apos;;</p>
<!--kg-card-end: markdown--><figure class="kg-card kg-image-card"><img src="https://lh4.googleusercontent.com/SSYbNBNc2im3_O_6VJFezTy2QiidTRp-wXjScE1QLLyk2YcilFmzhLB18Ndg3-052xcfi66dHr4Bc3DMQU9uFe8bU5MA96Ebqttw_a9aToBlfI2IXKTXk5AcrIgS7xW-hyzOF_4X" class="kg-image" alt loading="lazy"></figure><!--kg-card-begin: markdown--><p>&#xE08;&#xE14;&#xE44;&#xE27;&#xE49;&#xE43;&#xE0A;&#xE49;&#xE01;&#xE31;&#xE1A; master01<br>
show master status;</p>
<!--kg-card-end: markdown--><figure class="kg-card kg-image-card"><img src="https://lh5.googleusercontent.com/onCbnI2kEQzIyJuJvC1e3o0QhvsXCwds3ss48UcIYmnNDqNf49B6D0gH_QEsloADetBcpehOIgD9uGek0AGCJSzJw7Vi45gHNvbsJ_tzixmVqFbY_vvVjgtU94vnifbjUICll54j" class="kg-image" alt loading="lazy"></figure><p></p><p>Master01</p><!--kg-card-begin: markdown--><p>mysql<br>
create user &apos;master01&apos;@&apos;%&apos; identified by &apos;8$82QH:FKjh*&apos;;<br>
grant replication slave on <em>.</em> to &apos;master01&apos;@&apos;%&apos;;</p>
<!--kg-card-end: markdown--><figure class="kg-card kg-image-card"><img src="https://lh4.googleusercontent.com/SSYbNBNc2im3_O_6VJFezTy2QiidTRp-wXjScE1QLLyk2YcilFmzhLB18Ndg3-052xcfi66dHr4Bc3DMQU9uFe8bU5MA96Ebqttw_a9aToBlfI2IXKTXk5AcrIgS7xW-hyzOF_4X" class="kg-image" alt loading="lazy"></figure><!--kg-card-begin: markdown--><p>&#xE08;&#xE14;&#xE44;&#xE27;&#xE49;&#xE43;&#xE0A;&#xE49;&#xE01;&#xE31;&#xE1A; master02<br>
show master status;</p>
<!--kg-card-end: markdown--><figure class="kg-card kg-image-card"><img src="https://lh3.googleusercontent.com/FqRLjcrcU_njgPGcDJQkCPMzJzJbPu537wtF8LUvxKDGWcHgnppF5X3CkBXeooYjnpuh-uSvxYcbe8HBmmWZfng6FZ10Ip4GdcI2JSM_7ESrGi-D1RAxDGYR8W6aP6SmJzjzbtTn" class="kg-image" alt loading="lazy"></figure><p></p><p>5) &#xE40;&#xE0A;&#xE37;&#xE48;&#xE2D;&#xE21;&#xE15;&#xE48;&#xE2D; master01 &#xE40;&#xE02;&#xE49;&#xE32;&#xE01;&#xE31;&#xE1A; master02</p><p>&#xE40;&#xE04;&#xE23;&#xE37;&#xE48;&#xE2D;&#xE07; master02</p><!--kg-card-begin: markdown--><p>STOP SLAVE;<br>
CHANGE MASTER TO MASTER_HOST=&apos;172.30.31.113&apos;, MASTER_USER=&apos;master01&apos;, MASTER_PASSWORD=&#x2019;8$82QH:FKjh*&apos;, MASTER_LOG_FILE=&apos;mariadb-bin.000001&apos;, MASTER_LOG_POS=659;</p>
<p>#MASTER_HOST &#xE43;&#xE2A;&#xE48; IP<br>
#MASTER_USER &#xE43;&#xE2A;&#xE48; user &#xE02;&#xE2D;&#xE07; master01<br>
#MASTER_PASSWORD &#xE43;&#xE2A;&#xE48; pass &#xE02;&#xE2D;&#xE07; master01<br>
#MASTER_LOG_FILE &#xE41;&#xE25;&#xE30; MASTER_LOG_POS &#xE43;&#xE2A;&#xE48;&#xE02;&#xE49;&#xE2D;&#xE21;&#xE39;&#xE25;&#xE17;&#xE35;&#xE48;&#xE43;&#xE2B;&#xE49;&#xE08;&#xE14;&#xE44;&#xE27;&#xE49;</p>
<!--kg-card-end: markdown--><figure class="kg-card kg-image-card"><img src="https://lh3.googleusercontent.com/Xun4bCN4gLxwqL8Q5fDJkOLfOLDfAWUv9gZZ3whAZ-O3EqYwR7T4QL9fPVVzfJFSI-mNmLZC8NTvoZ-Bpd00orvAZeTuKT0BFclFusDiZ7ecgb9GMU508ZDWjVB1fU_9rZG1J5WU" class="kg-image" alt loading="lazy"></figure><p><strong>&#xE40;&#xE2A;&#xE23;&#xE47;&#xE08;&#xE41;&#xE25;&#xE49;&#xE27;&#xE2A;&#xE31;&#xE48;&#xE07; start slave</strong></p><figure class="kg-card kg-image-card"><img src="https://lh6.googleusercontent.com/r35fx6sfCv0KgyEuBowGgrfdoGc0Lys8tKFN_Ln9zlnzyaSoDmcRtGP5fCO67JB5x9xdx0JHuajTKRca4n5Zp_0vQTMz4imB3c6PmDT1n25sK3CAYMH6pJ_1ULwhCe7CAXqPJZPq" class="kg-image" alt loading="lazy"></figure><p></p><p>&#xE40;&#xE0A;&#xE47;&#xE04;&#xE01;&#xE32;&#xE23;&#xE40;&#xE0A;&#xE37;&#xE48;&#xE2D;&#xE21;&#xE15;&#xE48;&#xE2D;</p><!--kg-card-begin: markdown--><p>show slave status \G</p>
<!--kg-card-end: markdown--><figure class="kg-card kg-image-card"><img src="https://lh5.googleusercontent.com/fur20N51s_bsPk_yh-_rEG2koGUs2gAK8m0SOzSzQ9hZJulMRvqBogE92rgiQt63O9mJ9uPIUcb1vSpKKO5kwaid1OLjZzj4OH3Wl_qKbZJNdN6McSgoC2HInh3lh7MRQjmKVjD2" class="kg-image" alt loading="lazy"></figure><p><br></p><p>&#xE40;&#xE04;&#xE23;&#xE37;&#xE48;&#xE2D;&#xE07; master01</p><!--kg-card-begin: markdown--><p>STOP SLAVE;<br>
CHANGE MASTER TO MASTER_HOST=&apos;172.30.31.113&apos;, MASTER_USER=&apos;master02&apos;, MASTER_PASSWORD=&apos;8$82QH:FKjh*&apos;, MASTER_LOG_FILE=&apos;mariadb-bin.000002&apos;, MASTER_LOG_POS=659;</p>
<p>#MASTER_HOST &#xE43;&#xE2A;&#xE48; IP<br>
#MASTER_USER &#xE43;&#xE2A;&#xE48; user &#xE02;&#xE2D;&#xE07; master02<br>
#MASTER_PASSWORD &#xE43;&#xE2A;&#xE48; pass &#xE02;&#xE2D;&#xE07; master02<br>
#MASTER_LOG_FILE &#xE41;&#xE25;&#xE30; MASTER_LOG_POS &#xE43;&#xE2A;&#xE48;&#xE02;&#xE49;&#xE2D;&#xE21;&#xE39;&#xE25;&#xE17;&#xE35;&#xE48;&#xE43;&#xE2B;&#xE49;&#xE08;&#xE14;&#xE44;&#xE27;&#xE49;</p>
<!--kg-card-end: markdown--><figure class="kg-card kg-image-card"><img src="https://lh5.googleusercontent.com/vuHQc6qDPcL-huU1ZE12ivoVoz6LQTWZd8bjXjizfqP4TR8ptIRNAR5acqizazeJgORzmLBahuoYVuFa8HyEKrfH029F_xHGE_zg4P_ElU_GZDuWMNIKF3G8S-EADQ2q4DppFSlT" class="kg-image" alt loading="lazy"></figure><p><strong>&#xE40;&#xE2A;&#xE23;&#xE47;&#xE08;&#xE41;&#xE25;&#xE49;&#xE27;&#xE2A;&#xE31;&#xE48;&#xE07; start slave</strong></p><figure class="kg-card kg-image-card"><img src="https://lh3.googleusercontent.com/rKASnb0a9tZAKegNrfGfxU26UwwxZlGQqR-4UypZgw_FPVuCzHj3imYeiWBnoEN8Y7FgPKrwTdkFkU9c2PrukT5mgVbLJx_syhMVcuT0FvNM4yjHT5HL0Gebb8TSsFp-xqEgWVrS" class="kg-image" alt loading="lazy"></figure><p>&#xE40;&#xE0A;&#xE47;&#xE04;&#xE2A;&#xE16;&#xE32;&#xE19;&#xE30;&#xE01;&#xE32;&#xE23;&#xE40;&#xE0A;&#xE37;&#xE48;&#xE2D;&#xE21;&#xE15;&#xE48;&#xE2D;</p><figure class="kg-card kg-image-card"><img src="https://lh6.googleusercontent.com/afTkhGFxmK704NbrHezUWT0IfhrerXrPdmAIzYsUhnRfNgqxZ0PdPSXtTqLxGEIAU7ly8kD84X_E80Vh98bE5um3Ly_D6qFxmMuAfd15eq-jsL0a4tUT3PBsHZ6CmoAWbe8KAygK" class="kg-image" alt loading="lazy"></figure><p><br>&#xE17;&#xE14;&#xE2A;&#xE2D;&#xE1A;&#xE01;&#xE32;&#xE23;&#xE40;&#xE0A;&#xE37;&#xE48;&#xE2D;&#xE21;&#xE15;&#xE48;&#xE2D;&#xE42;&#xE14;&#xE22;&#xE2A;&#xE23;&#xE49;&#xE32;&#xE07; DB &#xE1A;&#xE19; Master01 &#xE41;&#xE25;&#xE49;&#xE27; show &#xE1A;&#xE19; Master02 &#xE41;&#xE25;&#xE30; &#xE2A;&#xE23;&#xE49;&#xE32;&#xE07; DB &#xE1A;&#xE19; Master02 &#xE41;&#xE25;&#xE49;&#xE27; show &#xE1A;&#xE19; Master01</p><hr><p>Ref.</p><figure class="kg-card kg-bookmark-card"><a class="kg-bookmark-container" href="http://woshub.com/configure-mariadb-replication/?ref=blog.unixdev.co.th#:~:text=In%20a%20Master%2DMaster%20replication,the%20commands%20to%20its%20databases."><div class="kg-bookmark-content"><div class="kg-bookmark-title">How to Configure MariaDB Master-Master/Slave Replication? | Windows OS Hub</div><div class="kg-bookmark-description">Replication in SQL databases is the process of copying data from the source database to another one (or multiple ones) and vice versa. Data from one database server are constantly&#x2026;</div><div class="kg-bookmark-metadata"><img class="kg-bookmark-icon" src="http://woshub.com/favicon.ico" alt><span class="kg-bookmark-author">Windows OS Hub</span><span class="kg-bookmark-publisher">LinuxCuba</span></div></div><div class="kg-bookmark-thumbnail"><img src="http://woshub.com/wp-content/uploads/2020/04/mariadb-innodb-master-master-replication.png" alt></div></a></figure>]]></content:encoded></item><item><title><![CDATA[MariaDB changing a standby to  Master]]></title><description><![CDATA[<p></p><p>1) &#xE40;&#xE04;&#xE23;&#xE37;&#xE48;&#xE2D;&#xE07; MASTER &#xE40;&#xE01;&#xE48;&#xE32;</p><p>&#xE15;&#xE31;&#xE49;&#xE07;&#xE43;&#xE2B;&#xE49;&#xE2A;&#xE32;&#xE21;&#xE32;&#xE23;&#xE16;&#xE2D;&#xE48;&#xE32;&#xE19;&#xE44;&#xE14;&#xE49;&#xE2D;&#xE22;&#xE48;&#xE32;&#xE07;&#xE40;&#xE14;&#xE35;&#xE22;&#xE27;&#xE40;&#xE1C;&#xE37;&#xE48;&#xE2D;&#xE44;&#xE21;</p>]]></description><link>https://blog.unixdev.co.th/changing-a-slave-to-become-the-master/</link><guid isPermaLink="false">6184d1aa248b981933f73a01</guid><dc:creator><![CDATA[Chanitapon]]></dc:creator><pubDate>Wed, 09 Feb 2022 07:34:03 GMT</pubDate><content:encoded><![CDATA[<p></p><p>1) &#xE40;&#xE04;&#xE23;&#xE37;&#xE48;&#xE2D;&#xE07; MASTER &#xE40;&#xE01;&#xE48;&#xE32;</p><p>&#xE15;&#xE31;&#xE49;&#xE07;&#xE43;&#xE2B;&#xE49;&#xE2A;&#xE32;&#xE21;&#xE32;&#xE23;&#xE16;&#xE2D;&#xE48;&#xE32;&#xE19;&#xE44;&#xE14;&#xE49;&#xE2D;&#xE22;&#xE48;&#xE32;&#xE07;&#xE40;&#xE14;&#xE35;&#xE22;&#xE27;&#xE40;&#xE1C;&#xE37;&#xE48;&#xE2D;&#xE44;&#xE21;&#xE48;&#xE43;&#xE2B;&#xE49;&#xE21;&#xE35;&#xE01;&#xE32;&#xE23;&#xE40;&#xE1B;&#xE25;&#xE35;&#xE48;&#xE22;&#xE19;&#xE41;&#xE1B;&#xE25;&#xE07;&#xE02;&#xE49;&#xE2D;&#xE21;&#xE39;&#xE25;</p><p>FLUSH TABLES WITH READ LOCK;</p><p> &#xE40;&#xE01;&#xE47;&#xE1A;&#xE02;&#xE49;&#xE2D;&#xE21;&#xE39;&#xE25; MASTER &#xE40;&#xE04;&#xE23;&#xE37;&#xE48;&#xE2D;&#xE07;&#xE40;&#xE01;&#xE48;&#xE32; &#xE41;&#xE25;&#xE49;&#xE27;&#xE08;&#xE14;&#xE44;&#xE27;&#xE49;</p><!--kg-card-begin: markdown--><p>SHOW MASTER STATUS;</p>
<!--kg-card-end: markdown--><figure class="kg-card kg-image-card"><img src="https://blog.unixdev.co.th/content/images/2021/11/image-14.png" class="kg-image" alt loading="lazy" width="698" height="144" srcset="https://blog.unixdev.co.th/content/images/size/w600/2021/11/image-14.png 600w, https://blog.unixdev.co.th/content/images/2021/11/image-14.png 698w"></figure><p></p><p>2) &#xE17;&#xE33;&#xE01;&#xE32;&#xE23;&#xE41;&#xE15;&#xE48;&#xE07;&#xE15;&#xE31;&#xE49;&#xE07;&#xE40;&#xE04;&#xE23;&#xE37;&#xE48;&#xE2D;&#xE07; Slave &#xE40;&#xE01;&#xE48;&#xE32; &#xE43;&#xE2B;&#xE49;&#xE40;&#xE1B;&#xE47;&#xE19; MASTER</p><p>&#xE40;&#xE02;&#xE49;&#xE32;&#xE40;&#xE04;&#xE23;&#xE37;&#xE48;&#xE2D;&#xE07; SLAVE &#xE41;&#xE25;&#xE49;&#xE27;&#xE43;&#xE0A;&#xE49;&#xE04;&#xE33;&#xE2A;&#xE31;&#xE48;&#xE07;&#xE15;&#xE48;&#xE2D;&#xE44;&#xE1B;&#xE19;&#xE35;&#xE49;</p><!--kg-card-begin: markdown--><p>grant replication slave on *. * to user-new-replica@&apos;%&apos; identified by &apos;pass-new-master&apos;;<br>
flush privileges;<br>
STOP ALL SLAVES;<br>
RESET SLAVE ALL;<br>
SHOW MASTER STATUS;<br>
SELECT @@global.gtid_binlog_pos;<br>
SET @@global.read_only=0;</p>
<!--kg-card-end: markdown--><figure class="kg-card kg-image-card"><img src="https://blog.unixdev.co.th/content/images/2021/11/image-16.png" class="kg-image" alt loading="lazy" width="910" height="554" srcset="https://blog.unixdev.co.th/content/images/size/w600/2021/11/image-16.png 600w, https://blog.unixdev.co.th/content/images/2021/11/image-16.png 910w" sizes="(min-width: 720px) 720px"></figure><p></p><p>3) &#xE41;&#xE15;&#xE48;&#xE07;&#xE15;&#xE31;&#xE49;&#xE07;&#xE43;&#xE2B;&#xE49;&#xE40;&#xE04;&#xE23;&#xE37;&#xE48;&#xE2D;&#xE07; MASTER &#xE40;&#xE01;&#xE48;&#xE32; &#xE44;&#xE1B;&#xE40;&#xE1B;&#xE47;&#xE19; SLAVE &#xE41;&#xE17;&#xE19;</p><!--kg-card-begin: markdown--><p>set @@global.read_only=1;<br>
STOP ALL SLAVES;<br>
RESET MASTER;<br>
RESET SLAVE ALL;<br>
CHANGE MASTER TO MASTER_HOST=&quot;172.30.31.106&quot;,<br>
MASTER_PORT=3306, MASTER_USER=&apos;replica&apos;, master_password=&apos;123456&apos;, MASTER_USE_GTID=current_pos,<br>
MASTER_LOG_FILE=&quot;mysql-bin.000001&quot;, MASTER_LOG_POS=776;<br>
START SLAVE;<br>
UNLOCK TABLES;</p>
<!--kg-card-end: markdown--><figure class="kg-card kg-image-card"><img src="https://blog.unixdev.co.th/content/images/2021/11/image-15.png" class="kg-image" alt loading="lazy" width="1061" height="361" srcset="https://blog.unixdev.co.th/content/images/size/w600/2021/11/image-15.png 600w, https://blog.unixdev.co.th/content/images/size/w1000/2021/11/image-15.png 1000w, https://blog.unixdev.co.th/content/images/2021/11/image-15.png 1061w" sizes="(min-width: 720px) 720px"></figure><p>4) Show Stats Slave</p><!--kg-card-begin: markdown--><p>show slave status \G</p>
<!--kg-card-end: markdown--><figure class="kg-card kg-image-card"><img src="https://blog.unixdev.co.th/content/images/2021/11/image-17.png" class="kg-image" alt loading="lazy" width="702" height="794" srcset="https://blog.unixdev.co.th/content/images/size/w600/2021/11/image-17.png 600w, https://blog.unixdev.co.th/content/images/2021/11/image-17.png 702w"></figure><figure class="kg-card kg-image-card"><img src="https://blog.unixdev.co.th/content/images/2021/11/image-18.png" class="kg-image" alt loading="lazy" width="929" height="256" srcset="https://blog.unixdev.co.th/content/images/size/w600/2021/11/image-18.png 600w, https://blog.unixdev.co.th/content/images/2021/11/image-18.png 929w" sizes="(min-width: 720px) 720px"></figure>]]></content:encoded></item><item><title><![CDATA[ขยาย root partition ext4 (Debian 11) แบบไม่ reboot]]></title><description><![CDATA[<p></p><p>disk &#xE42;&#xE0A;&#xE27;&#xE4C;&#xE04;&#xE27;&#xE32;&#xE21;&#xE08;&#xE38;&#xE21;&#xE32;&#xE44;&#xE21;&#xE48;&#xE04;&#xE23;&#xE1A; &#xE40;&#xE0A;&#xE48;&#xE19; &#xE21;&#xE35; 120 GB &#xE41;&#xE15;&#xE48;&#xE42;&#xE0A;&#xE27;&#xE4C;&#xE41;&#xE25;&#xE49;&#xE27;&#xE21;&#xE35;&#xE41;&#xE04;&#xE48; 20 GB</p><figure class="kg-card kg-image-card"><img src="https://blog.unixdev.co.th/content/images/2021/11/image.png" class="kg-image" alt loading="lazy" width="1253" height="434" srcset="https://blog.unixdev.co.th/content/images/size/w600/2021/11/image.png 600w, https://blog.unixdev.co.th/content/images/size/w1000/2021/11/image.png 1000w, https://blog.unixdev.co.th/content/images/2021/11/image.png 1253w" sizes="(min-width: 720px) 720px"></figure><p>1) &#xE15;&#xE34;&#xE14;&#xE15;</p>]]></description><link>https://blog.unixdev.co.th/expand-linux-root-partition-no-reboot/</link><guid isPermaLink="false">6181197e248b981933f73962</guid><dc:creator><![CDATA[Chanitapon]]></dc:creator><pubDate>Tue, 02 Nov 2021 11:49:57 GMT</pubDate><content:encoded><![CDATA[<p></p><p>disk &#xE42;&#xE0A;&#xE27;&#xE4C;&#xE04;&#xE27;&#xE32;&#xE21;&#xE08;&#xE38;&#xE21;&#xE32;&#xE44;&#xE21;&#xE48;&#xE04;&#xE23;&#xE1A; &#xE40;&#xE0A;&#xE48;&#xE19; &#xE21;&#xE35; 120 GB &#xE41;&#xE15;&#xE48;&#xE42;&#xE0A;&#xE27;&#xE4C;&#xE41;&#xE25;&#xE49;&#xE27;&#xE21;&#xE35;&#xE41;&#xE04;&#xE48; 20 GB</p><figure class="kg-card kg-image-card"><img src="https://blog.unixdev.co.th/content/images/2021/11/image.png" class="kg-image" alt loading="lazy" width="1253" height="434" srcset="https://blog.unixdev.co.th/content/images/size/w600/2021/11/image.png 600w, https://blog.unixdev.co.th/content/images/size/w1000/2021/11/image.png 1000w, https://blog.unixdev.co.th/content/images/2021/11/image.png 1253w" sizes="(min-width: 720px) 720px"></figure><p>1) &#xE15;&#xE34;&#xE14;&#xE15;&#xE31;&#xE49;&#xE07;&#xE42;&#xE1B;&#xE23;&#xE41;&#xE01;&#xE23;&#xE21; parted</p><!--kg-card-begin: markdown--><p># apt-get install parted</p>
<!--kg-card-end: markdown--><figure class="kg-card kg-image-card"><img src="https://blog.unixdev.co.th/content/images/2021/11/image-1.png" class="kg-image" alt loading="lazy" width="1429" height="554" srcset="https://blog.unixdev.co.th/content/images/size/w600/2021/11/image-1.png 600w, https://blog.unixdev.co.th/content/images/size/w1000/2021/11/image-1.png 1000w, https://blog.unixdev.co.th/content/images/2021/11/image-1.png 1429w" sizes="(min-width: 720px) 720px"></figure><p>2) &#xE17;&#xE33;&#xE01;&#xE32;&#xE23;&#xE1B;&#xE34;&#xE14; swap &#xE16;&#xE49;&#xE32;&#xE44;&#xE21;&#xE48;&#xE1B;&#xE34;&#xE14;&#xE08;&#xE30;&#xE44;&#xE21;&#xE48;&#xE2A;&#xE32;&#xE21;&#xE32;&#xE23;&#xE16; resize root &#xE44;&#xE14;&#xE49;</p><!--kg-card-begin: markdown--><p># swapoff -a</p>
<!--kg-card-end: markdown--><figure class="kg-card kg-image-card"><img src="https://blog.unixdev.co.th/content/images/2021/11/image-3.png" class="kg-image" alt loading="lazy" width="773" height="177" srcset="https://blog.unixdev.co.th/content/images/size/w600/2021/11/image-3.png 600w, https://blog.unixdev.co.th/content/images/2021/11/image-3.png 773w" sizes="(min-width: 720px) 720px"></figure><figure class="kg-card kg-image-card"><img src="https://blog.unixdev.co.th/content/images/2021/11/image-4.png" class="kg-image" alt loading="lazy" width="1273" height="170" srcset="https://blog.unixdev.co.th/content/images/size/w600/2021/11/image-4.png 600w, https://blog.unixdev.co.th/content/images/size/w1000/2021/11/image-4.png 1000w, https://blog.unixdev.co.th/content/images/2021/11/image-4.png 1273w" sizes="(min-width: 720px) 720px"></figure><p>3) &#xE17;&#xE33;&#xE01;&#xE32;&#xE23;&#xE25;&#xE1A; parttion &#xE17;&#xE31;&#xE49;&#xE07;&#xE2B;&#xE21;&#xE14;&#xE40;&#xE1E;&#xE37;&#xE48;&#xE2D;&#xE02;&#xE22;&#xE32;&#xE22;&#xE02;&#xE19;&#xE32;&#xE14;&#xE02;&#xE2D;&#xE07; root</p><!--kg-card-begin: markdown--><p># cfdisk</p>
<!--kg-card-end: markdown--><figure class="kg-card kg-image-card"><img src="https://blog.unixdev.co.th/content/images/2021/11/image-5.png" class="kg-image" alt loading="lazy" width="2000" height="1081" srcset="https://blog.unixdev.co.th/content/images/size/w600/2021/11/image-5.png 600w, https://blog.unixdev.co.th/content/images/size/w1000/2021/11/image-5.png 1000w, https://blog.unixdev.co.th/content/images/size/w1600/2021/11/image-5.png 1600w, https://blog.unixdev.co.th/content/images/2021/11/image-5.png 2091w" sizes="(min-width: 720px) 720px"></figure><figure class="kg-card kg-image-card"><img src="https://blog.unixdev.co.th/content/images/2021/11/image-6.png" class="kg-image" alt loading="lazy" width="2000" height="1079" srcset="https://blog.unixdev.co.th/content/images/size/w600/2021/11/image-6.png 600w, https://blog.unixdev.co.th/content/images/size/w1000/2021/11/image-6.png 1000w, https://blog.unixdev.co.th/content/images/size/w1600/2021/11/image-6.png 1600w, https://blog.unixdev.co.th/content/images/2021/11/image-6.png 2101w" sizes="(min-width: 720px) 720px"></figure><p>4) &#xE17;&#xE33;&#xE01;&#xE32;&#xE23;&#xE2A;&#xE23;&#xE49;&#xE32;&#xE07; parttion &#xE02;&#xE36;&#xE49;&#xE19;&#xE21;&#xE32;&#xE43;&#xE2B;&#xE21;&#xE48; &#xE42;&#xE14;&#xE22;</p><p>sda1 &#xE08;&#xE30;&#xE40;&#xE1B;&#xE47;&#xE19; parttion &#xE02;&#xE2D;&#xE07; root &#xE41;&#xE25;&#xE30; OS</p><p>sda2 &#xE40;&#xE1B;&#xE47;&#xE19; extended &#xE44;&#xE27;&#xE49;&#xE2A;&#xE33;&#xE2B;&#xE23;&#xE31;&#xE1A;&#xE40;&#xE01;&#xE47;&#xE1A;&#xE02;&#xE49;&#xE2D;&#xE21;&#xE39;&#xE25;&#xE2D;&#xE37;&#xE48;&#xE19;&#xE46;&#xE2B;&#xE23;&#xE37;&#xE2D;&#xE01;&#xE47;&#xE04;&#xE37;&#xE2D; &#xE40;&#xE1B;&#xE47;&#xE19; parttion &#xE22;&#xE48;&#xE2D;&#xE22;&#xE2D;&#xE35;&#xE01;&#xE17;&#xE35; &#xE43;&#xE19;&#xE17;&#xE35;&#xE48;&#xE19;&#xE35;&#xE48;&#xE43;&#xE0A;&#xE49;&#xE40;&#xE1B;&#xE47;&#xE19; swap &#xE42;&#xE14;&#xE22;&#xE40;&#xE21;&#xE37;&#xE48;&#xE2D;&#xE2A;&#xE23;&#xE49;&#xE32;&#xE07; sda2 sda5 &#xE08;&#xE30;&#xE2A;&#xE23;&#xE49;&#xE32;&#xE07;&#xE02;&#xE36;&#xE49;&#xE19;&#xE21;&#xE32;&#xE1E;&#xE23;&#xE49;&#xE2D;&#xE21;&#xE01;&#xE31;&#xE19;&#xE42;&#xE14;&#xE22;&#xE2D;&#xE31;&#xE15;&#xE42;&#xE19;&#xE21;&#xE31;&#xE15;&#xE34;</p><figure class="kg-card kg-image-card"><img src="https://blog.unixdev.co.th/content/images/2021/11/image-7.png" class="kg-image" alt loading="lazy" width="2000" height="1072" srcset="https://blog.unixdev.co.th/content/images/size/w600/2021/11/image-7.png 600w, https://blog.unixdev.co.th/content/images/size/w1000/2021/11/image-7.png 1000w, https://blog.unixdev.co.th/content/images/size/w1600/2021/11/image-7.png 1600w, https://blog.unixdev.co.th/content/images/2021/11/image-7.png 2097w" sizes="(min-width: 720px) 720px"></figure><p>5) &#xE08;&#xE32;&#xE01;&#xE19;&#xE31;&#xE49;&#xE19;&#xE40;&#xE25;&#xE37;&#xE2D;&#xE01; write &#xE41;&#xE25;&#xE49;&#xE27;&#xE1E;&#xE34;&#xE21;&#xE1E;&#xE4C; yes &#xE41;&#xE25;&#xE49;&#xE27; &#xE40;&#xE25;&#xE37;&#xE2D;&#xE01; Quit &#xE40;&#xE1E;&#xE37;&#xE48;&#xE2D;&#xE2D;&#xE2D;&#xE01;&#xE08;&#xE32;&#xE01;&#xE42;&#xE1B;&#xE23;&#xE41;&#xE01;&#xE23;&#xE21;</p><figure class="kg-card kg-image-card"><img src="https://blog.unixdev.co.th/content/images/2021/11/image-8.png" class="kg-image" alt loading="lazy" width="2000" height="1077" srcset="https://blog.unixdev.co.th/content/images/size/w600/2021/11/image-8.png 600w, https://blog.unixdev.co.th/content/images/size/w1000/2021/11/image-8.png 1000w, https://blog.unixdev.co.th/content/images/size/w1600/2021/11/image-8.png 1600w, https://blog.unixdev.co.th/content/images/2021/11/image-8.png 2098w" sizes="(min-width: 720px) 720px"></figure><figure class="kg-card kg-image-card"><img src="https://blog.unixdev.co.th/content/images/2021/11/image-9.png" class="kg-image" alt loading="lazy" width="2000" height="1081" srcset="https://blog.unixdev.co.th/content/images/size/w600/2021/11/image-9.png 600w, https://blog.unixdev.co.th/content/images/size/w1000/2021/11/image-9.png 1000w, https://blog.unixdev.co.th/content/images/size/w1600/2021/11/image-9.png 1600w, https://blog.unixdev.co.th/content/images/2021/11/image-9.png 2096w" sizes="(min-width: 720px) 720px"></figure><p>6) &#xE1E;&#xE34;&#xE21;&#xE1E;&#xE4C;&#xE04;&#xE33;&#xE2A;&#xE31;&#xE49;&#xE07;&#xE40;&#xE1E;&#xE37;&#xE48;&#xE2D; resize &#xE41;&#xE25;&#xE30;&#xE2A;&#xE23;&#xE49;&#xE32;&#xE07; swap &#xE43;&#xE2B;&#xE21;&#xE48;</p><!--kg-card-begin: markdown--><p># partprobe<br>
# resize2fs /dev/sda1<br>
# mkswap /dev/sda5</p>
<!--kg-card-end: markdown--><figure class="kg-card kg-image-card"><img src="https://blog.unixdev.co.th/content/images/2021/11/image-11.png" class="kg-image" alt loading="lazy" width="1421" height="346" srcset="https://blog.unixdev.co.th/content/images/size/w600/2021/11/image-11.png 600w, https://blog.unixdev.co.th/content/images/size/w1000/2021/11/image-11.png 1000w, https://blog.unixdev.co.th/content/images/2021/11/image-11.png 1421w" sizes="(min-width: 720px) 720px"></figure><p>7) &#xE40;&#xE1B;&#xE25;&#xE35;&#xE48;&#xE22;&#xE19; UUID &#xE02;&#xE2D;&#xE07; swap &#xE40;&#xE1B;&#xE47;&#xE19;&#xE17;&#xE35;&#xE48;&#xE44;&#xE14;&#xE49;&#xE21;&#xE32;&#xE43;&#xE2B;&#xE21;&#xE48;</p><!--kg-card-begin: markdown--><p># vim /etc/fstab</p>
<!--kg-card-end: markdown--><figure class="kg-card kg-image-card"><img src="https://blog.unixdev.co.th/content/images/2021/11/image-12.png" class="kg-image" alt loading="lazy" width="1726" height="473" srcset="https://blog.unixdev.co.th/content/images/size/w600/2021/11/image-12.png 600w, https://blog.unixdev.co.th/content/images/size/w1000/2021/11/image-12.png 1000w, https://blog.unixdev.co.th/content/images/size/w1600/2021/11/image-12.png 1600w, https://blog.unixdev.co.th/content/images/2021/11/image-12.png 1726w" sizes="(min-width: 720px) 720px"></figure><p>8) &#xE2A;&#xE31;&#xE48;&#xE07;&#xE40;&#xE1B;&#xE34;&#xE14; swap &#xE41;&#xE25;&#xE30;&#xE40;&#xE0A;&#xE47;&#xE04;&#xE02;&#xE19;&#xE32;&#xE14; parttion</p><figure class="kg-card kg-image-card"><img src="https://blog.unixdev.co.th/content/images/2021/11/image-13.png" class="kg-image" alt loading="lazy" width="1449" height="449" srcset="https://blog.unixdev.co.th/content/images/size/w600/2021/11/image-13.png 600w, https://blog.unixdev.co.th/content/images/size/w1000/2021/11/image-13.png 1000w, https://blog.unixdev.co.th/content/images/2021/11/image-13.png 1449w" sizes="(min-width: 720px) 720px"></figure><hr><p>Reference</p><figure class="kg-card kg-bookmark-card"><a class="kg-bookmark-container" href="https://blog.nonamehosts.com/tutorials/how-to-extend-ext4-root-partition-without-reboot/?ref=blog.unixdev.co.th"><div class="kg-bookmark-content"><div class="kg-bookmark-title">How to extend ext4 root partition without reboot</div><div class="kg-bookmark-description">Let&#x2019;s say you want to extend existing disk on your already installed VM. Usually to extend the existing ext4 partition where system is running you would use some Live CD, to edit partition while it&#x2019;s unmounted. However it&#x2019;s possible to extend the partition without booting from Live CD. Here are some&#x2026;</div><div class="kg-bookmark-metadata"><span class="kg-bookmark-author">nonameHosts blog</span></div></div><div class="kg-bookmark-thumbnail"><img src="https://www.nonamehosts.com/blog/wp-content/uploads/2015/03/web-offer12.png" alt></div></a></figure>]]></content:encoded></item><item><title><![CDATA[Enable X-Pack Secure Elasticsearch cluster]]></title><description><![CDATA[<p></p><p>1) Enable Elasticsearch security features</p><p>stop every node</p><p>open xpack.security.enabled </p><p>vim /etc/elasticsearch/elasticsearch.yml (all node)</p><!--kg-card-begin: markdown--><p>xpack.security.enabled: true<br>
xpack.security.transport.ssl.enabled: true<br>
xpack.security.transport.ssl.verification_mode: certificate<br>
xpack.security.transport.ssl.client_authentication: required<br>
xpack.security.transport.ssl.keystore.path: elastic-certificates.</p>]]></description><link>https://blog.unixdev.co.th/enable-x-pac/</link><guid isPermaLink="false">615a91a3248b981933f738e2</guid><dc:creator><![CDATA[Chanitapon]]></dc:creator><pubDate>Tue, 02 Nov 2021 11:27:02 GMT</pubDate><content:encoded><![CDATA[<p></p><p>1) Enable Elasticsearch security features</p><p>stop every node</p><p>open xpack.security.enabled </p><p>vim /etc/elasticsearch/elasticsearch.yml (all node)</p><!--kg-card-begin: markdown--><p>xpack.security.enabled: true<br>
xpack.security.transport.ssl.enabled: true<br>
xpack.security.transport.ssl.verification_mode: certificate<br>
xpack.security.transport.ssl.client_authentication: required<br>
xpack.security.transport.ssl.keystore.path: elastic-certificates.p12<br>
xpack.security.transport.ssl.truststore.path: elastic-certificates.p12</p>
<!--kg-card-end: markdown--><p>2) on master node 1 &#xE41;&#xE19;&#xE30;&#xE19;&#xE33;&#xE43;&#xE2B;&#xE49;&#xE15;&#xE31;&#xE49;&#xE07; pass &#xE40;&#xE14;&#xE35;&#xE22;&#xE27;&#xE01;&#xE31;&#xE19;&#xE2B;&#xE21;&#xE14;</p><!--kg-card-begin: markdown--><p>cd /usr/share/elasticsearch</p>
<p>./bin/elasticsearch-certutil ca<br>
#set password</p>
<p>./bin/elasticsearch-certutil cert --ca elastic-stack-ca.p12<br>
#set password</p>
<!--kg-card-end: markdown--><figure class="kg-card kg-image-card"><img src="https://blog.unixdev.co.th/content/images/2021/10/image-2.png" class="kg-image" alt loading="lazy" width="2000" height="1100" srcset="https://blog.unixdev.co.th/content/images/size/w600/2021/10/image-2.png 600w, https://blog.unixdev.co.th/content/images/size/w1000/2021/10/image-2.png 1000w, https://blog.unixdev.co.th/content/images/size/w1600/2021/10/image-2.png 1600w, https://blog.unixdev.co.th/content/images/2021/10/image-2.png 2070w" sizes="(min-width: 720px) 720px"></figure><figure class="kg-card kg-image-card"><img src="https://blog.unixdev.co.th/content/images/2021/10/image-3.png" class="kg-image" alt loading="lazy" width="2000" height="1106" srcset="https://blog.unixdev.co.th/content/images/size/w600/2021/10/image-3.png 600w, https://blog.unixdev.co.th/content/images/size/w1000/2021/10/image-3.png 1000w, https://blog.unixdev.co.th/content/images/size/w1600/2021/10/image-3.png 1600w, https://blog.unixdev.co.th/content/images/2021/10/image-3.png 2069w" sizes="(min-width: 720px) 720px"></figure><figure class="kg-card kg-image-card"><img src="https://blog.unixdev.co.th/content/images/2021/10/image-4.png" class="kg-image" alt loading="lazy" width="2000" height="1095" srcset="https://blog.unixdev.co.th/content/images/size/w600/2021/10/image-4.png 600w, https://blog.unixdev.co.th/content/images/size/w1000/2021/10/image-4.png 1000w, https://blog.unixdev.co.th/content/images/size/w1600/2021/10/image-4.png 1600w, https://blog.unixdev.co.th/content/images/2021/10/image-4.png 2065w" sizes="(min-width: 720px) 720px"></figure><p>3) copy elastic-stack-ca.p12 and elastic-certificates.p12 to all node path /etc/elasticsearch/</p><p>copy &#xA0;elastic-certificates.p12 &#xE44;&#xE1B;&#xE44;&#xE27;&#xE49;&#xE17;&#xE35;&#xE48; /etc/elasticsearch/ &#xE02;&#xE2D;&#xE07;&#xE17;&#xE38;&#xE01;&#xE42;&#xE2B;&#xE19;&#xE14;</p><figure class="kg-card kg-image-card"><img src="https://blog.unixdev.co.th/content/images/2021/10/image-6.png" class="kg-image" alt loading="lazy" width="2000" height="163" srcset="https://blog.unixdev.co.th/content/images/size/w600/2021/10/image-6.png 600w, https://blog.unixdev.co.th/content/images/size/w1000/2021/10/image-6.png 1000w, https://blog.unixdev.co.th/content/images/size/w1600/2021/10/image-6.png 1600w, https://blog.unixdev.co.th/content/images/2021/10/image-6.png 2075w" sizes="(min-width: 720px) 720px"></figure><figure class="kg-card kg-image-card"><img src="https://blog.unixdev.co.th/content/images/2021/10/image-7.png" class="kg-image" alt loading="lazy" width="2000" height="349" srcset="https://blog.unixdev.co.th/content/images/size/w600/2021/10/image-7.png 600w, https://blog.unixdev.co.th/content/images/size/w1000/2021/10/image-7.png 1000w, https://blog.unixdev.co.th/content/images/size/w1600/2021/10/image-7.png 1600w, https://blog.unixdev.co.th/content/images/2021/10/image-7.png 2063w" sizes="(min-width: 720px) 720px"></figure><p>4) chown -R elasticsearch:elasticsearch /etc/elasticsearch/</p><p>5) &#xE43;&#xE2A;&#xE48; password &#xE17;&#xE35;&#xE48;&#xE15;&#xE31;&#xE49;&#xE07;&#xE01;&#xE48;&#xE2D;&#xE19;&#xE2B;&#xE19;&#xE49;&#xE32;</p><!--kg-card-begin: markdown--><p>cd /usr/share/elasticsearch/</p>
<p>./bin/elasticsearch-keystore add xpack.security.transport.ssl.keystore.secure_password</p>
<p>./bin/elasticsearch-keystore add xpack.security.transport.ssl.truststore.secure_password</p>
<!--kg-card-end: markdown--><p>6) start elasticsearch cluster </p><p>7) set password elasticsearch cluster</p><p>create pass on master-node </p><!--kg-card-begin: markdown--><p>cd /usr/share/elasticsearch/</p>
<p>./bin/elasticsearch-setup-passwords auto</p>
<!--kg-card-end: markdown--><figure class="kg-card kg-image-card"><img src="https://blog.unixdev.co.th/content/images/2021/10/image-8.png" class="kg-image" alt loading="lazy" width="2000" height="790" srcset="https://blog.unixdev.co.th/content/images/size/w600/2021/10/image-8.png 600w, https://blog.unixdev.co.th/content/images/size/w1000/2021/10/image-8.png 1000w, https://blog.unixdev.co.th/content/images/size/w1600/2021/10/image-8.png 1600w, https://blog.unixdev.co.th/content/images/2021/10/image-8.png 2074w" sizes="(min-width: 720px) 720px"></figure>]]></content:encoded></item><item><title><![CDATA[How to patch vCenter Appliance]]></title><description><![CDATA[<p></p><p>**&#xE43;&#xE19;&#xE23;&#xE30;&#xE2B;&#xE27;&#xE48;&#xE32;&#xE07;&#xE01;&#xE32;&#xE23;&#xE2D;&#xE31;&#xE1E;&#xE40;&#xE14;&#xE17; patch &#xE08;&#xE30;&#xE44;&#xE21;&#xE48;&#xE2A;&#xE32;&#xE21;&#xE32;&#xE23;&#xE16;&#xE43;&#xE0A;&#xE49; service vCenter &#xE44;&#xE14;&#xE49; &#xE2A;&#xE32;&#xE21;&#xE32;&#xE23;&#xE16;&#xE43;&#xE0A;&#xE49;&#xE44;&#xE14;&#xE49;</p>]]></description><link>https://blog.unixdev.co.th/how-to-patch-vcenter/</link><guid isPermaLink="false">6153f2c3248b981933f7384e</guid><dc:creator><![CDATA[Chanitapon]]></dc:creator><pubDate>Wed, 29 Sep 2021 07:39:07 GMT</pubDate><media:content url="https://images.unsplash.com/photo-1586772002345-339f8042a777?crop=entropy&amp;cs=tinysrgb&amp;fit=max&amp;fm=jpg&amp;ixid=MnwxMTc3M3wwfDF8c2VhcmNofDJ8fHNlcnZlcnxlbnwwfHx8fDE2MzI5MDEwNTM&amp;ixlib=rb-1.2.1&amp;q=80&amp;w=2000" medium="image"/><content:encoded><![CDATA[<img src="https://images.unsplash.com/photo-1586772002345-339f8042a777?crop=entropy&amp;cs=tinysrgb&amp;fit=max&amp;fm=jpg&amp;ixid=MnwxMTc3M3wwfDF8c2VhcmNofDJ8fHNlcnZlcnxlbnwwfHx8fDE2MzI5MDEwNTM&amp;ixlib=rb-1.2.1&amp;q=80&amp;w=2000" alt="How to patch vCenter Appliance"><p></p><p>**&#xE43;&#xE19;&#xE23;&#xE30;&#xE2B;&#xE27;&#xE48;&#xE32;&#xE07;&#xE01;&#xE32;&#xE23;&#xE2D;&#xE31;&#xE1E;&#xE40;&#xE14;&#xE17; patch &#xE08;&#xE30;&#xE44;&#xE21;&#xE48;&#xE2A;&#xE32;&#xE21;&#xE32;&#xE23;&#xE16;&#xE43;&#xE0A;&#xE49; service vCenter &#xE44;&#xE14;&#xE49; &#xE2A;&#xE32;&#xE21;&#xE32;&#xE23;&#xE16;&#xE43;&#xE0A;&#xE49;&#xE44;&#xE14;&#xE49;&#xE40;&#xE09;&#xE1E;&#xE32;&#xE30; vsphere &#xE2B;&#xE23;&#xE37;&#xE2D; esxi &#xE40;&#xE17;&#xE48;&#xE32;&#xE19;&#xE31;&#xE49;&#xE19; &#xE08;&#xE19;&#xE01;&#xE27;&#xE48;&#xE32;&#xE08;&#xE30;&#xE2D;&#xE31;&#xE1E;&#xE40;&#xE14;&#xE17;&#xE40;&#xE2A;&#xE23;&#xE47;&#xE08;&#xE2A;&#xE34;&#xE49;&#xE19;</p><p>1) &#xE42;&#xE2B;&#xE25;&#xE14;&#xE44;&#xE1F;&#xE25;&#xE4C; &#xA0;iso patch update vCenter &#xE08;&#xE32;&#xE01;&#xE40;&#xE27;&#xE47;&#xE1A; vmware &#xE41;&#xE25;&#xE30;&#xE42;&#xE22;&#xE19;&#xE44;&#xE1F;&#xE25;&#xE4C;&#xE40;&#xE02;&#xE49;&#xE32; datastore &#xE40;&#xE1E;&#xE37;&#xE48;&#xE2D;&#xE40;&#xE2D;&#xE32;&#xE44;&#xE1B;&#xE43;&#xE0A;&#xE49; mount </p><p>&#xE25;&#xE34;&#xE07;&#xE04;&#xE4C;&#xE2A;&#xE33;&#xE2B;&#xE23;&#xE31;&#xE1A;&#xE42;&#xE2B;&#xE25;&#xE14; patch update</p><figure class="kg-card kg-bookmark-card kg-card-hascaption"><a class="kg-bookmark-container" href="https://customerconnect.vmware.com/patch?ref=blog.unixdev.co.th"><div class="kg-bookmark-content"><div class="kg-bookmark-title">Login | VMware Customer Connect</div><div class="kg-bookmark-description">Customer portal login for VMware products including knowledge base, docs, communities, support, and training.</div><div class="kg-bookmark-metadata"><img class="kg-bookmark-icon" src="https://customerconnect.vmware.com/files/templates/images/favicon.ico" alt="How to patch vCenter Appliance"><span class="kg-bookmark-author">VMware Customer Connect</span></div></div><div class="kg-bookmark-thumbnail"><img src="https://www.vmware.com/content/dam/digitalmarketing/vmware/en/images/icons/vmw-avatar-corporate.png&apos;" alt="How to patch vCenter Appliance"></div></a><figcaption>https://customerconnect.vmware.com/patch</figcaption></figure><p> 1.1 &#xE40;&#xE1B;&#xE34;&#xE14; ssh &#xE40;&#xE04;&#xE23;&#xE37;&#xE48;&#xE2D;&#xE07; esxi</p><figure class="kg-card kg-image-card"><img src="https://blog.unixdev.co.th/content/images/2021/09/image-18.png" class="kg-image" alt="How to patch vCenter Appliance" loading="lazy" width="2000" height="958" srcset="https://blog.unixdev.co.th/content/images/size/w600/2021/09/image-18.png 600w, https://blog.unixdev.co.th/content/images/size/w1000/2021/09/image-18.png 1000w, https://blog.unixdev.co.th/content/images/size/w1600/2021/09/image-18.png 1600w, https://blog.unixdev.co.th/content/images/size/w2400/2021/09/image-18.png 2400w" sizes="(min-width: 720px) 720px"></figure><p>1.2 &#xE42;&#xE22;&#xE19;&#xE44;&#xE1F;&#xE25;&#xE4C; iso patch update &#xE44;&#xE1B;&#xE17;&#xE35;&#xE48; datastore </p><p>/vmfs/volumes/datastore</p><p>2) mount iso &#xE44;&#xE1B;&#xE17;&#xE35;&#xE48; virtual machine &#xE17;&#xE35;&#xE48;&#xE15;&#xE34;&#xE14;&#xE15;&#xE31;&#xE49;&#xE07; vCenter &#xE44;&#xE27;&#xE49;</p><p>3) &#xE40;&#xE02;&#xE49;&#xE32;&#xE2B;&#xE19;&#xE49;&#xE32; VMware Appliance Management<br>https://ip-or-doamin-of-vcenter:5480</p><figure class="kg-card kg-image-card"><img src="https://blog.unixdev.co.th/content/images/2021/09/2021-09-29_12-06-50.jpg" class="kg-image" alt="How to patch vCenter Appliance" loading="lazy" width="1920" height="937" srcset="https://blog.unixdev.co.th/content/images/size/w600/2021/09/2021-09-29_12-06-50.jpg 600w, https://blog.unixdev.co.th/content/images/size/w1000/2021/09/2021-09-29_12-06-50.jpg 1000w, https://blog.unixdev.co.th/content/images/size/w1600/2021/09/2021-09-29_12-06-50.jpg 1600w, https://blog.unixdev.co.th/content/images/2021/09/2021-09-29_12-06-50.jpg 1920w" sizes="(min-width: 720px) 720px"></figure><p>4) &#xE17;&#xE32;&#xE07;&#xE41;&#xE16;&#xE1A;&#xE14;&#xE49;&#xE32;&#xE19;&#xE0B;&#xE49;&#xE32;&#xE22;&#xE40;&#xE25;&#xE37;&#xE2D;&#xE01; update </p><figure class="kg-card kg-image-card"><img src="https://blog.unixdev.co.th/content/images/2021/09/cp2021-09-29_11-44-50.jpg" class="kg-image" alt="How to patch vCenter Appliance" loading="lazy" width="266" height="941"></figure><p>5) &#xE17;&#xE32;&#xE07;&#xE14;&#xE49;&#xE32;&#xE19;&#xE02;&#xE27;&#xE32;&#xE1A;&#xE19; &#xE01;&#xE14; Check updates &#xE41;&#xE25;&#xE49;&#xE27;&#xE40;&#xE25;&#xE37;&#xE2D;&#xE01; Check CD ROM</p><figure class="kg-card kg-image-card"><img src="https://blog.unixdev.co.th/content/images/2021/09/1.jpg" class="kg-image" alt="How to patch vCenter Appliance" loading="lazy" width="1920" height="937" srcset="https://blog.unixdev.co.th/content/images/size/w600/2021/09/1.jpg 600w, https://blog.unixdev.co.th/content/images/size/w1000/2021/09/1.jpg 1000w, https://blog.unixdev.co.th/content/images/size/w1600/2021/09/1.jpg 1600w, https://blog.unixdev.co.th/content/images/2021/09/1.jpg 1920w" sizes="(min-width: 720px) 720px"></figure><p>6) &#xE40;&#xE2A;&#xE23;&#xE47;&#xE08;&#xE41;&#xE25;&#xE49;&#xE27;&#xE40;&#xE25;&#xE37;&#xE2D;&#xE01; STAGE AND INSTALL</p><figure class="kg-card kg-image-card"><img src="https://blog.unixdev.co.th/content/images/2021/09/image-10.png" class="kg-image" alt="How to patch vCenter Appliance" loading="lazy" width="1915" height="893" srcset="https://blog.unixdev.co.th/content/images/size/w600/2021/09/image-10.png 600w, https://blog.unixdev.co.th/content/images/size/w1000/2021/09/image-10.png 1000w, https://blog.unixdev.co.th/content/images/size/w1600/2021/09/image-10.png 1600w, https://blog.unixdev.co.th/content/images/2021/09/image-10.png 1915w" sizes="(min-width: 720px) 720px"></figure><p>7) &#xE08;&#xE32;&#xE01;&#xE19;&#xE31;&#xE49;&#xE19;&#xE17;&#xE33;&#xE15;&#xE32;&#xE21;&#xE15;&#xE31;&#xE27;&#xE2D;&#xE22;&#xE48;&#xE32;&#xE07;&#xE23;&#xE39;&#xE1B;&#xE14;&#xE49;&#xE32;&#xE19;&#xE25;&#xE48;&#xE32;&#xE07;</p><figure class="kg-card kg-image-card"><img src="https://blog.unixdev.co.th/content/images/2021/09/image-12.png" class="kg-image" alt="How to patch vCenter Appliance" loading="lazy" width="1898" height="949" srcset="https://blog.unixdev.co.th/content/images/size/w600/2021/09/image-12.png 600w, https://blog.unixdev.co.th/content/images/size/w1000/2021/09/image-12.png 1000w, https://blog.unixdev.co.th/content/images/size/w1600/2021/09/image-12.png 1600w, https://blog.unixdev.co.th/content/images/2021/09/image-12.png 1898w" sizes="(min-width: 720px) 720px"></figure><figure class="kg-card kg-image-card"><img src="https://blog.unixdev.co.th/content/images/2021/09/image-13.png" class="kg-image" alt="How to patch vCenter Appliance" loading="lazy" width="1920" height="1080" srcset="https://blog.unixdev.co.th/content/images/size/w600/2021/09/image-13.png 600w, https://blog.unixdev.co.th/content/images/size/w1000/2021/09/image-13.png 1000w, https://blog.unixdev.co.th/content/images/size/w1600/2021/09/image-13.png 1600w, https://blog.unixdev.co.th/content/images/2021/09/image-13.png 1920w" sizes="(min-width: 720px) 720px"></figure><figure class="kg-card kg-image-card"><img src="https://blog.unixdev.co.th/content/images/2021/09/image-15.png" class="kg-image" alt="How to patch vCenter Appliance" loading="lazy" width="1897" height="897" srcset="https://blog.unixdev.co.th/content/images/size/w600/2021/09/image-15.png 600w, https://blog.unixdev.co.th/content/images/size/w1000/2021/09/image-15.png 1000w, https://blog.unixdev.co.th/content/images/size/w1600/2021/09/image-15.png 1600w, https://blog.unixdev.co.th/content/images/2021/09/image-15.png 1897w" sizes="(min-width: 720px) 720px"></figure><p></p><p>8) &#xE08;&#xE32;&#xE01;&#xE19;&#xE31;&#xE49;&#xE19;&#xE23;&#xE2D; install patch update &#xE40;&#xE2A;&#xE23;&#xE47;&#xE08;&#xE01;&#xE47;&#xE2A;&#xE32;&#xE21;&#xE32;&#xE23;&#xE16;&#xE43;&#xE0A;&#xE49; vCenter &#xE44;&#xE14;&#xE49;</p><figure class="kg-card kg-image-card"><img src="https://blog.unixdev.co.th/content/images/2021/09/image-16.png" class="kg-image" alt="How to patch vCenter Appliance" loading="lazy" width="1905" height="889" srcset="https://blog.unixdev.co.th/content/images/size/w600/2021/09/image-16.png 600w, https://blog.unixdev.co.th/content/images/size/w1000/2021/09/image-16.png 1000w, https://blog.unixdev.co.th/content/images/size/w1600/2021/09/image-16.png 1600w, https://blog.unixdev.co.th/content/images/2021/09/image-16.png 1905w" sizes="(min-width: 720px) 720px"></figure>]]></content:encoded></item></channel></rss>