<?xml version="1.0" encoding="UTF-8" standalone="no"?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0"><channel><title>WeB LoG'S JuUiER</title><description>I&amp;#39;m IT worker kik kok leave in Maha Sarakham &amp;amp; Bangkok some time.</description><managingEditor>noreply@blogger.com (juuier)</managingEditor><pubDate>Tue, 1 Dec 2026 15:54:06 +0700</pubDate><generator>Blogger http://www.blogger.com</generator><openSearch:totalResults xmlns:openSearch="http://a9.com/-/spec/opensearchrss/1.0/">1911</openSearch:totalResults><openSearch:startIndex xmlns:openSearch="http://a9.com/-/spec/opensearchrss/1.0/">1</openSearch:startIndex><openSearch:itemsPerPage xmlns:openSearch="http://a9.com/-/spec/opensearchrss/1.0/">25</openSearch:itemsPerPage><link>http://juuier.blogspot.com/</link><language>en-us</language><itunes:explicit>no</itunes:explicit><itunes:subtitle>I&amp;#39;m IT worker kik kok leave in Maha Sarakham &amp;amp; Bangkok some time.</itunes:subtitle><itunes:owner><itunes:email>noreply@blogger.com</itunes:email></itunes:owner><item><title>คำสั่ง clear log file โดยให้สิทธิ์คงเดิม codeignitor</title><link>http://juuier.blogspot.com/2026/12/clear-log-file-codeignitor.html</link><author>noreply@blogger.com (juuier)</author><pubDate>Tue, 1 Dec 2026 14:19:25 +0700</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-34115975.post-8026218375833621164</guid><description>&lt;p&gt;&lt;/p&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;จะตรวจสอบ log&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;span style="color: red;"&gt;sudo truncate -s 0 -c -- /path/writable/logs/log-2026-12-01.log&lt;/span&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;อธิบายคำสั่ง&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;truncate -s 0 -c -- /path/writable/logs/log-2026-12-01.log&lt;/li&gt;&lt;li&gt;- truncate ปรับขนาดไฟล์&lt;/li&gt;&lt;li&gt;- -s 0 กำหนดขนาดเป็น 0 ไบต์ ทำให้ข้อความเดิมในไฟล์ถูกล้างทั้งหมด&lt;/li&gt;&lt;li&gt;- -c ถ้าไฟล์ไม่มีอยู่ จะข้ามโดยไม่สร้างไฟล์ใหม่&lt;/li&gt;&lt;li&gt;- -- บอกว่าตัวเลือกจบแล้ว ค่าที่ตามมาคือชื่อไฟล์&lt;/li&gt;&lt;li&gt;- /path/writable/logs/log-2026-12-01.log คือพาธไฟล์แบบสัมพัทธ์ ให้รันจากโฟลเดอร์หลักของโปรเจกต์ สังเกตว่า writable มีตัว t ครับ&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;ถ้าแอปยังเขียน log อยู่ ข้อความใหม่อาจปรากฏในไฟล์ทันทีหลังล้างครับ&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;Are u sure?&lt;/div&gt;</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>คัดลอก file ใน google drive ด้วย rclone บน windows</title><link>http://juuier.blogspot.com/2026/11/file-google-drive-rclone-windows.html</link><author>noreply@blogger.com (juuier)</author><pubDate>Sun, 29 Nov 2026 16:14:15 +0700</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-34115975.post-7284034385007291607</guid><description>&lt;p&gt;Ref:&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;https://gemini.google.com/app/c2db2c291ff93ffb&lt;/li&gt;&lt;li&gt;&lt;a href="https://datafarm-cybersecurity.medium.com/how-to-%E0%B8%A2%E0%B8%81%E0%B8%A3%E0%B8%B0%E0%B8%94%E0%B8%B1%E0%B8%9A%E0%B8%81%E0%B8%B2%E0%B8%A3%E0%B8%88%E0%B8%B1%E0%B8%94%E0%B8%81%E0%B8%B2%E0%B8%A3-cloud-storage-%E0%B8%94%E0%B9%89%E0%B8%A7%E0%B8%A2%E0%B9%80%E0%B8%84%E0%B8%A3%E0%B8%B7%E0%B9%88%E0%B8%AD%E0%B8%87%E0%B8%A1%E0%B8%B7%E0%B8%AD-rclone-3beabf0eae9c "&gt;https://datafarm-cybersecurity.medium.com/how-to&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div&gt;Env : window 11&lt;/div&gt;&lt;p&gt;&lt;/p&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;เปิด command prompt หรือ powershell แล้วติดตั้งด้วยคำสั่ง&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;span style="color: red;"&gt;winget install Rclone.Rclone&lt;/span&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;สร้าง account เชื่อมต่อกับ google drive&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;span style="color: red;"&gt;rclone config&lt;/span&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;ดูขนาดไฟล์ใน google drive (acc1 คือ ชื่อที่ผู้กับ drive ตอนใช้คำสั่ง rclone config)&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;span style="color: red;"&gt;rclone ncdu acc1:&lt;/span&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;คัดลอกไฟล์จาก acc1 ไป acc2 (ที่ acc1 คัดลอกไฟล์ที่ต้องการย้ายไป acc2 ไปไว้ที่&amp;nbsp; folder เดียวแล้วแชร์ จากนั้นใช้คำสั่งนี้)&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;span style="color: red;"&gt;rclone copy acc1:"ชื่อโฟลเดอร์ที่แชร์" acc2:"Backup_From_5TB" --drive-shared-with-me --drive-server-side-across-configs -P&lt;/span&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;คัดลอกไฟล์ใน google drive&amp;nbsp; ทั้งหมดตั้งแต่หน้าแรก มาวางที่&amp;nbsp; D: local ของคอมฯ เรา&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;span style="color: red;"&gt;rclone &lt;span class="hljs-built_in"&gt;copy&lt;/span&gt; acc1: D:\GDrive_Backup -&lt;span class="hljs-literal"&gt;-transfers&lt;/span&gt;=&lt;span class="hljs-number"&gt;8&lt;/span&gt; -&lt;span class="hljs-literal"&gt;-checkers&lt;/span&gt;=&lt;span class="hljs-number"&gt;16&lt;/span&gt; &lt;span class="hljs-literal"&gt;-P&lt;/span&gt;&lt;/span&gt;&lt;/blockquote&gt;&lt;span class="hljs-literal"&gt;&lt;/span&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;&lt;span class="hljs-literal"&gt;หากต้องการเช็กซ้ำเพื่อความมั่นใจว่าไฟล์ใน Drive D ตรงกับบน Google Drive ทุกไฟล์ ให้รันคำสั่ง:&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;span class="hljs-literal"&gt;&lt;/span&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;span style="color: red;"&gt;rclone check acc1: D:\GDrive_Backup -&lt;span class="hljs-literal"&gt;-one&lt;/span&gt;&lt;span class="hljs-literal"&gt;-way&lt;/span&gt;&lt;/span&gt;&lt;/blockquote&gt;&lt;span class="hljs-literal"&gt;&lt;/span&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;&lt;span class="hljs-literal"&gt;&lt;span class="hljs-literal"&gt;คัดลอก folder บน google drive แบบ เจาะจง folder&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;b data-index-in-node="0" data-path-to-node="1,0,0"&gt;ตรวจสอบชื่อโฟลเดอร์ที่แน่นอนบน Google Drive (ป้องกันพิมพ์ผิดหรือมีช่องว่างท้ายชื่อ):&lt;/b&gt;
รันคำสั่งนี้ใน PowerShell เพื่อดูรายชื่อโฟลเดอร์ระดับบนสุดทั้งหมด:&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;span style="color: red;"&gt;rclone lsd acc1:&lt;/span&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;b data-index-in-node="0" data-path-to-node="1,1,0"&gt;สั่งดาวน์โหลดเฉพาะโฟลเดอร์ที่เลือก (ระบุทีละโฟลเดอร์):&lt;/b&gt;
ครอบชื่อโฟลเดอร์ด้วยเครื่องหมายคำพูด &lt;code data-index-in-node="92" data-path-to-node="1,1,0"&gt;""&lt;/code&gt; เสมอ (เพื่อรองรับชื่อภาษาไทยและเว้นวรรค) และตั้งชื่อโฟลเดอร์ปลายทางใน &lt;code data-index-in-node="165" data-path-to-node="1,1,0"&gt;D:\GDrive_Backup\&lt;/code&gt; ให้ตรงกัน:&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;span style="color: red;"&gt;rclone copy "acc1:ชื่อโฟลเดอร์ในไดรฟ์" "D:\GDrive_Backup\ชื่อโฟลเดอร์ในไดรฟ์" --transfers=8 -P&lt;/span&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;ตัวอย่างการใช้งานจริง:&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;&lt;span style="color: red;"&gt;rclone copy "acc1:เอกสารงานสำคัญ" "D:\GDrive_Backup\เอกสารงานสำคัญ" --transfers=8 -P&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: red;"&gt;rclone copy "acc1:งานปี2026/รูปภาพกิจกรรม" "D:\GDrive_Backup\งานปี2026\รูปภาพกิจกรรม" --transfers=8 -P&lt;/span&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;i data-index-in-node="0" data-path-to-node="1,1,2,1,0"&gt;การตรวจสอบ:&lt;/i&gt; รอจนแถบสถานะ &lt;code data-index-in-node="25" data-path-to-node="1,1,2,1,0"&gt;-P&lt;/code&gt; ทำงานเสร็จและค่า &lt;code data-index-in-node="45" data-path-to-node="1,1,2,1,0"&gt;Errors: 0&lt;/code&gt; โฟลเดอร์นั้นจะไปปรากฏใน &lt;code data-index-in-node="79" data-path-to-node="1,1,2,1,0"&gt;D:\GDrive_Backup\&lt;/code&gt; พร้อมไฟล์ข้างในครบถ้วน&lt;/p&gt;&lt;h3 data-path-to-node="3" dir="ltr"&gt;กรณีต้องการสั่งดาวน์โหลด "หลายโฟลเดอร์พร้อมกัน" ในคำสั่งเดียว&lt;/h3&gt;&lt;p data-path-to-node="4" dir="ltr"&gt;&lt;/p&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;หากมีโฟลเดอร์ที่ต้องการ 3–4 โฟลเดอร์ และไม่อยากนั่งรอกดรันทีละบรรทัด ให้ใช้ Flag &lt;code data-index-in-node="81" data-path-to-node="4"&gt;--include&lt;/code&gt; โดยระบุชื่อโฟลเดอร์ที่ต้องการคั่นด้วยเครื่องหมายจุลภาค &lt;code data-index-in-node="146" data-path-to-node="4"&gt;,&lt;/code&gt; และลงท้ายด้วย &lt;code data-index-in-node="162" data-path-to-node="4"&gt;/**&lt;/code&gt; (หมายถึงเอาทุกไฟล์และโฟลเดอร์ย่อยข้างใน):&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;p data-path-to-node="4" dir="ltr"&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;span style="color: red;"&gt;rclone copy acc1: "D:\GDrive_Backup" --include "{ชื่อโฟลเดอร์ที่1/**,ชื่อโฟลเดอร์ที่2/**,ชื่อโฟลเดอร์ที่3/**}" --transfers=8 -P&lt;/span&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;/p&gt;&lt;p data-path-to-node="4" dir="ltr"&gt;&lt;b&gt;ตัวอย่าง:&lt;/b&gt;&lt;/p&gt;&lt;p data-path-to-node="4" dir="ltr"&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;span style="color: red;"&gt;rclone copy acc1: "D:\GDrive_Backup" --include "{เอกสารสำคัญ/**,รูปถ่ายครอบครัว/**,โปรเจกต์ปี2569/**}" --transfers=8 -P&lt;/span&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;/p&gt;&lt;p data-path-to-node="4" dir="ltr"&gt;&lt;i data-index-in-node="0" data-path-to-node="6,1,0"&gt;การตรวจสอบ:&lt;/i&gt; Rclone จะข้ามโฟลเดอร์อื่นๆ ที่ไม่ได้ระบุชื่อไว้ และดึงเฉพาะโฟลเดอร์ที่อยู่ใน &lt;code data-index-in-node="89" data-path-to-node="6,1,0"&gt;{...}&lt;/code&gt; ลงมาสร้างไว้ใน &lt;code data-index-in-node="110" data-path-to-node="6,1,0"&gt;D:\GDrive_Backup&lt;/code&gt; ให้ครบในรอบเดียวครับ&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;Are u sure?&lt;/div&gt;</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>ย้าย Nginx host จริงเข้า Docker container โดยใช้ config, ssl จาก host เดิม ไม่แก้ไขของเดิม</title><link>http://juuier.blogspot.com/2026/11/nginx-host-docker-container-config-ssl.html</link><author>noreply@blogger.com (juuier)</author><pubDate>Sun, 29 Nov 2026 09:17:30 +0700</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-34115975.post-5036550683445011361</guid><description>&lt;p&gt;Ref: gemini &amp;amp;&amp;nbsp; chatgpt&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;ย้ายเพื่อจะ upgrade ระบบแบบไม่ให้ขาดตอนการใช้งาน&lt;/li&gt;&lt;li&gt;host แม่ nginx version: nginx/1.24.0&lt;/li&gt;&lt;li&gt;nginx container nginx version: nginx/1.30.8&lt;/li&gt;&lt;li&gt;host แม่ มีคอนฟิกเดิม /etc/nginx/sites-available , /etc/nginx/sites-enabled, /etc/letsencrypt&lt;/li&gt;&lt;li&gt;สร้าง folder เก็บ compose.yaml, Dockerfile&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;&lt;span style="color: red;"&gt;$ mkdir /path/nginx-proxy&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: red;"&gt;$ cd /path/nginx-proxy&lt;/span&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;คัดลอก คอนฟิกเดิม nginx (ค่าใน host จริง หรือ กรณี upgrade&amp;nbsp; nginx เวอร์ขั่นใหม่ใน host จริง เมื่อระบบถามใช้คอนฟิกใหม่หรือไม่ ให้เลือก&amp;nbsp; No นะคับ คอนฟิกเดิมจะสามารถใช้ต่อไปได้ แต่ก็ติด user nginx; ไม่มีอยู่ดี)&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;span style="color: red;"&gt;$ sudo cp -a /etc/nginx/nginx.conf /path/nginx-proxy/nginx.conf&lt;/span&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;&lt;span style="color: #800180;"&gt;แก้ไขที่คัดลอกมา /path/nginx-proxy/nginx.conf&amp;nbsp; &lt;/span&gt;บรรทัดแรก user เวอร์ชั่นใหม่ใช้ชื่อ user nginx เลย (ไม่ต้องไปแก้ที่ nginx host จริงนะ เพราะ host จริงไม่มี user nginx เดียวคอนฟิกจะ error ถ้ากลับมารัน nginx ที่ host จริง)&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;blockquote&gt;$ nano /path/nginx-proxy/nginx.conf&lt;/blockquote&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;span style="color: #800180;"&gt;user www-data;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;ไปเป็น&amp;nbsp;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;span style="color: #800180;"&gt;user nginx;&lt;/span&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;/p&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;สร้างไฟล์ Dokcerfile &lt;span style="color: red;"&gt;$ nano Dockerfile&amp;nbsp;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;blockquote&gt;&lt;div&gt;&lt;div&gt;&lt;span style="color: #2b00fe;"&gt;FROM nginx:stable-alpine&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #2b00fe;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #2b00fe;"&gt;RUN apk add --no-cache tzdata &amp;amp;&amp;amp; \&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #2b00fe;"&gt;&amp;nbsp; &amp;nbsp; cp /usr/share/zoneinfo/Asia/Bangkok /etc/localtime &amp;amp;&amp;amp; \&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #2b00fe;"&gt;&amp;nbsp; &amp;nbsp; echo "Asia/Bangkok" &amp;gt; /etc/timezone &amp;amp;&amp;amp; \&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #2b00fe;"&gt;&amp;nbsp; &amp;nbsp; apk del tzdata &amp;amp;&amp;amp; \&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #2b00fe;"&gt;&amp;nbsp; &amp;nbsp; rm -f /etc/nginx/conf.d/default.conf &amp;amp;&amp;amp; \&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #2b00fe;"&gt;&amp;nbsp; &amp;nbsp; mkdir -p /etc/nginx/sites-enabled&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #2b00fe;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #2b00fe;"&gt;EXPOSE 80 443&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #2b00fe;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #2b00fe;"&gt;CMD ["nginx", "-g", "daemon off;"]&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;สร้าง compose.yaml&lt;span style="color: red;"&gt; $ nano compose.yaml&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;blockquote&gt;&lt;div&gt;&lt;span style="color: #2b00fe;"&gt;services:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #2b00fe;"&gt;&amp;nbsp; nginx-proxy:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #2b00fe;"&gt;&amp;nbsp; &amp;nbsp; build: .&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #2b00fe;"&gt;&amp;nbsp; &amp;nbsp; container_name: nginx-reverse-proxy&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #2b00fe;"&gt;&amp;nbsp; &amp;nbsp; restart: unless-stopped&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #2b00fe;"&gt;&amp;nbsp; &amp;nbsp; ports:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #2b00fe;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; - "80:80"&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #2b00fe;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; - "443:443"&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #2b00fe;"&gt;&amp;nbsp; &amp;nbsp; volumes:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #2b00fe;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; # ใส่ nginx.conf หลักที่เราสร้างขึ้น&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #2b00fe;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; - ./nginx.conf:/etc/nginx/nginx.conf:ro&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #2b00fe;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #2b00fe;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; # Mount ทั้ง sites-available และ sites-enabled ใน path เดิมเพื่อให้ symlink ไม่เสีย&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #2b00fe;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; - /etc/nginx/sites-available:/etc/nginx/sites-available:ro&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #2b00fe;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; - /etc/nginx/sites-enabled:/etc/nginx/sites-enabled:ro&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #2b00fe;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #2b00fe;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; # Mount snippets (ถ้ามี)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #2b00fe;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; - /etc/nginx/snippets:/etc/nginx/snippets:ro&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #2b00fe;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #2b00fe;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; # Mount โฟลเดอร์เก็บ SSL Certificate (ปรับ path ให้ตรงกับที่ vhost เรียกใช้)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #2b00fe;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; - /etc/letsencrypt:/etc/letsencrypt:ro&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #2b00fe;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #2b00fe;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; # เก็บ Log ไว้บน Host&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #2b00fe;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; - /var/log/nginx-docker:/var/log/nginx&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #2b00fe;"&gt;&amp;nbsp; &amp;nbsp; extra_hosts:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: #2b00fe;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; - "host.docker.internal:host-gateway"&lt;/span&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;-----------------------------------------------------&lt;/div&gt;&lt;div&gt;&lt;b&gt;การตรวจสอบก่อนสลับระบบจริง (Dry Run)&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;blockquote&gt;&lt;div&gt;&lt;span style="color: red;"&gt;$ sudo grep -rnE "ssl_certificate|include" /etc/nginx/sites-enabled/&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: red;"&gt;$ sudo grep -rnE "ssl_certificate|include" /etc/nginx/sites-available/&lt;/span&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;Build Image และทดสอบรันคำสั่ง &lt;code data-index-in-node="30" data-path-to-node="22,1,0"&gt;nginx -t&lt;/code&gt; ผ่าน Container ชั่วคราว:&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;blockquote&gt;&lt;div&gt;&lt;span style="color: red;"&gt;$ cd /path/nginx-proxy&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: red;"&gt;$ sudo docker compose build&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: red;"&gt;$ sudo docker compose run --rm --no-deps nginx-proxy nginx -t&lt;/span&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;&lt;i data-index-in-node="0" data-path-to-node="22,1,2"&gt;ผลลัพธ์ที่ถูกต้อง:&lt;/i&gt; ต้องแสดงข้อความ &lt;code data-index-in-node="35" data-path-to-node="22,1,2"&gt;nginx: configuration file /etc/nginx/nginx.conf test is successful&lt;/code&gt; หากมี Path ไหนขาดหายไป มันจะแจ้งเตือนขึ้นมาทันทีเพื่อให้เราเพิ่ม &lt;code data-index-in-node="167" data-path-to-node="22,1,2"&gt;volumes&lt;/code&gt; ได้ก่อนที่จะหยุดระบบจริง&lt;/li&gt;&lt;li&gt;เมื่อทดสอบผ่านแล้ว จึงทำการหยุด Nginx เดิมและเปิด Container:&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;blockquote&gt;&lt;div&gt;&lt;span style="color: red;"&gt;$ sudo systemctl stop nginx &amp;amp;&amp;amp; sudo systemctl disable nginx&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: red;"&gt;$ sudo docker compose up -d&lt;/span&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;/p&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;หรือ บรรทัดเดียว&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: red;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;span style="color: red;"&gt;$ sudo systemctl stop nginx &amp;amp;&amp;amp; sudo systemctl disable nginx &amp;amp;&amp;amp;&amp;nbsp;&lt;/span&gt;&amp;nbsp;&lt;span style="color: red;"&gt;sudo docker compose up -d&lt;/span&gt;&lt;/blockquote&gt;&lt;span style="color: red;"&gt;&lt;/span&gt;&lt;p&gt;&lt;/p&gt;&lt;/div&gt;&lt;div&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;&lt;i data-index-in-node="0" data-path-to-node="22,2,2"&gt;การตรวจสอบ:&lt;/i&gt; รัน &lt;code data-index-in-node="16" data-path-to-node="22,2,2"&gt;&lt;span style="color: red;"&gt;sudo docker logs nginx-reverse-proxy&lt;/span&gt;&lt;/code&gt; และลองเรียกเข้าโดเมนต่างๆ เพื่อยืนยันว่า Proxy และ SSL ทำงานปกติครับ&lt;/li&gt;&lt;li&gt;&lt;span style="color: #ff00fe;"&gt;กรณีต้องการย้อนกลับมารัน host จริงก็สั่ง&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;blockquote&gt;&lt;div&gt;&lt;span style="color: red;"&gt;$ cd /path/nginx-proxy/&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: red;"&gt;$ sudo docker compose down&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: red;"&gt;$ sudo systemctl enable nginx &amp;amp;&amp;amp; sudo systemctl start nginx&lt;/span&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;หรือรันคำสั่งบรรทัดเดียว&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div&gt;&lt;blockquote&gt;&lt;span style="color: red;"&gt;$ cd /path/nginx-proxy/ &amp;amp;&amp;amp; sudo docker compose down &amp;amp;&amp;amp; sudo systemctl &lt;span class="hljs-built_in"&gt;enable&lt;/span&gt; --now nginx&lt;/span&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;span style="color: #ff00fe;"&gt;กรณีแก้ไฟล์คอนฟิกที่ host แม่ใน path ที่ map volume vhost ไว้&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;ให้สั่ง reload nginx ใน&amp;nbsp; container โดย ตรวจสอบก่อน reload&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;span style="color: red;"&gt;$ sudo docker exec nginx-proxy nginx -t&amp;nbsp;&lt;/span&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;div&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;ถ้าตรวจสอบแล้วไม่&amp;nbsp; syntax error ก็ reload ได้เลย&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div&gt;&lt;blockquote&gt;&lt;span style="color: red;"&gt;$ sudo docker exec nginx-proxy nginx -s reload &lt;/span&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;code&gt;nginx -s&lt;/code&gt; ย่อมาจาก &lt;strong&gt;signal&lt;/strong&gt; คือการส่งสัญญาณไปควบคุม Nginx Master Process ที่กำลังทำงานอยู่ครับ&lt;/p&gt;&lt;h3&gt;&lt;strong&gt;คำสั่ง &lt;/strong&gt;&lt;code&gt;nginx -s&lt;/code&gt;&lt;strong&gt; มีอะไรบ้าง&lt;/strong&gt;&lt;/h3&gt;&lt;div&gt;&lt;table&gt;&lt;tbody&gt;&lt;tr&gt;&lt;th&gt;&lt;p&gt;คำสั่ง&lt;/p&gt;&lt;/th&gt;&lt;th&gt;&lt;p&gt;ความหมาย&lt;/p&gt;&lt;/th&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;p&gt;&lt;code&gt;nginx -s reload&lt;/code&gt;&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;โหลด Configuration ใหม่โดยไม่ต้องหยุด Nginx&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;p&gt;&lt;code&gt;nginx -s stop&lt;/code&gt;&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;หยุด Nginx ทันที&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;p&gt;&lt;code&gt;nginx -s quit&lt;/code&gt;&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;หยุด Nginx แบบ Graceful Shutdown รอให้ Request ที่กำลังประมวลผลเสร็จก่อน&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;p&gt;&lt;code&gt;nginx -s reopen&lt;/code&gt;&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;เปิดไฟล์ Log ใหม่ มักใช้กับ Log Rotation&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;Are u sure?&lt;/div&gt;</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title> ประสบการณ์ อัพเกรด codeiginitor project จาก 4.1.4 (php 7) ไป 4.7.6(php 8) ใน  docker container</title><link>http://juuier.blogspot.com/2026/11/codeiginitor-project-414-php-7-476php-8.html</link><author>noreply@blogger.com (juuier)</author><pubDate>Wed, 25 Nov 2026 08:51:36 +0700</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-34115975.post-2273031039575588213</guid><description>&lt;p&gt;&lt;/p&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;&amp;nbsp;ประสบการณ์ อัพเกรด codeiginitor project จาก 4.1.4 (php 7) ไป 4.7.6(php 8) ใน&amp;nbsp; docker container&lt;/li&gt;&lt;li&gt;เวอร์ชั่นที่ patched แล้วทั้ง linux kernel, apache, php&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;- ubuntu 24.04&lt;/p&gt;&lt;p&gt;- compose.yaml&lt;/p&gt;&lt;p&gt;- Dockerfile&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;Step&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;สร้าง container ให้เรียบร้อย โดยตรวจสอบเรื่อง lib ของ php ให้ครบตามที่เคยใช้ ตั้งค่าใน Dockerfile&lt;/li&gt;&lt;li&gt;compose.yaml&amp;nbsp; (ก่อนหน้าใช้นี้ docker-compose.yml เค้าให้เปลี่ยนแต่แบบเดิมก็ยังรันได้)&amp;nbsp;&lt;/li&gt;&lt;li&gt;เรื่องที่ต้องระวังคือ&amp;nbsp; time zone ของ container, php, framework&lt;/li&gt;&lt;li&gt;ตรวจสอบเรื่อง&amp;nbsp; time-zone (compose.yaml, php.ini, codeignitor) และ ตั้งค่า mod_rewrite (compose.yaml)&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;&lt;span style="color: #2b00fe;"&gt;compose.yaml&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: red;"&gt;environment:&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: red;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; TZ: Asia/Bangkok&lt;/span&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;&lt;span style="color: #2b00fe;"&gt;php.ini&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #2b00fe;"&gt;[Date]&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #2b00fe;"&gt;date.timezone = Asia/Bangkok&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: red;"&gt;codeignitor -&amp;gt; app/Config/App.php at line 137&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #800180;"&gt;// public string $appTimezone = 'UTC';&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: red;"&gt;public string $appTimezone = 'Asia/Bangkok';&lt;/span&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;map volume&amp;nbsp; html, php.ini ให้เรียบร้อย&lt;/li&gt;&lt;li&gt;ไปโหลดตัว ci 4.7.6 จากเว็บแบบ manual คับ แตกไฟล์โปรเจคออก&lt;/li&gt;&lt;li&gt;จากนั้น คัดลอก index.php, .htaccess ใน public ออกมา และ ปรับแต่งให้ ปลอดภัย ตั้งค่า FPATH เป็น . แทน ..&lt;/li&gt;&lt;li&gt;&lt;span style="color: #ff00fe;"&gt;คัดลอก assets, upload และ&amp;nbsp; folder ที่ใช้งานมา&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="color: #ff00fe;"&gt;คัดลอกไฟลื app/Config/MyConfig.php และอื่นๆ ถ้ามีที่เราสร้างใหม่&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="color: #ff00fe;"&gt;คัดลอก app/Models/* ที่เราใช้งาน&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="color: #ff00fe;"&gt;คัดลอก app/Controllers/*&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="color: #ff00fe;"&gt;คัดลอก app/Views/*&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="color: #ff00fe;"&gt;กรณีเราใช้ auto route ในโปรเจคเติม ใน&amp;nbsp; ci เวอร์ชั่นนี้เค้าปิดไว้ให้ไป&amp;nbsp;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="color: #ff00fe;"&gt;เปิดโดยไปที่ไฟล์ app/Config/Routing.php บรรทัดประมาณ 97&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;&lt;span style="color: #800180;"&gt;// public bool $autoRoute = false;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: red;"&gt;public bool $autoRoute = true;&lt;/span&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;/p&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;&amp;nbsp;และ เปิดไฟล์ app/Config/Feature.php บรรทัดประมาณ 15&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;&lt;span style="color: #800180;"&gt;// public bool $autoRoutesImproved = true;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: red;"&gt;public bool $autoRoutesImproved = false;&lt;/span&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;เป็นการเปิดใช้งานระบบ Auto Routing (Improved) ซึ่งเป็นระบบการจับคู่ URL กับ Controller และ Method อัตโนมัติเวอร์ชันปรับปรุงใหม่ที่ปลอดภัยและมีระเบียบมากกว่าแบบดั้งเดิม (Legacy)&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;&lt;span style="color: #2b00fe;"&gt;getIndex() -&amp;gt; รองรับเฉพาะ GET /controller&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #2b00fe;"&gt;postCreate() -&amp;gt; รองรับเฉพาะ POST /controller/create&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #2b00fe;"&gt;putUpdate($id) -&amp;gt; รองรับเฉพาะ PUT /controller/update/1&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #2b00fe;"&gt;deleteItem($id) -&amp;gt; รองรับเฉพาะ DELETE /controller/item/1&lt;/span&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;เปิดสิทธิ์ ึ707 wriable ตั้งค่า .env และตรวจสอบ .htaccess ให้รัดกุด&lt;/li&gt;&lt;li&gt;สุดท้ายรันโปรเจค ตรวจสอบ ใช้งานได้จริง ส่วนมาก ถ้าเขียนมาก่อนหน้านี้ไม่รัดกุม จะติดปัญหาเรื่อง undefine variable เค้าแนะนำให้ใช้ $par = $var_null ?? ''; รองรับ php 7 ขึ้นไปอยู่แล้ว&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;Are u sure?&lt;/div&gt;</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>ติดตั้ง PHP 8.5 CLI (ล่าสุด) บน Ubuntu 24.04 ที่มี  PHP 8.3 อยู่ก่อนแล้ว โดยไม่ต้องถอนอันเดิมออก</title><link>http://juuier.blogspot.com/2026/11/php-85-cli-ubuntu-2404-php-83.html</link><author>noreply@blogger.com (juuier)</author><pubDate>Tue, 24 Nov 2026 19:43:39 +0700</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-34115975.post-266651724683106551</guid><description>&lt;p&gt;Ref: OpenAI&amp;nbsp;&lt;/p&gt;&lt;p&gt;### ติดตั้ง PHP 8.5 CLI บน Ubuntu 24.04 ที่มี&amp;nbsp; PHP 8.3 อยู่ก่อนแล้ว โดยไม่ต้องถอนอันเดิมออก&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;Ubuntu 24.04 มี PHP 8.3 ในคลังมาตรฐาน สำหรับ PHP 8.5 ให้ใช้คลังแพ็กเกจภายนอกของ Surý ที่ packages.sury.org โดย PPA เดิม ppa:ondrej/php ถูกทำเครื่องหมาย deprecated แล้ว คำสั่งนี้จะติดตั้งรุ่นที่ APT เลือกจากคลัง ซึ่งอาจใหม่กว่า 8.5.12 โดย PHP 8.5.13 เป็นรุ่นแก้ไขความปลอดภัยที่ออกถัดมาแล้วครับ Ubuntu Packages · Surý repository setup · PHP 8.5.13&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;&lt;span style="color: red;"&gt;$ sudo apt update&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #2b00fe;"&gt;$ sudo apt install ca-certificates curl&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: red;"&gt;$ curl -fsSL https://packages.sury.org/debsuryorg-archive-keyring.deb \&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: red;"&gt;&amp;nbsp; -o /tmp/debsuryorg-archive-keyring.deb&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #2b00fe;"&gt;$ sudo dpkg -i /tmp/debsuryorg-archive-keyring.deb&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: red;"&gt;$ echo 'deb [signed-by=/usr/share/keyrings/debsuryorg-archive-keyring.gpg] https://packages.sury.org/php/ noble main' \&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: red;"&gt;&amp;nbsp; | sudo tee /etc/apt/sources.list.d/sury-php.list&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: red;"&gt;$ sudo apt update&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #2b00fe;"&gt;$ apt-cache policy php8.5-cli&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: red;"&gt;$ sudo apt install php8.5-cli&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #2b00fe;"&gt;$ php8.5 -v&lt;/span&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;ถ้าต้องการให้ php บนเครื่องเรียก PHP 8.5 ให้เลือก /usr/bin/php8.5 จากคำสั่งนี้ ภายหลังใช้คำสั่งเดิมเลือก /usr/bin/php8.3 กลับได้ครับ&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;&lt;span style="color: red;"&gt;$ sudo update-alternatives --config php&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #2b00fe;"&gt;$ php -v&lt;/span&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;Are u sure?&lt;/div&gt;</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>Update apache config and usage new value in Docker containner running</title><link>http://juuier.blogspot.com/2026/11/update-apache-config-and-usage-new.html</link><author>noreply@blogger.com (juuier)</author><pubDate>Thu, 12 Nov 2026 10:06:56 +0700</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-34115975.post-6498801286685124355</guid><description>&lt;p&gt;Related:&amp;nbsp;&lt;a href="https://juuier.blogspot.com/2026/11/security-config-apache-php-container.html"&gt;https://juuier.blogspot.com/2026/11/security-config-apache-php-container.html&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;จากกระทู้ปรับค่าแสดงผลเมื่อไม่พบหน้าที่เรียก path url&lt;/li&gt;&lt;li&gt;เราจะปรับให้เรียกใช้ 404.html คับ&lt;/li&gt;&lt;li&gt;apache-security.conf&lt;/li&gt;&lt;/ul&gt;&lt;blockquote&gt;&lt;span style="color: #2b00fe;"&gt;# เปลี่ยนข้อความสำหรับ URL ที่ไม่มีอยู่ โดยยังตอบ HTTP 404&lt;br /&gt;# ErrorDocument 404 &lt;/span&gt;&lt;span style="color: red;"&gt;"Not Found"&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #2b00fe;"&gt;ErrorDocument 404 &lt;/span&gt;&lt;span style="color: red;"&gt;/errors/404.html&lt;/span&gt;&lt;/blockquote&gt;&lt;div&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;สร้างไฟล์ 404.html ไว้ตามพาธที่กำหนด และใส่รูปแบบแสดงตามต้องการ&lt;/li&gt;&lt;li&gt;จากนั้นสั่ง&lt;/li&gt;&lt;li&gt;ทดสอบคอนฟิก ไวยากรณ์ ถูกต้องหรือไม่&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div&gt;&lt;blockquote&gt;&lt;span style="color: red;"&gt;$ docker compose exec &lt;/span&gt;&lt;span style="color: #2b00fe;"&gt;container_name&lt;/span&gt;&lt;span style="color: red;"&gt; apache2ctl configtest&lt;/span&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;div&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;ถ้า Syntax OK ก็สั่ง restart apache ใน container ได้เลย&lt;/li&gt;&lt;li&gt;คำสั่ง graceful จะโหลดค่าใหม่โดยรอให้คำขอเดิมทำงานเสร็จ ไม่ต้อง build image ใหม่ครับ จากนั้นลองเปิด URL ที่ไม่มีอยู่เพื่อทดสอบหน้า 404 ได้เลย&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div&gt;&lt;blockquote&gt;&lt;span style="color: red;"&gt;$ docker compose exec&amp;nbsp;&lt;/span&gt;&lt;span style="color: #2b00fe;"&gt;container_name&lt;/span&gt;&lt;span style="color: red;"&gt;&amp;nbsp;apache2ctl graceful&lt;/span&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;Are u sure?&lt;/div&gt;</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>อัพเดท security config apache + php container ด้วย docker compose โดยอัพเดทแบบ ใช้งานต่อได้ทันที</title><link>http://juuier.blogspot.com/2026/11/security-config-apache-php-container.html</link><author>noreply@blogger.com (juuier)</author><pubDate>Wed, 11 Nov 2026 10:33:10 +0700</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-34115975.post-4545891167142841922</guid><description>&lt;p&gt;ประเด็นคือ จะเพิ่มคอนฟิกเรื่อง security ใน contianer ที่รันอยู่แล้วเป็น apache + php 7&lt;/p&gt;&lt;p&gt;&lt;b&gt;โดย Codex แนะนำ&lt;/b&gt;&lt;/p&gt;&lt;p&gt;1. สร้างไฟล์ &lt;span style="color: red;"&gt;apache-security.conf&lt;/span&gt; ในโฟลเดอร์เดียวกับ docker-compose.yml:&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;&lt;span style="color: #2b00fe;"&gt;ServerTokens Prod&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #2b00fe;"&gt;ServerSignature Off&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #2b00fe;"&gt;# เปลี่ยนข้อความสำหรับ URL ที่ไม่มีอยู่ โดยยังตอบ HTTP 404&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #2b00fe;"&gt;ErrorDocument 404 "Not Found"&lt;/span&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;แต่ละค่าทำหน้าที่ดังนี้:&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;ServerTokens Prod ซ่อนเวอร์ชันและระบบปฏิบัติการใน response header เหลือเพียง Server: Apache&lt;/li&gt;&lt;li&gt;ServerSignature Off ลบบรรทัด Apache/2.X.YY (Distro Name) Server at ... ด้านล่างหน้า error&lt;/li&gt;&lt;li&gt;ErrorDocument 404 เปลี่ยนหน้า 404 ให้แสดงข้อความสั้น ๆ ตามที่กำหนด&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;อ้างอิง เอกสารการตั้งค่า Apache&lt;/p&gt;&lt;p&gt;2. เพิ่ม volume ใน service www_myweb โดยเก็บรายการเดิมไว้:&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp;&lt;span style="color: #2b00fe;"&gt; volumes:&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #2b00fe;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; - ./html:/var/www/html&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #2b00fe;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; - ./php.ini:/usr/local/etc/php/php.ini&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #2b00fe;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span style="color: red;"&gt; &lt;/span&gt;&lt;span style="color: #ff00fe;"&gt;- ./apache-security.conf:/etc/apache2/conf-enabled/zz-security.conf:ro&lt;/span&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;ชื่อ zz-security.conf ช่วยให้โหลดหลังไฟล์ security.conf ปกติของ Debian และ :ro กำหนดให้ container อ่านไฟล์ได้อย่างเดียว&lt;/p&gt;&lt;p&gt;3. ตรวจสอบและนำค่าไปใช้:&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;&lt;span style="color: red;"&gt;$ docker compose config --quiet&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: red;"&gt;$ docker compose up -d --no-deps --force-recreate www_myweb&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: red;"&gt;$ docker compose exec www_myweb apache2ctl -t&lt;/span&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;การ recreate จะทำให้เว็บหยุดช่วงสั้น ๆ ครับ หากตรวจสอบสำเร็จควรเห็น Syntax OK&lt;/p&gt;&lt;span&gt;&lt;a name='more'&gt;&lt;/a&gt;&lt;/span&gt;&lt;p&gt;&lt;b&gt;เพิ่มเติมโดย deepseek&lt;/b&gt;&lt;/p&gt;&lt;br /&gt;ทั้ง 3 คำสั่งนี้เป็น pattern ที่ใช้บ่อยสำหรับ ตรวจสอบและโหลด Apache config ใหม่ภายใน Docker Compose อย่างปลอดภัย มาดูทีละคำสั่งครับ&lt;br /&gt;1. docker compose config --quiet&lt;br /&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;ตรวจสอบความถูกต้อง ของไฟล์ docker-compose.yml&lt;/li&gt;&lt;li&gt;--quiet = ไม่แสดงผลลัพธ์ออกมา จะ error (exit code ≠ 0) ก็ต่อเมื่อไฟล์ผิด เช่น YAML ผิดรูป, ตัวแปรไม่ได้ประกาศ, ไฟล์ที่อ้างใน env_file/configs หาไม่เจอ&lt;/li&gt;&lt;li&gt;ใช้เป็น pre-flight check ก่อนทำอะไรที่เสี่ยง&lt;/li&gt;&lt;/ul&gt;2. docker compose up -d --no-deps --force-recreate www_myweb&lt;br /&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;สั่งให้ service www_myweb ทำงาน แค่ตัวเดียว&lt;/li&gt;&lt;li&gt;-d = รันแบบ background (detached)&lt;/li&gt;&lt;li&gt;--no-deps = ไม่ต้องไป start service ที่มันพึ่งพา (เช่น db, redis)&lt;/li&gt;&lt;li&gt;--force-recreate = ลบ container เก่าแล้วสร้างใหม่ แม้จะไม่มีอะไรเปลี่ยน&lt;/li&gt;&lt;li&gt;⚠️ หมายเหตุ: คำสั่งนี้ สร้าง container ใหม่ → config ที่เพิ่งแก้จะถูกโหลดใหม่ แต่ ข้อมูลที่เขียนใน writable layer จะหาย (ยกเว้น named volume)&lt;/li&gt;&lt;/ul&gt;3. docker compose exec www_myweb apache2ctl -t&lt;br /&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;รัน apache2ctl -t ข้างใน container ที่กำลังรันอยู่ เพื่อ ตรวจ syntax ของ Apache config&lt;/li&gt;&lt;li&gt;ถ้า httpd.conf/apache2.conf หรือ vhost มี syntax ผิด จะฟ้อง error ทันที&lt;/li&gt;&lt;/ul&gt;⚠️ ข้อควรระวัง: ตอนรันคำสั่งนี้ container ขึ้นมาแล้ว ถ้า config พังหนัก ๆ container อาจ crash-loop ทำให้ exec ฟ้อง "container is not running" → ดังนั้นใน workflow ที่ดีควร ตรวจ syntax ก่อน recreate&lt;br /&gt;&lt;br /&gt;&lt;b&gt;ลำดับที่แนะนำ (ปลอดภัยกว่า)&lt;/b&gt;&lt;br /&gt;ลำดับปัจจุบันตรวจ หลัง recreate ซึ่งถ้า config ผิด เว็บจะล่มทันที Pattern ที่ปลอดภัยกว่าคือ:&lt;br /&gt;&lt;div&gt;# 1. ตรวจไฟล์ compose&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;span style="color: red;"&gt;$ docker compose config --quiet&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;# 2. ตรวจ syntax Apache ก่อน recreate&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;span style="color: red;"&gt;$ docker compose exec www_myweb apache2ctl -t&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;# 3. ผ่านแล้วค่อย recreate&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;span style="color: red;"&gt;$ docker compose up -d --no-deps --force-recreate www_myweb&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;Are u sure?&lt;/div&gt;</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>Create private key authen on Windows 11</title><link>http://juuier.blogspot.com/2026/11/create-private-key-authen-on-windows-11.html</link><author>noreply@blogger.com (juuier)</author><pubDate>Sat, 7 Nov 2026 18:47:27 +0700</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-34115975.post-565344495943856341</guid><description>&lt;p&gt;&lt;/p&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;Client Windows 11&lt;/li&gt;&lt;li&gt;Server Ubuntu, macOS&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;Step&lt;/b&gt;&lt;/p&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt; เปิด power shell แล้วพิมพ์คำสั่งดังนี้สร้าง key&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;span face="Arial, Tahoma, Helvetica, FreeSans, sans-serif" style="background-color: white; color: red; font-size: 13.2px;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;span face="Arial, Tahoma, Helvetica, FreeSans, sans-serif" style="background-color: white; color: red; font-size: 13.2px;"&gt;&amp;gt; ssh-keygen -t &lt;/span&gt;&lt;span face="Arial, Tahoma, Helvetica, FreeSans, sans-serif" style="background-color: white; font-size: 13.2px;"&gt;&lt;span style="color: #2b00fe;"&gt;ed25519&lt;/span&gt;&lt;/span&gt;&lt;span face="Arial, Tahoma, Helvetica, FreeSans, sans-serif" style="background-color: white; color: red; font-size: 13.2px;"&gt; -C "your_email@example.com"&lt;/span&gt;&lt;/blockquote&gt;&lt;span face="Arial, Tahoma, Helvetica, FreeSans, sans-serif" style="background-color: white; color: red; font-size: 13.2px;"&gt;&lt;/span&gt;&lt;p&gt;&lt;/p&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;คัดลอก key ไปยัง server ให้พร้อมใช้กับ client ของเรา&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;span style="background-color: white; font-size: 13.2px;"&gt;&lt;span face="Arial, Tahoma, Helvetica, FreeSans, sans-serif" style="color: red;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;span face="Arial, Tahoma, Helvetica, FreeSans, sans-serif" style="color: red;"&gt;&amp;gt; Get-Content &lt;/span&gt;&lt;span face="Arial, Tahoma, Helvetica, FreeSans, sans-serif" style="color: #2b00fe;"&gt;C:\Users\myname\.ssh\id_ed25519.pub&lt;/span&gt;&lt;span face="Arial, Tahoma, Helvetica, FreeSans, sans-serif" style="color: red;"&gt; | ssh &lt;/span&gt;&lt;span face="Arial, Tahoma, Helvetica, FreeSans, sans-serif" style="color: #2b00fe;"&gt;remote_user&lt;/span&gt;&lt;span face="Arial, Tahoma, Helvetica, FreeSans, sans-serif" style="color: red;"&gt;@&lt;/span&gt;&lt;span face="Arial, Tahoma, Helvetica, FreeSans, sans-serif" style="color: #2b00fe;"&gt;server_ip&lt;/span&gt;&lt;span face="Arial, Tahoma, Helvetica, FreeSans, sans-serif" style="color: red;"&gt; "mkdir -p ~/.ssh &amp;amp;&amp;amp; chmod 700 ~/.ssh &amp;amp;&amp;amp; cat &amp;gt;&amp;gt; ~/.ssh/authorized_keys &amp;amp;&amp;amp; chmod 600 ~/.ssh/authorized_keys"&lt;/span&gt;&lt;/blockquote&gt;&lt;p&gt;Related:&amp;nbsp;https://juuier.blogspot.com/2026/02/private-key-for-remote-ssh-server.html&lt;/p&gt;&lt;p&gt;Ref: gemini&amp;nbsp;&lt;/p&gt;&lt;span face="Arial, Tahoma, Helvetica, FreeSans, sans-serif" style="color: red;"&gt;&lt;/span&gt;&lt;p&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;Are u sure?&lt;/div&gt;</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>ตรวจสอบและ upgrade linux kernel Ubuntu 24.04 เพื่อ patch security</title><link>http://juuier.blogspot.com/2026/11/upgrade-linux-kernel-ubuntu-2404-patch.html</link><author>noreply@blogger.com (juuier)</author><pubDate>Fri, 6 Nov 2026 20:16:48 +0700</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-34115975.post-1019373565459034456</guid><description>&lt;p&gt;Ref: gemini&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;ตรวจสอบ CVE กรณี enabled pro support extend&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;span style="color: red;"&gt;$ pro fix CVE-2026-98432&lt;/span&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;ดู kernel ปัจจุบัน&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: red;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;span style="color: red;"&gt;$ uname -r&lt;/span&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;อัพเดทและอัพเกรด kernel&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: red;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;span style="color: red;"&gt;$&amp;nbsp;sudo apt update&lt;/span&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;span style="color: red;"&gt;$ sudo apt --only-upgrade install linux-image-generic linux-headers-generic -y&lt;/span&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;เมื่อผู้ใช้เบาบาง reboot เครื่องเพื่อใช้ kernel ที่พึ่ง download มาใหม่ได้เลย&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: red;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;span style="color: red;"&gt;$ sudo reboot&lt;/span&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;หรือ จะตั้งเวลา reboot ตอนคนใช้น้อยๆ ตอนตีสอง&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;span style="color: red;"&gt;$ sudo shutdown -r 02:00 "&lt;/span&gt;&lt;span style="color: #2b00fe;"&gt;Rebooting to switch to kernel 6.8.0-149&lt;/span&gt;&lt;span style="color: red;"&gt;"&lt;/span&gt;&lt;/blockquote&gt;&lt;p&gt;เพิ่มเติม&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;ดูสถานะ ว่าต่อ pro extension หรือยัง&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;span style="color: red;"&gt;$ pro status&amp;nbsp;&lt;/span&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;/p&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;ดูสถานะว่า token ถูกใช้ไปกี่เครื่องแล้ว&lt;/li&gt;&lt;li&gt;https://ubuntu.com/pro/dashboard&amp;nbsp;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;Are u sure?&lt;/div&gt;</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>คำสั่งสำหรับตรวจสอบ จำนวน client ที่เชื่อมต่อผ่าน port ที่ระบุอยู่ Ubuntu</title><link>http://juuier.blogspot.com/2026/11/client-port-ubuntu.html</link><author>noreply@blogger.com (juuier)</author><pubDate>Fri, 6 Nov 2026 11:37:40 +0700</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-34115975.post-3987306735479721731</guid><description>&lt;p&gt;Ref: gemini&amp;nbsp;&lt;/p&gt;&lt;p&gt;$ &lt;span style="color: red;"&gt;ss -ant | grep &lt;span class="hljs-string"&gt;':80\|:443'&lt;/span&gt; | grep ESTAB | wc -l&lt;/span&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;Are u sure?&lt;/div&gt;</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>เปิดใช้งาน Color picker ที่ build-in ใน Visual code สำหรับ PHP (macOS)</title><link>http://juuier.blogspot.com/2026/11/color-picker-build-in-visual-code-php.html</link><author>noreply@blogger.com (juuier)</author><pubDate>Wed, 4 Nov 2026 10:38:36 +0700</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-34115975.post-7881153179088185366</guid><description>&lt;p&gt;&lt;/p&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;&lt;span style="color: #2b00fe;"&gt;Shift + Command + P&lt;/span&gt;&lt;/li&gt;&lt;li&gt;มันจะเปิด command palete&lt;/li&gt;&lt;li&gt;พิมพ์ &lt;span style="color: #2b00fe;"&gt;Preferences: Open User Settings&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjMGcZ5vy2JXPRaAnuoWcO2YKjIVYvpfZhMYfCN9dnaGFsudji8Wf03YAXAjTCbsWn2xnDh5Q9QSBtB_tpaOq9ajwSbLk75ZgRrQXrFmZ1IvyBO2UFgIGAhzh0gwn4QfDnUQ9HSO78hyphenhyphenBSroXEpCXGm6a7Q7LhkDC7KsWDeNGUW4TZFwql15xeO/s1600/image.png" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img alt="" data-original-height="130" data-original-width="611" height="68" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjMGcZ5vy2JXPRaAnuoWcO2YKjIVYvpfZhMYfCN9dnaGFsudji8Wf03YAXAjTCbsWn2xnDh5Q9QSBtB_tpaOq9ajwSbLk75ZgRrQXrFmZ1IvyBO2UFgIGAhzh0gwn4QfDnUQ9HSO78hyphenhyphenBSroXEpCXGm6a7Q7LhkDC7KsWDeNGUW4TZFwql15xeO/s1600/image.png" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;ช่องค้นหา setting พิมพ์ color picker&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiuyPehu_m9KxKQ6Qn2nenD2KGAf_vsCeLy9hJ8-pYNhCFWMvo-qW623YCZ6Q6k8KNULvxypG1iutNSjA-59dl3B0An7pKw3k66eaq83dmElfm4GS7ioFPDZmQxwG7-DvubMDFFjcdZx8lZz5JslB2xakC2jGbDNdZ5uA2s1OcFO9zc1jl5Nyj4/s1600/image.png" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img alt="" data-original-height="223" data-original-width="1139" height="63" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiuyPehu_m9KxKQ6Qn2nenD2KGAf_vsCeLy9hJ8-pYNhCFWMvo-qW623YCZ6Q6k8KNULvxypG1iutNSjA-59dl3B0An7pKw3k66eaq83dmElfm4GS7ioFPDZmQxwG7-DvubMDFFjcdZx8lZz5JslB2xakC2jGbDNdZ5uA2s1OcFO9zc1jl5Nyj4/s1600/image.png" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;เลือก Edit in settings.json&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiV_WTsfta_AdHGsPm5hhPBkv2X0lyux6sYA9WUBKVwPEzUg6Eaggv87tGA-uFNMkhBCo_dr5tvcsutxaj7K5LQRYhmb_agEHNxaAj0NHSbapZ5ZR4FUVzbEHW3V5FhNniTQ81BJBmUFge3eR4_B8ryPdSv9C73q8O6Ae4JhntQcLb_ppMdOPLr/s1600/image.png" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img alt="" data-original-height="623" data-original-width="729" height="240" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiV_WTsfta_AdHGsPm5hhPBkv2X0lyux6sYA9WUBKVwPEzUg6Eaggv87tGA-uFNMkhBCo_dr5tvcsutxaj7K5LQRYhmb_agEHNxaAj0NHSbapZ5ZR4FUVzbEHW3V5FhNniTQ81BJBmUFge3eR4_B8ryPdSv9C73q8O6Ae4JhntQcLb_ppMdOPLr/s1600/image.png" width="281" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;เพิ่ม php เข้าไป หรือ ภาษาอื่นๆ เข้าไปเพื่อให้สามารถใช้ color picker&amp;nbsp;&lt;/li&gt;&lt;li&gt;บันทึกให้เรียบร้อย ปิดและเปิด vscode ใหม่คับ&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;Are u sure?&lt;/div&gt;</description><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjMGcZ5vy2JXPRaAnuoWcO2YKjIVYvpfZhMYfCN9dnaGFsudji8Wf03YAXAjTCbsWn2xnDh5Q9QSBtB_tpaOq9ajwSbLk75ZgRrQXrFmZ1IvyBO2UFgIGAhzh0gwn4QfDnUQ9HSO78hyphenhyphenBSroXEpCXGm6a7Q7LhkDC7KsWDeNGUW4TZFwql15xeO/s72-c/image.png" width="72"/><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>Build and push docker image to docker repository</title><link>http://juuier.blogspot.com/2026/10/build-and-push-docker-image-to-docker.html</link><author>noreply@blogger.com (juuier)</author><pubDate>Sun, 25 Oct 2026 16:22:04 +0700</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-34115975.post-5340191675511780051</guid><description>&lt;p&gt;&lt;b&gt;&amp;nbsp;Ref:&amp;nbsp;https://gemini.google.com/app/4a431e338a0c26c2&lt;/b&gt;&lt;/p&gt;&lt;div _ngcontent-ng-c3219552501="" aria-busy="false" aria-live="polite" class="markdown markdown-main-panel md-content enable-luminous-fast-follows enable-updated-hr-color stronger tutor-markdown-rendering" dir="ltr" id="model-response-message-contentr_fa4d90a8af2635a5" inline-copy-host="" style="--animation-duration: 400ms; --fade-animation-function: ease-out; animation: auto ease 0s 1 normal none running none; appearance: none; background-attachment: scroll; background-clip: border-box; background-image: none; background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto; border: 0px rgb(31, 31, 31); clear: none; clip: auto; columns: auto; contain: none; container: none; content: normal; cursor: auto; cx: 0px; cy: 0px; d: none; direction: ltr; fill: rgb(0, 0, 0); filter: none; flex-direction: row; flex: 0 1 auto; float: none; gap: normal; hyphens: manual; inset: auto; interactivity: auto; isolation: auto; line-height: 1.15; margin-bottom: 0px; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; margin: 0px; marker: none; mask-clip: border-box; mask-composite: add; mask-image: none; mask-mode: match-source; mask-origin: border-box; mask-repeat: repeat; mask-size: auto; mask: none; offset: normal; opacity: 1; order: 0; outline: rgb(31, 31, 31) none 2.4px; overlay: none; padding: 0px; page: auto; perspective: none; position: static; quotes: auto; r: 0px; resize: none; rotate: none; rule: 2.4px rgb(31, 31, 31); rx: auto; ry: auto; scale: none; speak: normal; stroke: none; transform: none; transition: all; translate: none; visibility: visible; x: 0px; y: 0px; zoom: 1;"&gt;&lt;div style="animation: auto ease 0s 1 normal none running none; appearance: none; background-attachment: scroll; background-clip: border-box; background-image: none; background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto; border: 0px rgb(31, 31, 31); clear: none; clip: auto; color: #1f1f1f; columns: auto; contain: none; container: none; content: normal; cursor: auto; cx: 0px; cy: 0px; d: none; direction: ltr; fill: rgb(0, 0, 0); filter: none; flex-direction: row; flex: 0 1 auto; float: none; font-family: &amp;quot;Google Sans Text&amp;quot;, sans-serif; gap: normal; hyphens: manual; inset: auto; interactivity: auto; isolation: auto; line-height: 1.15; margin-bottom: 0px; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; margin: 0px; marker: none; mask-clip: border-box; mask-composite: add; mask-image: none; mask-mode: match-source; mask-origin: border-box; mask-repeat: repeat; mask-size: auto; mask: none; offset: normal; opacity: 1; order: 0; outline: rgb(31, 31, 31) none 2.4px; overlay: none; padding: 0px; page: auto; perspective: none; position: static; quotes: auto; r: 0px; resize: none; rotate: none; rule: 2.4px rgb(31, 31, 31); rx: auto; ry: auto; scale: none; speak: normal; stroke: none; transform: none; transition: all; translate: none; visibility: visible; x: 0px; y: 0px; zoom: 1;"&gt;การนำ Docker Image ที่ build เรียบร้อยแล้วไปเก็บไว้ใน Docker Registry (เช่น Docker Hub) เพื่อดึงกลับมาใช้ในอนาคต มีขั้นตอนหลัก 4 ขั้นตอน ดังนี้ครับ:&lt;/div&gt;&lt;br /&gt;&lt;h3 data-path-to-node="2" style="animation: auto ease 0s 1 normal none running none; appearance: none; background-attachment: scroll; background-clip: border-box; background-image: none; background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto; border: 0px rgb(31, 31, 31); clear: none; clip: auto; color: #1f1f1f; columns: auto; contain: none; container: none; content: normal; cursor: auto; cx: 0px; cy: 0px; d: none; direction: ltr; fill: rgb(0, 0, 0); filter: none; flex-direction: row; flex: 0 1 auto; float: none; font-family: &amp;quot;Google Sans&amp;quot;, sans-serif; gap: normal; hyphens: manual; inset: auto; interactivity: auto; isolation: auto; line-height: 1.15; margin-bottom: 0px; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; margin: 0px; marker: none; mask-clip: border-box; mask-composite: add; mask-image: none; mask-mode: match-source; mask-origin: border-box; mask-repeat: repeat; mask-size: auto; mask: none; offset: normal; opacity: 1; order: 0; outline: rgb(31, 31, 31) none 2.4px; overlay: none; padding: 0px; page: auto; perspective: none; position: static; quotes: auto; r: 0px; resize: none; rotate: none; rule: 2.4px rgb(31, 31, 31); rx: auto; ry: auto; scale: none; speak: normal; stroke: none; transform: none; transition: all; translate: none; visibility: visible; x: 0px; y: 0px; zoom: 1;"&gt;1. เข้าสู่ระบบ Docker Hub ผ่าน Terminal&lt;/h3&gt;&lt;div style="animation: auto ease 0s 1 normal none running none; appearance: none; background-attachment: scroll; background-clip: border-box; background-image: none; background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto; border: 0px rgb(31, 31, 31); clear: none; clip: auto; color: #1f1f1f; columns: auto; contain: none; container: none; content: normal; cursor: auto; cx: 0px; cy: 0px; d: none; direction: ltr; fill: rgb(0, 0, 0); filter: none; flex-direction: row; flex: 0 1 auto; float: none; font-family: &amp;quot;Google Sans Text&amp;quot;, sans-serif; gap: normal; hyphens: manual; inset: auto; interactivity: auto; isolation: auto; line-height: 1.15; margin-bottom: 0px; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; margin: 0px; marker: none; mask-clip: border-box; mask-composite: add; mask-image: none; mask-mode: match-source; mask-origin: border-box; mask-repeat: repeat; mask-size: auto; mask: none; offset: normal; opacity: 1; order: 0; outline: rgb(31, 31, 31) none 2.4px; overlay: none; padding: 0px; page: auto; perspective: none; position: static; quotes: auto; r: 0px; resize: none; rotate: none; rule: 2.4px rgb(31, 31, 31); rx: auto; ry: auto; scale: none; speak: normal; stroke: none; transform: none; transition: all; translate: none; visibility: visible; x: 0px; y: 0px; zoom: 1;"&gt;ก่อนอัปโหลด ต้องล็อกอินเข้าบัญชี Docker Hub ของคุณก่อน:&lt;/div&gt;&lt;br /&gt;&lt;span style="color: red;"&gt;docker login&lt;/span&gt;&lt;/div&gt;&lt;div _ngcontent-ng-c3219552501="" aria-busy="false" aria-live="polite" class="markdown markdown-main-panel md-content enable-luminous-fast-follows enable-updated-hr-color stronger tutor-markdown-rendering" dir="ltr" id="model-response-message-contentr_fa4d90a8af2635a5" inline-copy-host="" style="--animation-duration: 400ms; --fade-animation-function: ease-out; animation: auto ease 0s 1 normal none running none; appearance: none; background-attachment: scroll; background-clip: border-box; background-image: none; background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto; border: 0px rgb(31, 31, 31); clear: none; clip: auto; columns: auto; contain: none; container: none; content: normal; cursor: auto; cx: 0px; cy: 0px; d: none; direction: ltr; fill: rgb(0, 0, 0); filter: none; flex-direction: row; flex: 0 1 auto; float: none; gap: normal; hyphens: manual; inset: auto; interactivity: auto; isolation: auto; line-height: 1.15; margin-bottom: 0px; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; margin: 0px; marker: none; mask-clip: border-box; mask-composite: add; mask-image: none; mask-mode: match-source; mask-origin: border-box; mask-repeat: repeat; mask-size: auto; mask: none; offset: normal; opacity: 1; order: 0; outline: rgb(31, 31, 31) none 2.4px; overlay: none; padding: 0px; page: auto; perspective: none; position: static; quotes: auto; r: 0px; resize: none; rotate: none; rule: 2.4px rgb(31, 31, 31); rx: auto; ry: auto; scale: none; speak: normal; stroke: none; transform: none; transition: all; translate: none; visibility: visible; x: 0px; y: 0px; zoom: 1;"&gt;&lt;span style="color: red;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;div style="animation: auto ease 0s 1 normal none running none; appearance: none; background-attachment: scroll; background-clip: border-box; background-image: none; background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto; border: 0px rgb(31, 31, 31); clear: none; clip: auto; color: #1f1f1f; columns: auto; contain: none; container: none; content: normal; cursor: auto; cx: 0px; cy: 0px; d: none; direction: ltr; fill: rgb(0, 0, 0); filter: none; flex-direction: row; flex: 0 1 auto; float: none; font-family: &amp;quot;Google Sans Text&amp;quot;, sans-serif; gap: normal; hyphens: manual; inset: auto; interactivity: auto; isolation: auto; line-height: 1.15; margin-bottom: 0px; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; margin: 0px; marker: none; mask-clip: border-box; mask-composite: add; mask-image: none; mask-mode: match-source; mask-origin: border-box; mask-repeat: repeat; mask-size: auto; mask: none; offset: normal; opacity: 1; order: 0; outline: rgb(31, 31, 31) none 2.4px; overlay: none; padding: 0px; page: auto; perspective: none; position: static; quotes: auto; r: 0px; resize: none; rotate: none; rule: 2.4px rgb(31, 31, 31); rx: auto; ry: auto; scale: none; speak: normal; stroke: none; transform: none; transition: all; translate: none; visibility: visible; x: 0px; y: 0px; zoom: 1;"&gt;&lt;i data-index-in-node="0" data-path-to-node="5" style="animation: auto ease 0s 1 normal none running none; appearance: none; background-attachment: scroll; background-clip: border-box; background-image: none; background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto; border: 0px rgb(31, 31, 31); clear: none; clip: auto; columns: auto; contain: none; container: none; content: normal; cursor: auto; cx: 0px; cy: 0px; d: none; direction: ltr; display: inline; fill: rgb(0, 0, 0); filter: none; flex-direction: row; flex: 0 1 auto; float: none; gap: normal; hyphens: manual; inset: auto; interactivity: auto; isolation: auto; line-height: 1.15; margin-bottom: 0px; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; margin: 0px; marker: none; mask-clip: border-box; mask-composite: add; mask-image: none; mask-mode: match-source; mask-origin: border-box; mask-repeat: repeat; mask-size: auto; mask: none; offset: normal; opacity: 1; order: 0; outline: rgb(31, 31, 31) none 2.4px; overlay: none; padding: 0px; page: auto; perspective: none; position: static; quotes: auto; r: 0px; resize: none; rotate: none; rule: 2.4px rgb(31, 31, 31); rx: auto; ry: auto; scale: none; speak: normal; stroke: none; transform: none; transition: all; translate: none; visibility: visible; x: 0px; y: 0px; zoom: 1;"&gt;ระบบจะให้กรอก &lt;b data-index-in-node="14" data-path-to-node="5" style="animation: auto ease 0s 1 normal none running none; appearance: none; background-attachment: scroll; background-clip: border-box; background-image: none; background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto; border: 0px rgb(31, 31, 31); clear: none; clip: auto; columns: auto; contain: none; container: none; content: normal; cursor: auto; cx: 0px; cy: 0px; d: none; direction: ltr; display: inline; fill: rgb(0, 0, 0); filter: none; flex-direction: row; flex: 0 1 auto; float: none; gap: normal; hyphens: manual; inset: auto; interactivity: auto; isolation: auto; line-height: 1.15; margin-bottom: 0px; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; margin: 0px; marker: none; mask-clip: border-box; mask-composite: add; mask-image: none; mask-mode: match-source; mask-origin: border-box; mask-repeat: repeat; mask-size: auto; mask: none; offset: normal; opacity: 1; order: 0; outline: rgb(31, 31, 31) none 2.4px; overlay: none; padding: 0px; page: auto; perspective: none; position: static; quotes: auto; r: 0px; resize: none; rotate: none; rule: 2.4px rgb(31, 31, 31); rx: auto; ry: auto; scale: none; speak: normal; stroke: none; transform: none; transition: all; translate: none; visibility: visible; x: 0px; y: 0px; zoom: 1;"&gt;Username&lt;/b&gt; และ &lt;b data-index-in-node="27" data-path-to-node="5" style="animation: auto ease 0s 1 normal none running none; appearance: none; background-attachment: scroll; background-clip: border-box; background-image: none; background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto; border: 0px rgb(31, 31, 31); clear: none; clip: auto; columns: auto; contain: none; container: none; content: normal; cursor: auto; cx: 0px; cy: 0px; d: none; direction: ltr; display: inline; fill: rgb(0, 0, 0); filter: none; flex-direction: row; flex: 0 1 auto; float: none; gap: normal; hyphens: manual; inset: auto; interactivity: auto; isolation: auto; line-height: 1.15; margin-bottom: 0px; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; margin: 0px; marker: none; mask-clip: border-box; mask-composite: add; mask-image: none; mask-mode: match-source; mask-origin: border-box; mask-repeat: repeat; mask-size: auto; mask: none; offset: normal; opacity: 1; order: 0; outline: rgb(31, 31, 31) none 2.4px; overlay: none; padding: 0px; page: auto; perspective: none; position: static; quotes: auto; r: 0px; resize: none; rotate: none; rule: 2.4px rgb(31, 31, 31); rx: auto; ry: auto; scale: none; speak: normal; stroke: none; transform: none; transition: all; translate: none; visibility: visible; x: 0px; y: 0px; zoom: 1;"&gt;Password&lt;/b&gt; (หรือ Personal Access Token ของ Docker Hub)&lt;/i&gt;&lt;/div&gt;&lt;br /&gt;&lt;h3 data-path-to-node="7" style="animation: auto ease 0s 1 normal none running none; appearance: none; background-attachment: scroll; background-clip: border-box; background-image: none; background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto; border: 0px rgb(31, 31, 31); clear: none; clip: auto; color: #1f1f1f; columns: auto; contain: none; container: none; content: normal; cursor: auto; cx: 0px; cy: 0px; d: none; direction: ltr; fill: rgb(0, 0, 0); filter: none; flex-direction: row; flex: 0 1 auto; float: none; font-family: &amp;quot;Google Sans&amp;quot;, sans-serif; gap: normal; hyphens: manual; inset: auto; interactivity: auto; isolation: auto; line-height: 1.15; margin-bottom: 0px; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; margin: 0px; marker: none; mask-clip: border-box; mask-composite: add; mask-image: none; mask-mode: match-source; mask-origin: border-box; mask-repeat: repeat; mask-size: auto; mask: none; offset: normal; opacity: 1; order: 0; outline: rgb(31, 31, 31) none 2.4px; overlay: none; padding: 0px; page: auto; perspective: none; position: static; quotes: auto; r: 0px; resize: none; rotate: none; rule: 2.4px rgb(31, 31, 31); rx: auto; ry: auto; scale: none; speak: normal; stroke: none; transform: none; transition: all; translate: none; visibility: visible; x: 0px; y: 0px; zoom: 1;"&gt;2. ตั้งชื่อ Tag ให้ตรงกับ Repository บน Docker Hub&lt;/h3&gt;&lt;div style="animation: auto ease 0s 1 normal none running none; appearance: none; background-attachment: scroll; background-clip: border-box; background-image: none; background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto; border: 0px rgb(31, 31, 31); clear: none; clip: auto; color: #1f1f1f; columns: auto; contain: none; container: none; content: normal; cursor: auto; cx: 0px; cy: 0px; d: none; direction: ltr; fill: rgb(0, 0, 0); filter: none; flex-direction: row; flex: 0 1 auto; float: none; font-family: &amp;quot;Google Sans Text&amp;quot;, sans-serif; gap: normal; hyphens: manual; inset: auto; interactivity: auto; isolation: auto; line-height: 1.15; margin-bottom: 0px; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; margin: 0px; marker: none; mask-clip: border-box; mask-composite: add; mask-image: none; mask-mode: match-source; mask-origin: border-box; mask-repeat: repeat; mask-size: auto; mask: none; offset: normal; opacity: 1; order: 0; outline: rgb(31, 31, 31) none 2.4px; overlay: none; padding: 0px; page: auto; perspective: none; position: static; quotes: auto; r: 0px; resize: none; rotate: none; rule: 2.4px rgb(31, 31, 31); rx: auto; ry: auto; scale: none; speak: normal; stroke: none; transform: none; transition: all; translate: none; visibility: visible; x: 0px; y: 0px; zoom: 1;"&gt;Docker กำหนดว่า Image ที่จะ push ขึ้น Docker Hub ได้ ชื่อ Image ต้องขึ้นต้นด้วย &lt;b data-index-in-node="80" data-path-to-node="8" style="animation: auto ease 0s 1 normal none running none; appearance: none; background-attachment: scroll; background-clip: border-box; background-image: none; background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto; border: 0px rgb(31, 31, 31); clear: none; clip: auto; columns: auto; contain: none; container: none; content: normal; cursor: auto; cx: 0px; cy: 0px; d: none; direction: ltr; display: inline; fill: rgb(0, 0, 0); filter: none; flex-direction: row; flex: 0 1 auto; float: none; gap: normal; hyphens: manual; inset: auto; interactivity: auto; isolation: auto; line-height: 1.15; margin-bottom: 0px; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; margin: 0px; marker: none; mask-clip: border-box; mask-composite: add; mask-image: none; mask-mode: match-source; mask-origin: border-box; mask-repeat: repeat; mask-size: auto; mask: none; offset: normal; opacity: 1; order: 0; outline: rgb(31, 31, 31) none 2.4px; overlay: none; padding: 0px; page: auto; perspective: none; position: static; quotes: auto; r: 0px; resize: none; rotate: none; rule: 2.4px rgb(31, 31, 31); rx: auto; ry: auto; scale: none; speak: normal; stroke: none; transform: none; transition: all; translate: none; visibility: visible; x: 0px; y: 0px; zoom: 1;"&gt;Username ของคุณบน Docker Hub&lt;/b&gt; เสมอ&lt;/div&gt;&lt;br /&gt;&lt;div style="animation: auto ease 0s 1 normal none running none; appearance: none; background-attachment: scroll; background-clip: border-box; background-image: none; background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto; border: 0px rgb(31, 31, 31); clear: none; clip: auto; color: #1f1f1f; columns: auto; contain: none; container: none; content: normal; cursor: auto; cx: 0px; cy: 0px; d: none; direction: ltr; fill: rgb(0, 0, 0); filter: none; flex-direction: row; flex: 0 1 auto; float: none; font-family: &amp;quot;Google Sans Text&amp;quot;, sans-serif; gap: normal; hyphens: manual; inset: auto; interactivity: auto; isolation: auto; line-height: 1.15; margin-bottom: 0px; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; margin: 0px; marker: none; mask-clip: border-box; mask-composite: add; mask-image: none; mask-mode: match-source; mask-origin: border-box; mask-repeat: repeat; mask-size: auto; mask: none; offset: normal; opacity: 1; order: 0; outline: rgb(31, 31, 31) none 2.4px; overlay: none; padding: 0px; page: auto; perspective: none; position: static; quotes: auto; r: 0px; resize: none; rotate: none; rule: 2.4px rgb(31, 31, 31); rx: auto; ry: auto; scale: none; speak: normal; stroke: none; transform: none; transition: all; translate: none; visibility: visible; x: 0px; y: 0px; zoom: 1;"&gt;สมมติว่า:&lt;/div&gt;&lt;br /&gt;&lt;ul data-path-to-node="10" style="animation: auto ease 0s 1 normal none running none; appearance: none; background-attachment: scroll; background-clip: border-box; background-image: none; background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto; border: 0px rgb(31, 31, 31); clear: none; clip: auto; columns: auto; contain: none; container: none; content: normal; cursor: auto; cx: 0px; cy: 0px; d: none; direction: ltr; fill: rgb(0, 0, 0); filter: none; flex-direction: row; flex: 0 1 auto; float: none; font-family: &amp;quot;Google Sans Text&amp;quot;, sans-serif; gap: normal; hyphens: manual; inset: auto; interactivity: auto; isolation: auto; line-height: 1.15; margin-bottom: 0px; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; margin: 0px; marker: none; mask-clip: border-box; mask-composite: add; mask-image: none; mask-mode: match-source; mask-origin: border-box; mask-repeat: repeat; mask-size: auto; mask: none; offset: normal; opacity: 1; order: 0; outline: rgb(31, 31, 31) none 2.4px; overlay: none; padding-inline-start: 32px; padding: 0px 0px 0px 3.36px; page: auto; perspective: none; position: static; quotes: auto; r: 0px; resize: none; rotate: none; rule: 2.4px rgb(31, 31, 31); rx: auto; ry: auto; scale: none; speak: normal; stroke: none; transform: none; transition: all; translate: none; visibility: visible; x: 0px; y: 0px; zoom: 1;"&gt;&lt;li style="animation: auto ease 0s 1 normal none running none; appearance: none; background-attachment: scroll; background-clip: border-box; background-image: none; background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto; border: 0px rgb(31, 31, 31); clear: none; clip: auto; columns: auto; contain: none; container: none; content: normal; cursor: auto; cx: 0px; cy: 0px; d: none; direction: ltr; fill: rgb(0, 0, 0); filter: none; flex-direction: row; flex: 0 1 auto; float: none; gap: normal; hyphens: manual; inset: 0px; interactivity: auto; isolation: auto; line-height: 1.15; margin-bottom: 0px; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; margin: 0px; marker: none; mask-clip: border-box; mask-composite: add; mask-image: none; mask-mode: match-source; mask-origin: border-box; mask-repeat: repeat; mask-size: auto; mask: none; offset: normal; opacity: 1; order: 0; outline: rgb(31, 31, 31) none 2.4px; overlay: none; padding: 0px 0px 0px 36px; page: auto; perspective: none; position: relative; quotes: auto; r: 0px; resize: none; rotate: none; rule: 2.4px rgb(31, 31, 31); rx: auto; ry: auto; scale: none; speak: normal; stroke: none; transform: none; transition: all; translate: none; visibility: visible; x: 0px; y: 0px; zoom: 1;"&gt;&lt;div style="animation: auto ease 0s 1 normal none running none; appearance: none; background-attachment: scroll; background-clip: border-box; background-image: none; background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto; border: 0px rgb(31, 31, 31); clear: none; clip: auto; columns: auto; contain: none; container: none; content: normal; cursor: auto; cx: 0px; cy: 0px; d: none; direction: ltr; fill: rgb(0, 0, 0); filter: none; flex-direction: row; flex: 0 1 auto; float: none; gap: normal; hyphens: manual; inset: auto; interactivity: auto; isolation: auto; line-height: 1.15; margin-bottom: 0px; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; margin: 0px; marker: none; mask-clip: border-box; mask-composite: add; mask-image: none; mask-mode: match-source; mask-origin: border-box; mask-repeat: repeat; mask-size: auto; mask: none; offset: normal; opacity: 1; order: 0; outline: rgb(31, 31, 31) none 2.4px; overlay: none; padding: 0px 0px 0px 4px; page: auto; perspective: none; position: static; quotes: auto; r: 0px; resize: none; rotate: none; rule: 2.4px rgb(31, 31, 31); rx: auto; ry: auto; scale: none; speak: normal; stroke: none; transform: none; transition: all; translate: none; visibility: visible; x: 0px; y: 0px; zoom: 1;"&gt;&lt;span style="color: #1f1f1f;"&gt;Image ที่เพิ่ง build ไว้ ตรวจสอบโดย &lt;/span&gt;&lt;span style="color: red;"&gt;docker image ls&lt;/span&gt;&lt;span style="color: #1f1f1f;"&gt; ชื่อ: &lt;/span&gt;&lt;code data-index-in-node="30" data-path-to-node="10,0,0" style="animation: auto ease 0s 1 normal none running none; appearance: none; background: none 0% 0% / auto repeat scroll padding-box border-box rgb(242, 240, 240); border: 0px rgba(0, 0, 0, 0.55); clear: none; clip: auto; columns: auto; contain: none; container: none; content: normal; cursor: auto; cx: 0px; cy: 0px; d: none; direction: ltr; display: inline-block; fill: rgb(0, 0, 0); filter: none; flex-direction: row; flex: 0 1 auto; float: none; font-family: &amp;quot;Google Sans Text&amp;quot;, sans-serif; font-feature-settings: normal; font-kerning: auto; font-language-override: normal; font-optical-sizing: auto; font-size-adjust: none; font-size: 15px; font-stretch: normal; font-variant: normal; font-variation-settings: normal; gap: normal; hyphens: manual; inset: auto; interactivity: auto; isolation: auto; line-height: 1.15; margin-bottom: 0px; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; margin: 0px; marker: none; mask-clip: border-box; mask-composite: add; mask-image: none; mask-mode: match-source; mask-origin: border-box; mask-repeat: repeat; mask-size: auto; mask: none; offset: normal; opacity: 1; order: 0; outline: rgba(0, 0, 0, 0.55) none 2.4px; overlay: none; padding: 4px 6px; page: auto; perspective: none; position: static; quotes: auto; r: 0px; resize: none; rotate: none; rule: 2.4px rgba(0, 0, 0, 0.55); rx: auto; ry: auto; scale: none; speak: normal; stroke: none; transform: none; transition: all; translate: none; visibility: visible; x: 0px; y: 0px; zoom: 1;"&gt;&lt;span style="color: #2b00fe;"&gt;my-php-image:latest&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;br /&gt;&lt;/li&gt;&lt;li style="animation: auto ease 0s 1 normal none running none; appearance: none; background-attachment: scroll; background-clip: border-box; background-image: none; background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto; border: 0px rgb(31, 31, 31); clear: none; clip: auto; columns: auto; contain: none; container: none; content: normal; cursor: auto; cx: 0px; cy: 0px; d: none; direction: ltr; fill: rgb(0, 0, 0); filter: none; flex-direction: row; flex: 0 1 auto; float: none; gap: normal; hyphens: manual; inset: 0px; interactivity: auto; isolation: auto; line-height: 1.15; margin-bottom: 0px; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; margin: 0px; marker: none; mask-clip: border-box; mask-composite: add; mask-image: none; mask-mode: match-source; mask-origin: border-box; mask-repeat: repeat; mask-size: auto; mask: none; offset: normal; opacity: 1; order: 0; outline: rgb(31, 31, 31) none 2.4px; overlay: none; padding: 0px 0px 0px 36px; page: auto; perspective: none; position: relative; quotes: auto; r: 0px; resize: none; rotate: none; rule: 2.4px rgb(31, 31, 31); rx: auto; ry: auto; scale: none; speak: normal; stroke: none; transform: none; transition: all; translate: none; visibility: visible; x: 0px; y: 0px; zoom: 1;"&gt;&lt;div style="animation: auto ease 0s 1 normal none running none; appearance: none; background-attachment: scroll; background-clip: border-box; background-image: none; background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto; border: 0px rgb(31, 31, 31); clear: none; clip: auto; columns: auto; contain: none; container: none; content: normal; cursor: auto; cx: 0px; cy: 0px; d: none; direction: ltr; fill: rgb(0, 0, 0); filter: none; flex-direction: row; flex: 0 1 auto; float: none; gap: normal; hyphens: manual; inset: auto; interactivity: auto; isolation: auto; line-height: 1.15; margin-bottom: 0px; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; margin: 0px; marker: none; mask-clip: border-box; mask-composite: add; mask-image: none; mask-mode: match-source; mask-origin: border-box; mask-repeat: repeat; mask-size: auto; mask: none; offset: normal; opacity: 1; order: 0; outline: rgb(31, 31, 31) none 2.4px; overlay: none; padding: 0px 0px 0px 4px; page: auto; perspective: none; position: static; quotes: auto; r: 0px; resize: none; rotate: none; rule: 2.4px rgb(31, 31, 31); rx: auto; ry: auto; scale: none; speak: normal; stroke: none; transform: none; transition: all; translate: none; visibility: visible; x: 0px; y: 0px; zoom: 1;"&gt;&lt;span style="color: #1f1f1f;"&gt;Docker Hub Username ของคุณคือ: &lt;/span&gt;&lt;code data-index-in-node="31" data-path-to-node="10,1,0" style="animation: auto ease 0s 1 normal none running none; appearance: none; background: none 0% 0% / auto repeat scroll padding-box border-box rgb(242, 240, 240); border: 0px rgba(0, 0, 0, 0.55); clear: none; clip: auto; columns: auto; contain: none; container: none; content: normal; cursor: auto; cx: 0px; cy: 0px; d: none; direction: ltr; display: inline-block; fill: rgb(0, 0, 0); filter: none; flex-direction: row; flex: 0 1 auto; float: none; font-family: &amp;quot;Google Sans Text&amp;quot;, sans-serif; font-feature-settings: normal; font-kerning: auto; font-language-override: normal; font-optical-sizing: auto; font-size-adjust: none; font-size: 15px; font-stretch: normal; font-variant: normal; font-variation-settings: normal; gap: normal; hyphens: manual; inset: auto; interactivity: auto; isolation: auto; line-height: 1.15; margin-bottom: 0px; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; margin: 0px; marker: none; mask-clip: border-box; mask-composite: add; mask-image: none; mask-mode: match-source; mask-origin: border-box; mask-repeat: repeat; mask-size: auto; mask: none; offset: normal; opacity: 1; order: 0; outline: rgba(0, 0, 0, 0.55) none 2.4px; overlay: none; padding: 4px 6px; page: auto; perspective: none; position: static; quotes: auto; r: 0px; resize: none; rotate: none; rule: 2.4px rgba(0, 0, 0, 0.55); rx: auto; ry: auto; scale: none; speak: normal; stroke: none; transform: none; transition: all; translate: none; visibility: visible; x: 0px; y: 0px; zoom: 1;"&gt;&lt;span style="color: #2b00fe;"&gt;yourusername&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;br /&gt;&lt;/li&gt;&lt;li style="animation: auto ease 0s 1 normal none running none; appearance: none; background-attachment: scroll; background-clip: border-box; background-image: none; background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto; border: 0px rgb(31, 31, 31); clear: none; clip: auto; columns: auto; contain: none; container: none; content: normal; cursor: auto; cx: 0px; cy: 0px; d: none; direction: ltr; fill: rgb(0, 0, 0); filter: none; flex-direction: row; flex: 0 1 auto; float: none; gap: normal; hyphens: manual; inset: 0px; interactivity: auto; isolation: auto; line-height: 1.15; margin-bottom: 0px; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; margin: 0px; marker: none; mask-clip: border-box; mask-composite: add; mask-image: none; mask-mode: match-source; mask-origin: border-box; mask-repeat: repeat; mask-size: auto; mask: none; offset: normal; opacity: 1; order: 0; outline: rgb(31, 31, 31) none 2.4px; overlay: none; padding: 0px 0px 0px 36px; page: auto; perspective: none; position: relative; quotes: auto; r: 0px; resize: none; rotate: none; rule: 2.4px rgb(31, 31, 31); rx: auto; ry: auto; scale: none; speak: normal; stroke: none; transform: none; transition: all; translate: none; visibility: visible; x: 0px; y: 0px; zoom: 1;"&gt;&lt;div style="animation: auto ease 0s 1 normal none running none; appearance: none; background-attachment: scroll; background-clip: border-box; background-image: none; background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto; border: 0px rgb(31, 31, 31); clear: none; clip: auto; columns: auto; contain: none; container: none; content: normal; cursor: auto; cx: 0px; cy: 0px; d: none; direction: ltr; fill: rgb(0, 0, 0); filter: none; flex-direction: row; flex: 0 1 auto; float: none; gap: normal; hyphens: manual; inset: auto; interactivity: auto; isolation: auto; line-height: 1.15; margin-bottom: 0px; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; margin: 0px; marker: none; mask-clip: border-box; mask-composite: add; mask-image: none; mask-mode: match-source; mask-origin: border-box; mask-repeat: repeat; mask-size: auto; mask: none; offset: normal; opacity: 1; order: 0; outline: rgb(31, 31, 31) none 2.4px; overlay: none; padding: 0px 0px 0px 4px; page: auto; perspective: none; position: static; quotes: auto; r: 0px; resize: none; rotate: none; rule: 2.4px rgb(31, 31, 31); rx: auto; ry: auto; scale: none; speak: normal; stroke: none; transform: none; transition: all; translate: none; visibility: visible; x: 0px; y: 0px; zoom: 1;"&gt;&lt;span style="color: #1f1f1f;"&gt;ต้องการตั้งชื่อ repository ว่า: &lt;/span&gt;&lt;code data-index-in-node="32" data-path-to-node="10,2,0" style="animation: auto ease 0s 1 normal none running none; appearance: none; background: none 0% 0% / auto repeat scroll padding-box border-box rgb(242, 240, 240); border: 0px rgba(0, 0, 0, 0.55); clear: none; clip: auto; columns: auto; contain: none; container: none; content: normal; cursor: auto; cx: 0px; cy: 0px; d: none; direction: ltr; display: inline-block; fill: rgb(0, 0, 0); filter: none; flex-direction: row; flex: 0 1 auto; float: none; font-family: &amp;quot;Google Sans Text&amp;quot;, sans-serif; font-feature-settings: normal; font-kerning: auto; font-language-override: normal; font-optical-sizing: auto; font-size-adjust: none; font-size: 15px; font-stretch: normal; font-variant: normal; font-variation-settings: normal; gap: normal; hyphens: manual; inset: auto; interactivity: auto; isolation: auto; line-height: 1.15; margin-bottom: 0px; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; margin: 0px; marker: none; mask-clip: border-box; mask-composite: add; mask-image: none; mask-mode: match-source; mask-origin: border-box; mask-repeat: repeat; mask-size: auto; mask: none; offset: normal; opacity: 1; order: 0; outline: rgba(0, 0, 0, 0.55) none 2.4px; overlay: none; padding: 4px 6px; page: auto; perspective: none; position: static; quotes: auto; r: 0px; resize: none; rotate: none; rule: 2.4px rgba(0, 0, 0, 0.55); rx: auto; ry: auto; scale: none; speak: normal; stroke: none; transform: none; transition: all; translate: none; visibility: visible; x: 0px; y: 0px; zoom: 1;"&gt;&lt;span style="color: #2b00fe;"&gt;php7.4-apache-custom&lt;/span&gt;&lt;/code&gt;&lt;span style="color: #1f1f1f;"&gt; และแท็ก &lt;/span&gt;&lt;code data-index-in-node="61" data-path-to-node="10,2,0" style="animation: auto ease 0s 1 normal none running none; appearance: none; background: none 0% 0% / auto repeat scroll padding-box border-box rgb(242, 240, 240); border: 0px rgba(0, 0, 0, 0.55); clear: none; clip: auto; columns: auto; contain: none; container: none; content: normal; cursor: auto; cx: 0px; cy: 0px; d: none; direction: ltr; display: inline-block; fill: rgb(0, 0, 0); filter: none; flex-direction: row; flex: 0 1 auto; float: none; font-family: &amp;quot;Google Sans Text&amp;quot;, sans-serif; font-feature-settings: normal; font-kerning: auto; font-language-override: normal; font-optical-sizing: auto; font-size-adjust: none; font-size: 15px; font-stretch: normal; font-variant: normal; font-variation-settings: normal; gap: normal; hyphens: manual; inset: auto; interactivity: auto; isolation: auto; line-height: 1.15; margin-bottom: 0px; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; margin: 0px; marker: none; mask-clip: border-box; mask-composite: add; mask-image: none; mask-mode: match-source; mask-origin: border-box; mask-repeat: repeat; mask-size: auto; mask: none; offset: normal; opacity: 1; order: 0; outline: rgba(0, 0, 0, 0.55) none 2.4px; overlay: none; padding: 4px 6px; page: auto; perspective: none; position: static; quotes: auto; r: 0px; resize: none; rotate: none; rule: 2.4px rgba(0, 0, 0, 0.55); rx: auto; ry: auto; scale: none; speak: normal; stroke: none; transform: none; transition: all; translate: none; visibility: visible; x: 0px; y: 0px; zoom: 1;"&gt;&lt;span style="color: #2b00fe;"&gt;v1&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div style="animation: auto ease 0s 1 normal none running none; appearance: none; background-attachment: scroll; background-clip: border-box; background-image: none; background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto; border: 0px rgb(31, 31, 31); clear: none; clip: auto; color: #1f1f1f; columns: auto; contain: none; container: none; content: normal; cursor: auto; cx: 0px; cy: 0px; d: none; direction: ltr; fill: rgb(0, 0, 0); filter: none; flex-direction: row; flex: 0 1 auto; float: none; font-family: &amp;quot;Google Sans Text&amp;quot;, sans-serif; gap: normal; hyphens: manual; inset: auto; interactivity: auto; isolation: auto; line-height: 1.15; margin-bottom: 0px; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; margin: 0px; marker: none; mask-clip: border-box; mask-composite: add; mask-image: none; mask-mode: match-source; mask-origin: border-box; mask-repeat: repeat; mask-size: auto; mask: none; offset: normal; opacity: 1; order: 0; outline: rgb(31, 31, 31) none 2.4px; overlay: none; padding: 0px; page: auto; perspective: none; position: static; quotes: auto; r: 0px; resize: none; rotate: none; rule: 2.4px rgb(31, 31, 31); rx: auto; ry: auto; scale: none; speak: normal; stroke: none; transform: none; transition: all; translate: none; visibility: visible; x: 0px; y: 0px; zoom: 1;"&gt;ให้ใช้คำสั่ง &lt;code data-index-in-node="13" data-path-to-node="11" style="animation: auto ease 0s 1 normal none running none; appearance: none; background: none 0% 0% / auto repeat scroll padding-box border-box rgb(242, 240, 240); border: 0px rgba(0, 0, 0, 0.55); clear: none; clip: auto; color: rgba(0, 0, 0, 0.55); columns: auto; contain: none; container: none; content: normal; cursor: auto; cx: 0px; cy: 0px; d: none; direction: ltr; display: inline-block; fill: rgb(0, 0, 0); filter: none; flex-direction: row; flex: 0 1 auto; float: none; font-family: &amp;quot;Google Sans Text&amp;quot;, sans-serif; font-feature-settings: normal; font-kerning: auto; font-language-override: normal; font-optical-sizing: auto; font-size-adjust: none; font-size: 15px; font-stretch: normal; font-variant: normal; font-variation-settings: normal; gap: normal; hyphens: manual; inset: auto; interactivity: auto; isolation: auto; line-height: 1.15; margin-bottom: 0px; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; margin: 0px; marker: none; mask-clip: border-box; mask-composite: add; mask-image: none; mask-mode: match-source; mask-origin: border-box; mask-repeat: repeat; mask-size: auto; mask: none; offset: normal; opacity: 1; order: 0; outline: rgba(0, 0, 0, 0.55) none 2.4px; overlay: none; padding: 4px 6px; page: auto; perspective: none; position: static; quotes: auto; r: 0px; resize: none; rotate: none; rule: 2.4px rgba(0, 0, 0, 0.55); rx: auto; ry: auto; scale: none; speak: normal; stroke: none; transform: none; transition: all; translate: none; visibility: visible; x: 0px; y: 0px; zoom: 1;"&gt;docker tag&lt;/code&gt;:&lt;/div&gt;&lt;br /&gt;&lt;span style="color: red;"&gt;docker tag&lt;/span&gt;&lt;span style="color: #2b00fe;"&gt; my-php-image:latest yourusername/php7.4-apache-custom:v1&lt;/span&gt;&lt;/div&gt;&lt;div _ngcontent-ng-c3219552501="" aria-busy="false" aria-live="polite" class="markdown markdown-main-panel md-content enable-luminous-fast-follows enable-updated-hr-color stronger tutor-markdown-rendering" dir="ltr" id="model-response-message-contentr_fa4d90a8af2635a5" inline-copy-host="" style="--animation-duration: 400ms; --fade-animation-function: ease-out; animation: auto ease 0s 1 normal none running none; appearance: none; background-attachment: scroll; background-clip: border-box; background-image: none; background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto; border: 0px rgb(31, 31, 31); clear: none; clip: auto; columns: auto; contain: none; container: none; content: normal; cursor: auto; cx: 0px; cy: 0px; d: none; direction: ltr; fill: rgb(0, 0, 0); filter: none; flex-direction: row; flex: 0 1 auto; float: none; gap: normal; hyphens: manual; inset: auto; interactivity: auto; isolation: auto; line-height: 1.15; margin-bottom: 0px; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; margin: 0px; marker: none; mask-clip: border-box; mask-composite: add; mask-image: none; mask-mode: match-source; mask-origin: border-box; mask-repeat: repeat; mask-size: auto; mask: none; offset: normal; opacity: 1; order: 0; outline: rgb(31, 31, 31) none 2.4px; overlay: none; padding: 0px; page: auto; perspective: none; position: static; quotes: auto; r: 0px; resize: none; rotate: none; rule: 2.4px rgb(31, 31, 31); rx: auto; ry: auto; scale: none; speak: normal; stroke: none; transform: none; transition: all; translate: none; visibility: visible; x: 0px; y: 0px; zoom: 1;"&gt;&lt;br /&gt;&lt;div style="animation: auto ease 0s 1 normal none running none; appearance: none; background-attachment: scroll; background-clip: border-box; background-image: none; background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto; border: 0px rgb(31, 31, 31); clear: none; clip: auto; columns: auto; contain: none; container: none; content: normal; cursor: auto; cx: 0px; cy: 0px; d: none; direction: ltr; fill: rgb(0, 0, 0); filter: none; flex-direction: row; flex: 0 1 auto; float: none; font-family: &amp;quot;Google Sans Text&amp;quot;, sans-serif; gap: normal; hyphens: manual; inset: auto; interactivity: auto; isolation: auto; line-height: 1.15; margin-bottom: 0px; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; margin: 0px; marker: none; mask-clip: border-box; mask-composite: add; mask-image: none; mask-mode: match-source; mask-origin: border-box; mask-repeat: repeat; mask-size: auto; mask: none; offset: normal; opacity: 1; order: 0; outline: rgb(31, 31, 31) none 2.4px; overlay: none; padding: 0px; page: auto; perspective: none; position: static; quotes: auto; r: 0px; resize: none; rotate: none; rule: 2.4px rgb(31, 31, 31); rx: auto; ry: auto; scale: none; speak: normal; stroke: none; transform: none; transition: all; translate: none; visibility: visible; x: 0px; y: 0px; zoom: 1;"&gt;&lt;i data-index-in-node="0" data-path-to-node="13" style="animation: auto ease 0s 1 normal none running none; appearance: none; background-attachment: scroll; background-clip: border-box; background-image: none; background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto; border: 0px rgb(31, 31, 31); clear: none; clip: auto; columns: auto; contain: none; container: none; content: normal; cursor: auto; cx: 0px; cy: 0px; d: none; direction: ltr; display: inline; fill: rgb(0, 0, 0); filter: none; flex-direction: row; flex: 0 1 auto; float: none; gap: normal; hyphens: manual; inset: auto; interactivity: auto; isolation: auto; line-height: 1.15; margin-bottom: 0px; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; margin: 0px; marker: none; mask-clip: border-box; mask-composite: add; mask-image: none; mask-mode: match-source; mask-origin: border-box; mask-repeat: repeat; mask-size: auto; mask: none; offset: normal; opacity: 1; order: 0; outline: rgb(31, 31, 31) none 2.4px; overlay: none; padding: 0px; page: auto; perspective: none; position: static; quotes: auto; r: 0px; resize: none; rotate: none; rule: 2.4px rgb(31, 31, 31); rx: auto; ry: auto; scale: none; speak: normal; stroke: none; transform: none; transition: all; translate: none; visibility: visible; x: 0px; y: 0px; zoom: 1;"&gt;&lt;span style="color: #1f1f1f;"&gt;(หากต้องการแท็กเป็น &lt;/span&gt;&lt;code data-index-in-node="20" data-path-to-node="13" style="animation: auto ease 0s 1 normal none running none; appearance: none; background: none 0% 0% / auto repeat scroll padding-box border-box rgb(242, 240, 240); border: 0px rgba(0, 0, 0, 0.55); clear: none; clip: auto; color: rgba(0, 0, 0, 0.55); columns: auto; contain: none; container: none; content: normal; cursor: auto; cx: 0px; cy: 0px; d: none; direction: ltr; display: inline-block; fill: rgb(0, 0, 0); filter: none; flex-direction: row; flex: 0 1 auto; float: none; font-family: &amp;quot;Google Sans Text&amp;quot;, sans-serif; font-feature-settings: normal; font-kerning: auto; font-language-override: normal; font-optical-sizing: auto; font-size-adjust: none; font-size: 15px; font-stretch: normal; font-style: normal; font-variant: normal; font-variation-settings: normal; gap: normal; hyphens: manual; inset: auto; interactivity: auto; isolation: auto; line-height: 1.15; margin-bottom: 0px; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; margin: 0px; marker: none; mask-clip: border-box; mask-composite: add; mask-image: none; mask-mode: match-source; mask-origin: border-box; mask-repeat: repeat; mask-size: auto; mask: none; offset: normal; opacity: 1; order: 0; outline: rgba(0, 0, 0, 0.55) none 2.4px; overlay: none; padding: 4px 6px; page: auto; perspective: none; position: static; quotes: auto; r: 0px; resize: none; rotate: none; rule: 2.4px rgba(0, 0, 0, 0.55); rx: auto; ry: auto; scale: none; speak: normal; stroke: none; transform: none; transition: all; translate: none; visibility: visible; x: 0px; y: 0px; zoom: 1;"&gt;latest&lt;/code&gt;&lt;span style="color: #1f1f1f;"&gt; เพิ่มด้วย สามารถรัน: &lt;/span&gt;&lt;code data-index-in-node="48" data-path-to-node="13" style="animation: auto ease 0s 1 normal none running none; appearance: none; background: none 0% 0% / auto repeat scroll padding-box border-box rgb(242, 240, 240); border: 0px rgba(0, 0, 0, 0.55); clear: none; clip: auto; columns: auto; contain: none; container: none; content: normal; cursor: auto; cx: 0px; cy: 0px; d: none; direction: ltr; display: inline-block; fill: rgb(0, 0, 0); filter: none; flex-direction: row; flex: 0 1 auto; float: none; font-family: &amp;quot;Google Sans Text&amp;quot;, sans-serif; font-feature-settings: normal; font-kerning: auto; font-language-override: normal; font-optical-sizing: auto; font-size-adjust: none; font-size: 15px; font-stretch: normal; font-style: normal; font-variant: normal; font-variation-settings: normal; gap: normal; hyphens: manual; inset: auto; interactivity: auto; isolation: auto; line-height: 1.15; margin-bottom: 0px; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; margin: 0px; marker: none; mask-clip: border-box; mask-composite: add; mask-image: none; mask-mode: match-source; mask-origin: border-box; mask-repeat: repeat; mask-size: auto; mask: none; offset: normal; opacity: 1; order: 0; outline: rgba(0, 0, 0, 0.55) none 2.4px; overlay: none; padding: 4px 6px; page: auto; perspective: none; position: static; quotes: auto; r: 0px; resize: none; rotate: none; rule: 2.4px rgba(0, 0, 0, 0.55); rx: auto; ry: auto; scale: none; speak: normal; stroke: none; transform: none; transition: all; translate: none; visibility: visible; x: 0px; y: 0px; zoom: 1;"&gt;&lt;span style="color: red;"&gt;docker tag&lt;/span&gt;&lt;span style="color: #2b00fe;"&gt; my-php-image:latest yourusername/php7.4-apache-custom:latest&lt;/span&gt;&lt;/code&gt;&lt;span style="color: #1f1f1f;"&gt;)&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;&lt;br /&gt;&lt;h3 data-path-to-node="15" style="animation: auto ease 0s 1 normal none running none; appearance: none; background-attachment: scroll; background-clip: border-box; background-image: none; background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto; border: 0px rgb(31, 31, 31); clear: none; clip: auto; color: #1f1f1f; columns: auto; contain: none; container: none; content: normal; cursor: auto; cx: 0px; cy: 0px; d: none; direction: ltr; fill: rgb(0, 0, 0); filter: none; flex-direction: row; flex: 0 1 auto; float: none; font-family: &amp;quot;Google Sans&amp;quot;, sans-serif; gap: normal; hyphens: manual; inset: auto; interactivity: auto; isolation: auto; line-height: 1.15; margin-bottom: 0px; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; margin: 0px; marker: none; mask-clip: border-box; mask-composite: add; mask-image: none; mask-mode: match-source; mask-origin: border-box; mask-repeat: repeat; mask-size: auto; mask: none; offset: normal; opacity: 1; order: 0; outline: rgb(31, 31, 31) none 2.4px; overlay: none; padding: 0px; page: auto; perspective: none; position: static; quotes: auto; r: 0px; resize: none; rotate: none; rule: 2.4px rgb(31, 31, 31); rx: auto; ry: auto; scale: none; speak: normal; stroke: none; transform: none; transition: all; translate: none; visibility: visible; x: 0px; y: 0px; zoom: 1;"&gt;3. Push Image ขึ้น Docker Hub&lt;/h3&gt;&lt;div style="animation: auto ease 0s 1 normal none running none; appearance: none; background-attachment: scroll; background-clip: border-box; background-image: none; background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto; border: 0px rgb(31, 31, 31); clear: none; clip: auto; color: #1f1f1f; columns: auto; contain: none; container: none; content: normal; cursor: auto; cx: 0px; cy: 0px; d: none; direction: ltr; fill: rgb(0, 0, 0); filter: none; flex-direction: row; flex: 0 1 auto; float: none; font-family: &amp;quot;Google Sans Text&amp;quot;, sans-serif; gap: normal; hyphens: manual; inset: auto; interactivity: auto; isolation: auto; line-height: 1.15; margin-bottom: 0px; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; margin: 0px; marker: none; mask-clip: border-box; mask-composite: add; mask-image: none; mask-mode: match-source; mask-origin: border-box; mask-repeat: repeat; mask-size: auto; mask: none; offset: normal; opacity: 1; order: 0; outline: rgb(31, 31, 31) none 2.4px; overlay: none; padding: 0px; page: auto; perspective: none; position: static; quotes: auto; r: 0px; resize: none; rotate: none; rule: 2.4px rgb(31, 31, 31); rx: auto; ry: auto; scale: none; speak: normal; stroke: none; transform: none; transition: all; translate: none; visibility: visible; x: 0px; y: 0px; zoom: 1;"&gt;ส่ง Image ขึ้นไปยัง Repository ของคุณ:&lt;/div&gt;&lt;br /&gt;&lt;span style="color: red;"&gt;docker push &lt;/span&gt;&lt;span style="color: #2b00fe;"&gt;yourusername/php7.4-apache-custom:v1&lt;/span&gt;&lt;/div&gt;&lt;div _ngcontent-ng-c3219552501="" aria-busy="false" aria-live="polite" class="markdown markdown-main-panel md-content enable-luminous-fast-follows enable-updated-hr-color stronger tutor-markdown-rendering" dir="ltr" id="model-response-message-contentr_fa4d90a8af2635a5" inline-copy-host="" style="--animation-duration: 400ms; --fade-animation-function: ease-out; animation: auto ease 0s 1 normal none running none; appearance: none; background-attachment: scroll; background-clip: border-box; background-image: none; background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto; border: 0px rgb(31, 31, 31); clear: none; clip: auto; columns: auto; contain: none; container: none; content: normal; cursor: auto; cx: 0px; cy: 0px; d: none; direction: ltr; fill: rgb(0, 0, 0); filter: none; flex-direction: row; flex: 0 1 auto; float: none; gap: normal; hyphens: manual; inset: auto; interactivity: auto; isolation: auto; line-height: 1.15; margin-bottom: 0px; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; margin: 0px; marker: none; mask-clip: border-box; mask-composite: add; mask-image: none; mask-mode: match-source; mask-origin: border-box; mask-repeat: repeat; mask-size: auto; mask: none; offset: normal; opacity: 1; order: 0; outline: rgb(31, 31, 31) none 2.4px; overlay: none; padding: 0px; page: auto; perspective: none; position: static; quotes: auto; r: 0px; resize: none; rotate: none; rule: 2.4px rgb(31, 31, 31); rx: auto; ry: auto; scale: none; speak: normal; stroke: none; transform: none; transition: all; translate: none; visibility: visible; x: 0px; y: 0px; zoom: 1;"&gt;&lt;br /&gt;&lt;div style="animation: auto ease 0s 1 normal none running none; appearance: none; background-attachment: scroll; background-clip: border-box; background-image: none; background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto; border: 0px rgb(31, 31, 31); clear: none; clip: auto; color: #1f1f1f; columns: auto; contain: none; container: none; content: normal; cursor: auto; cx: 0px; cy: 0px; d: none; direction: ltr; fill: rgb(0, 0, 0); filter: none; flex-direction: row; flex: 0 1 auto; float: none; font-family: &amp;quot;Google Sans Text&amp;quot;, sans-serif; gap: normal; hyphens: manual; inset: auto; interactivity: auto; isolation: auto; line-height: 1.15; margin-bottom: 0px; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; margin: 0px; marker: none; mask-clip: border-box; mask-composite: add; mask-image: none; mask-mode: match-source; mask-origin: border-box; mask-repeat: repeat; mask-size: auto; mask: none; offset: normal; opacity: 1; order: 0; outline: rgb(31, 31, 31) none 2.4px; overlay: none; padding: 0px; page: auto; perspective: none; position: static; quotes: auto; r: 0px; resize: none; rotate: none; rule: 2.4px rgb(31, 31, 31); rx: auto; ry: auto; scale: none; speak: normal; stroke: none; transform: none; transition: all; translate: none; visibility: visible; x: 0px; y: 0px; zoom: 1;"&gt;&lt;i data-index-in-node="0" data-path-to-node="18" style="animation: auto ease 0s 1 normal none running none; appearance: none; background-attachment: scroll; background-clip: border-box; background-image: none; background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto; border: 0px rgb(31, 31, 31); clear: none; clip: auto; columns: auto; contain: none; container: none; content: normal; cursor: auto; cx: 0px; cy: 0px; d: none; direction: ltr; display: inline; fill: rgb(0, 0, 0); filter: none; flex-direction: row; flex: 0 1 auto; float: none; gap: normal; hyphens: manual; inset: auto; interactivity: auto; isolation: auto; line-height: 1.15; margin-bottom: 0px; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; margin: 0px; marker: none; mask-clip: border-box; mask-composite: add; mask-image: none; mask-mode: match-source; mask-origin: border-box; mask-repeat: repeat; mask-size: auto; mask: none; offset: normal; opacity: 1; order: 0; outline: rgb(31, 31, 31) none 2.4px; overlay: none; padding: 0px; page: auto; perspective: none; position: static; quotes: auto; r: 0px; resize: none; rotate: none; rule: 2.4px rgb(31, 31, 31); rx: auto; ry: auto; scale: none; speak: normal; stroke: none; transform: none; transition: all; translate: none; visibility: visible; x: 0px; y: 0px; zoom: 1;"&gt;เมื่ออัปโหลดเสร็จ คุณสามารถเข้าไปตรวจสอบในหน้าเว็บ &lt;response-element class="no-md" ng-version="0.0.0-PLACEHOLDER" style="animation: auto ease 0s 1 normal none running none; appearance: none; background-attachment: scroll; background-clip: border-box; background-image: none; background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto; border: 0px rgb(31, 31, 31); clear: none; clip: auto; columns: auto; contain: none; container: none; content: normal; cursor: auto; cx: 0px; cy: 0px; d: none; direction: ltr; display: inline; fill: rgb(0, 0, 0); filter: none; flex-direction: row; flex: 0 1 auto; float: none; gap: normal; hyphens: manual; inset: auto; interactivity: auto; isolation: auto; line-height: 1.15; margin-bottom: 0px; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; margin: 0px; marker: none; mask-clip: border-box; mask-composite: add; mask-image: none; mask-mode: match-source; mask-origin: border-box; mask-repeat: repeat; mask-size: auto; mask: none; offset: normal; opacity: 1; order: 0; outline: rgb(31, 31, 31) none 2.4px; overlay: none; padding: 0px; page: auto; perspective: none; position: static; quotes: auto; r: 0px; resize: none; rotate: none; rule: 2.4px rgb(31, 31, 31); rx: auto; ry: auto; scale: none; speak: normal; stroke: none; transform: none; transition: all; translate: none; visibility: visible; x: 0px; y: 0px; zoom: 1;"&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;link-block _nghost-ng-c3556840608="" class="ng-star-inserted" style="animation: auto ease 0s 1 normal none running none; appearance: none; background-attachment: scroll; background-clip: border-box; background-image: none; background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto; border: 0px rgb(31, 31, 31); clear: none; clip: auto; columns: auto; contain: none; container: none; content: normal; cursor: auto; cx: 0px; cy: 0px; d: none; direction: ltr; display: inline; fill: rgb(0, 0, 0); filter: none; flex-direction: row; flex: 0 1 auto; float: none; gap: normal; hyphens: manual; inset: auto; interactivity: auto; isolation: auto; line-height: 1.15; margin-bottom: 0px; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; margin: 0px; marker: none; mask-clip: border-box; mask-composite: add; mask-image: none; mask-mode: match-source; mask-origin: border-box; mask-repeat: repeat; mask-size: auto; mask: none; offset: normal; opacity: 1; order: 0; outline: rgb(31, 31, 31) none 2.4px; overlay: none; padding: 0px; page: auto; perspective: none; position: static; quotes: auto; r: 0px; resize: none; rotate: none; rule: 2.4px rgb(31, 31, 31); rx: auto; ry: auto; scale: none; speak: normal; stroke: none; transform: none; transition: all; translate: none; visibility: visible; x: 0px; y: 0px; zoom: 1;"&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;a _ngcontent-ng-c3556840608="" _nghost-ng-c1889581432="" class="ng-star-inserted" data-hveid="0" data-ved="0CAAQ_4QMahcKEwjP0bj36NSXAxUAAAAAHQAAAAAQVg" decode-data-ved="1" externallink="" href="https://hub.docker.com/" jslog="197247;track:generic_click,impression,attention;BardVeMetadataKey:W1sicl9mYTRkOTBhOGFmMjYzNWE1IiwiY180YTQzMWUzMzhhMGMyNmMyIixudWxsLCJyY18zMGU4MjdhOTlkYjc4YzVmIixudWxsLG51bGwsInRoIixudWxsLDEsbnVsbCxudWxsLDEsMV1d" rel="noopener" style="animation: auto ease 0s 1 normal none running none; appearance: none; background-attachment: scroll; background-clip: border-box; background-image: none; background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto; border: 0px rgb(0, 0, 0); clear: none; clip: auto; color: black; columns: auto; contain: none; container: none; content: normal; cursor: pointer; cx: 0px; cy: 0px; d: none; direction: ltr; display: inline; fill: rgb(0, 0, 0); filter: none; flex-direction: row; flex: 0 1 auto; float: none; gap: normal; hyphens: manual; inset: auto; interactivity: auto; isolation: auto; line-height: 1.15; margin-bottom: 0px; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; margin: 0px; marker: none; mask-clip: border-box; mask-composite: add; mask-image: none; mask-mode: match-source; mask-origin: border-box; mask-repeat: repeat; mask-size: auto; mask: none; offset: normal; opacity: 1; order: 0; outline: rgb(0, 0, 0) none 2.4px; overlay: none; padding: 0px; page: auto; perspective: none; position: static; quotes: auto; r: 0px; resize: none; rotate: none; rule: 2.4px rgb(0, 0, 0); rx: auto; ry: auto; scale: none; speak: normal; stroke: none; transform: none; transition: all; translate: none; visibility: visible; x: 0px; y: 0px; zoom: 1;" target="_blank"&gt;hub.docker.com&lt;/a&gt;&lt;!----&gt;&lt;/link-block&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;/response-element&gt; ในโปรไฟล์ของคุณ จะพบ Image ปรากฏอยู่&lt;/i&gt;&lt;/div&gt;&lt;br /&gt;&lt;h3 data-path-to-node="20" style="animation: auto ease 0s 1 normal none running none; appearance: none; background-attachment: scroll; background-clip: border-box; background-image: none; background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto; border: 0px rgb(31, 31, 31); clear: none; clip: auto; color: #1f1f1f; columns: auto; contain: none; container: none; content: normal; cursor: auto; cx: 0px; cy: 0px; d: none; direction: ltr; fill: rgb(0, 0, 0); filter: none; flex-direction: row; flex: 0 1 auto; float: none; font-family: &amp;quot;Google Sans&amp;quot;, sans-serif; gap: normal; hyphens: manual; inset: auto; interactivity: auto; isolation: auto; line-height: 1.15; margin-bottom: 0px; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; margin: 0px; marker: none; mask-clip: border-box; mask-composite: add; mask-image: none; mask-mode: match-source; mask-origin: border-box; mask-repeat: repeat; mask-size: auto; mask: none; offset: normal; opacity: 1; order: 0; outline: rgb(31, 31, 31) none 2.4px; overlay: none; padding: 0px; page: auto; perspective: none; position: static; quotes: auto; r: 0px; resize: none; rotate: none; rule: 2.4px rgb(31, 31, 31); rx: auto; ry: auto; scale: none; speak: normal; stroke: none; transform: none; transition: all; translate: none; visibility: visible; x: 0px; y: 0px; zoom: 1;"&gt;4. การดึง (Pull) และเรียกใช้งานในเครื่องอื่นหรือครั้งถัดไป&lt;/h3&gt;&lt;div style="animation: auto ease 0s 1 normal none running none; appearance: none; background-attachment: scroll; background-clip: border-box; background-image: none; background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto; border: 0px rgb(31, 31, 31); clear: none; clip: auto; color: #1f1f1f; columns: auto; contain: none; container: none; content: normal; cursor: auto; cx: 0px; cy: 0px; d: none; direction: ltr; fill: rgb(0, 0, 0); filter: none; flex-direction: row; flex: 0 1 auto; float: none; font-family: &amp;quot;Google Sans Text&amp;quot;, sans-serif; gap: normal; hyphens: manual; inset: auto; interactivity: auto; isolation: auto; line-height: 1.15; margin-bottom: 0px; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; margin: 0px; marker: none; mask-clip: border-box; mask-composite: add; mask-image: none; mask-mode: match-source; mask-origin: border-box; mask-repeat: repeat; mask-size: auto; mask: none; offset: normal; opacity: 1; order: 0; outline: rgb(31, 31, 31) none 2.4px; overlay: none; padding: 0px; page: auto; perspective: none; position: static; quotes: auto; r: 0px; resize: none; rotate: none; rule: 2.4px rgb(31, 31, 31); rx: auto; ry: auto; scale: none; speak: normal; stroke: none; transform: none; transition: all; translate: none; visibility: visible; x: 0px; y: 0px; zoom: 1;"&gt;เมื่อย้ายไปเครื่องอื่น หรือต้องการนำมาใช้งานใหม่:&lt;/div&gt;&lt;br /&gt;&lt;div style="animation: auto ease 0s 1 normal none running none; appearance: none; background-attachment: scroll; background-clip: border-box; background-image: none; background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto; border: 0px rgb(31, 31, 31); clear: none; clip: auto; color: #1f1f1f; columns: auto; contain: none; container: none; content: normal; cursor: auto; cx: 0px; cy: 0px; d: none; direction: ltr; fill: rgb(0, 0, 0); filter: none; flex-direction: row; flex: 0 1 auto; float: none; font-family: &amp;quot;Google Sans Text&amp;quot;, sans-serif; gap: normal; hyphens: manual; inset: auto; interactivity: auto; isolation: auto; line-height: 1.15; margin-bottom: 0px; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; margin: 0px; marker: none; mask-clip: border-box; mask-composite: add; mask-image: none; mask-mode: match-source; mask-origin: border-box; mask-repeat: repeat; mask-size: auto; mask: none; offset: normal; opacity: 1; order: 0; outline: rgb(31, 31, 31) none 2.4px; overlay: none; padding: 0px; page: auto; perspective: none; position: static; quotes: auto; r: 0px; resize: none; rotate: none; rule: 2.4px rgb(31, 31, 31); rx: auto; ry: auto; scale: none; speak: normal; stroke: none; transform: none; transition: all; translate: none; visibility: visible; x: 0px; y: 0px; zoom: 1;"&gt;&lt;b data-index-in-node="0" data-path-to-node="22" style="animation: auto ease 0s 1 normal none running none; appearance: none; background-attachment: scroll; background-clip: border-box; background-image: none; background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto; border: 0px rgb(31, 31, 31); clear: none; clip: auto; columns: auto; contain: none; container: none; content: normal; cursor: auto; cx: 0px; cy: 0px; d: none; direction: ltr; display: inline; fill: rgb(0, 0, 0); filter: none; flex-direction: row; flex: 0 1 auto; float: none; gap: normal; hyphens: manual; inset: auto; interactivity: auto; isolation: auto; line-height: 1.15; margin-bottom: 0px; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; margin: 0px; marker: none; mask-clip: border-box; mask-composite: add; mask-image: none; mask-mode: match-source; mask-origin: border-box; mask-repeat: repeat; mask-size: auto; mask: none; offset: normal; opacity: 1; order: 0; outline: rgb(31, 31, 31) none 2.4px; overlay: none; padding: 0px; page: auto; perspective: none; position: static; quotes: auto; r: 0px; resize: none; rotate: none; rule: 2.4px rgb(31, 31, 31); rx: auto; ry: auto; scale: none; speak: normal; stroke: none; transform: none; transition: all; translate: none; visibility: visible; x: 0px; y: 0px; zoom: 1;"&gt;ดึง Image ลงมาเก็บในเครื่อง:&lt;/b&gt;&lt;/div&gt;&lt;br /&gt;&lt;span style="color: red;"&gt;docker pull &lt;/span&gt;&lt;span style="color: #2b00fe;"&gt;yourusername/php7.4-apache-custom:v1&lt;/span&gt;&lt;/div&gt;&lt;div _ngcontent-ng-c3219552501="" aria-busy="false" aria-live="polite" class="markdown markdown-main-panel md-content enable-luminous-fast-follows enable-updated-hr-color stronger tutor-markdown-rendering" dir="ltr" id="model-response-message-contentr_fa4d90a8af2635a5" inline-copy-host="" style="--animation-duration: 400ms; --fade-animation-function: ease-out; animation: auto ease 0s 1 normal none running none; appearance: none; background-attachment: scroll; background-clip: border-box; background-image: none; background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto; border: 0px rgb(31, 31, 31); clear: none; clip: auto; columns: auto; contain: none; container: none; content: normal; cursor: auto; cx: 0px; cy: 0px; d: none; direction: ltr; fill: rgb(0, 0, 0); filter: none; flex-direction: row; flex: 0 1 auto; float: none; gap: normal; hyphens: manual; inset: auto; interactivity: auto; isolation: auto; line-height: 1.15; margin-bottom: 0px; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; margin: 0px; marker: none; mask-clip: border-box; mask-composite: add; mask-image: none; mask-mode: match-source; mask-origin: border-box; mask-repeat: repeat; mask-size: auto; mask: none; offset: normal; opacity: 1; order: 0; outline: rgb(31, 31, 31) none 2.4px; overlay: none; padding: 0px; page: auto; perspective: none; position: static; quotes: auto; r: 0px; resize: none; rotate: none; rule: 2.4px rgb(31, 31, 31); rx: auto; ry: auto; scale: none; speak: normal; stroke: none; transform: none; transition: all; translate: none; visibility: visible; x: 0px; y: 0px; zoom: 1;"&gt;&lt;br /&gt;&lt;div style="animation: auto ease 0s 1 normal none running none; appearance: none; background-attachment: scroll; background-clip: border-box; background-image: none; background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto; border: 0px rgb(31, 31, 31); clear: none; clip: auto; color: #1f1f1f; columns: auto; contain: none; container: none; content: normal; cursor: auto; cx: 0px; cy: 0px; d: none; direction: ltr; fill: rgb(0, 0, 0); filter: none; flex-direction: row; flex: 0 1 auto; float: none; font-family: &amp;quot;Google Sans Text&amp;quot;, sans-serif; gap: normal; hyphens: manual; inset: auto; interactivity: auto; isolation: auto; line-height: 1.15; margin-bottom: 0px; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; margin: 0px; marker: none; mask-clip: border-box; mask-composite: add; mask-image: none; mask-mode: match-source; mask-origin: border-box; mask-repeat: repeat; mask-size: auto; mask: none; offset: normal; opacity: 1; order: 0; outline: rgb(31, 31, 31) none 2.4px; overlay: none; padding: 0px; page: auto; perspective: none; position: static; quotes: auto; r: 0px; resize: none; rotate: none; rule: 2.4px rgb(31, 31, 31); rx: auto; ry: auto; scale: none; speak: normal; stroke: none; transform: none; transition: all; translate: none; visibility: visible; x: 0px; y: 0px; zoom: 1;"&gt;&lt;b data-index-in-node="0" data-path-to-node="24" style="animation: auto ease 0s 1 normal none running none; appearance: none; background-attachment: scroll; background-clip: border-box; background-image: none; background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto; border: 0px rgb(31, 31, 31); clear: none; clip: auto; columns: auto; contain: none; container: none; content: normal; cursor: auto; cx: 0px; cy: 0px; d: none; direction: ltr; display: inline; fill: rgb(0, 0, 0); filter: none; flex-direction: row; flex: 0 1 auto; float: none; gap: normal; hyphens: manual; inset: auto; interactivity: auto; isolation: auto; line-height: 1.15; margin-bottom: 0px; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; margin: 0px; marker: none; mask-clip: border-box; mask-composite: add; mask-image: none; mask-mode: match-source; mask-origin: border-box; mask-repeat: repeat; mask-size: auto; mask: none; offset: normal; opacity: 1; order: 0; outline: rgb(31, 31, 31) none 2.4px; overlay: none; padding: 0px; page: auto; perspective: none; position: static; quotes: auto; r: 0px; resize: none; rotate: none; rule: 2.4px rgb(31, 31, 31); rx: auto; ry: auto; scale: none; speak: normal; stroke: none; transform: none; transition: all; translate: none; visibility: visible; x: 0px; y: 0px; zoom: 1;"&gt;รัน Container จาก Image ที่ดึงมา:&lt;/b&gt;&lt;/div&gt;&lt;br /&gt;&lt;span style="color: red;"&gt;docker run -d -p &lt;/span&gt;&lt;span style="color: #2b00fe;"&gt;80:80&lt;/span&gt;&lt;span style="color: red;"&gt; --name&lt;/span&gt;&lt;span style="color: #ffa400;"&gt; my-web-app&lt;/span&gt;&lt;span style="color: #2b00fe;"&gt; yourusername/php7.4-apache-custom:v1&lt;/span&gt;&lt;/div&gt;&lt;div _ngcontent-ng-c3219552501="" aria-busy="false" aria-live="polite" class="markdown markdown-main-panel md-content enable-luminous-fast-follows enable-updated-hr-color stronger tutor-markdown-rendering" dir="ltr" id="model-response-message-contentr_fa4d90a8af2635a5" inline-copy-host="" style="--animation-duration: 400ms; --fade-animation-function: ease-out; animation: auto ease 0s 1 normal none running none; appearance: none; background-attachment: scroll; background-clip: border-box; background-image: none; background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto; border: 0px rgb(31, 31, 31); clear: none; clip: auto; columns: auto; contain: none; container: none; content: normal; cursor: auto; cx: 0px; cy: 0px; d: none; direction: ltr; fill: rgb(0, 0, 0); filter: none; flex-direction: row; flex: 0 1 auto; float: none; gap: normal; hyphens: manual; inset: auto; interactivity: auto; isolation: auto; line-height: 1.15; margin-bottom: 0px; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; margin: 0px; marker: none; mask-clip: border-box; mask-composite: add; mask-image: none; mask-mode: match-source; mask-origin: border-box; mask-repeat: repeat; mask-size: auto; mask: none; offset: normal; opacity: 1; order: 0; outline: rgb(31, 31, 31) none 2.4px; overlay: none; padding: 0px; page: auto; perspective: none; position: static; quotes: auto; r: 0px; resize: none; rotate: none; rule: 2.4px rgb(31, 31, 31); rx: auto; ry: auto; scale: none; speak: normal; stroke: none; transform: none; transition: all; translate: none; visibility: visible; x: 0px; y: 0px; zoom: 1;"&gt;&lt;br /&gt;&lt;div style="animation: auto ease 0s 1 normal none running none; appearance: none; background-attachment: scroll; background-clip: border-box; background-image: none; background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto; border: 0px rgb(31, 31, 31); clear: none; clip: auto; color: #1f1f1f; columns: auto; contain: none; container: none; content: normal; cursor: auto; cx: 0px; cy: 0px; d: none; direction: ltr; fill: rgb(0, 0, 0); filter: none; flex-direction: row; flex: 0 1 auto; float: none; font-family: &amp;quot;Google Sans Text&amp;quot;, sans-serif; gap: normal; hyphens: manual; inset: auto; interactivity: auto; isolation: auto; line-height: 1.15; margin-bottom: 0px; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; margin: 0px; marker: none; mask-clip: border-box; mask-composite: add; mask-image: none; mask-mode: match-source; mask-origin: border-box; mask-repeat: repeat; mask-size: auto; mask: none; offset: normal; opacity: 1; order: 0; outline: rgb(31, 31, 31) none 2.4px; overlay: none; padding: 0px; page: auto; perspective: none; position: static; quotes: auto; r: 0px; resize: none; rotate: none; rule: 2.4px rgb(31, 31, 31); rx: auto; ry: auto; scale: none; speak: normal; stroke: none; transform: none; transition: all; translate: none; visibility: visible; x: 0px; y: 0px; zoom: 1;"&gt;&lt;b data-index-in-node="0" data-path-to-node="26" style="animation: auto ease 0s 1 normal none running none; appearance: none; background-attachment: scroll; background-clip: border-box; background-image: none; background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto; border: 0px rgb(31, 31, 31); clear: none; clip: auto; columns: auto; contain: none; container: none; content: normal; cursor: auto; cx: 0px; cy: 0px; d: none; direction: ltr; display: inline; fill: rgb(0, 0, 0); filter: none; flex-direction: row; flex: 0 1 auto; float: none; gap: normal; hyphens: manual; inset: auto; interactivity: auto; isolation: auto; line-height: 1.15; margin-bottom: 0px; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; margin: 0px; marker: none; mask-clip: border-box; mask-composite: add; mask-image: none; mask-mode: match-source; mask-origin: border-box; mask-repeat: repeat; mask-size: auto; mask: none; offset: normal; opacity: 1; order: 0; outline: rgb(31, 31, 31) none 2.4px; overlay: none; padding: 0px; page: auto; perspective: none; position: static; quotes: auto; r: 0px; resize: none; rotate: none; rule: 2.4px rgb(31, 31, 31); rx: auto; ry: auto; scale: none; speak: normal; stroke: none; transform: none; transition: all; translate: none; visibility: visible; x: 0px; y: 0px; zoom: 1;"&gt;หรือใช้ในไฟล์ &lt;code data-index-in-node="14" data-path-to-node="26" style="animation: auto ease 0s 1 normal none running none; appearance: none; background: none 0% 0% / auto repeat scroll padding-box border-box rgb(242, 240, 240); border: 0px rgba(0, 0, 0, 0.55); clear: none; clip: auto; color: rgba(0, 0, 0, 0.55); columns: auto; contain: none; container: none; content: normal; cursor: auto; cx: 0px; cy: 0px; d: none; direction: ltr; display: inline-block; fill: rgb(0, 0, 0); filter: none; flex-direction: row; flex: 0 1 auto; float: none; font-family: &amp;quot;Google Sans Text&amp;quot;, sans-serif; font-feature-settings: normal; font-kerning: auto; font-language-override: normal; font-optical-sizing: auto; font-size-adjust: none; font-size: 15px; font-stretch: normal; font-variant: normal; font-variation-settings: normal; font-weight: normal; gap: normal; hyphens: manual; inset: auto; interactivity: auto; isolation: auto; line-height: 1.15; margin-bottom: 0px; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; margin: 0px; marker: none; mask-clip: border-box; mask-composite: add; mask-image: none; mask-mode: match-source; mask-origin: border-box; mask-repeat: repeat; mask-size: auto; mask: none; offset: normal; opacity: 1; order: 0; outline: rgba(0, 0, 0, 0.55) none 2.4px; overlay: none; padding: 4px 6px; page: auto; perspective: none; position: static; quotes: auto; r: 0px; resize: none; rotate: none; rule: 2.4px rgba(0, 0, 0, 0.55); rx: auto; ry: auto; scale: none; speak: normal; stroke: none; transform: none; transition: all; translate: none; visibility: visible; x: 0px; y: 0px; zoom: 1;"&gt;docker-compose.yml&lt;/code&gt;:&lt;/b&gt;&lt;/div&gt;&lt;/div&gt;&lt;blockquote&gt;&lt;span style="color: #800180;"&gt;version: '3.8' &lt;br /&gt;services: &lt;br /&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;web:&lt;br /&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;container_name: my-web-app&lt;br /&gt;    &lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;image: yourusername/php7.4-apache-custom:v1 &lt;br /&gt;    &lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;ports:&amp;nbsp;&lt;/span&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;span style="color: #800180;"&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;- "80:80"&lt;/span&gt;&lt;/blockquote&gt;&lt;blockquote&gt;    &lt;span style="color: #800180;"&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;volumes: &lt;/span&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;span style="color: #800180;"&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/span&gt;- ./src:/var/www/html&lt;/span&gt;&lt;/p&gt;&lt;blockquote&gt;    &lt;span style="color: #800180;"&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/span&gt;restart: unless-stopped&lt;/span&gt;&lt;/blockquote&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;ข้อควรระวังเรื่องความปลอดภัย:&lt;/b&gt;&lt;br /&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;&lt;span style="color: red;"&gt;หาก Image ดังกล่าวมีโค้ดส่วนตัว, ซอร์สโค้ดที่มีช่องโหว่สำหรับการทดสอบ หรือมี credentials/ไฟล์คอนฟิกลับอยู่ข้างใน ให้ตั้งค่า Repository บน Docker Hub เป็น Private&lt;/span&gt; เสมอ (หรือใช้บริการ Container Registry ภายใน เช่น Harbor, GitHub Packages (GHCR), หรือ AWS ECR) เพื่อป้องกันไม่ให้บุคคลภายนอกเข้าถึงได้&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div id="gtx-trans" style="left: -75px; position: absolute; top: -20px;"&gt;&lt;div class="gtx-trans-icon"&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;Are u sure?&lt;/div&gt;</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>Copy large folder in Linux Server  (แนะนำ rsync มี progress และสามารถ resume ได้)</title><link>http://juuier.blogspot.com/2026/10/copy-large-folder-in-linux-server-rsync.html</link><author>noreply@blogger.com (juuier)</author><pubDate>Fri, 23 Oct 2026 20:38:37 +0700</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-34115975.post-866587877531384915</guid><description>&lt;p&gt;Ref: Gemini&lt;/p&gt;&lt;p&gt;ถ้าโฟลเดอร์ใน Linux Server มีขนาดประมาณ 28 GB และต้องการคัดลอกเป็นโฟลเดอร์ใหม่ ผมแนะนำใช้ &lt;code&gt;rsync&lt;/code&gt; ครับ เพราะเหมาะกับข้อมูลขนาดใหญ่ สามารถแสดงความคืบหน้า และสั่งต่อได้หากการคัดลอกหยุดกลางคัน&lt;/p&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;h2&gt;&lt;span style="color: #ff00fe;"&gt;วิธีที่ 1: ใช้ rsync (แนะนำ)&lt;/span&gt;&lt;/h2&gt;&lt;p&gt;สมมติว่าต้องการคัดลอกโฟลเดอร์ &lt;code&gt;/home/user/myfolder&lt;/code&gt; ไปเป็น &lt;code&gt;/home/user/myfolder_backup&lt;/code&gt;&lt;/p&gt;&lt;div&gt;&lt;pre dir="ltr"&gt;&lt;code&gt;&lt;span style="color: red;"&gt;rsync -a --info=progress2 /home/user/myfolder/ /home/user/myfolder_backup/&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;ความหมายของคำสั่ง&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;p&gt;&lt;code&gt;rsync&lt;/code&gt; ใช้คัดลอกและซิงก์ข้อมูล&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;code&gt;-a&lt;/code&gt; รักษาสิทธิ์ไฟล์ เวลา และโครงสร้างโฟลเดอร์&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;code&gt;--info=progress2&lt;/code&gt; แสดงความคืบหน้ารวมของการคัดลอก&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;code&gt;/home/user/myfolder/&lt;/code&gt; คือโฟลเดอร์ต้นทาง&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;code&gt;/home/user/myfolder_backup/&lt;/code&gt; คือโฟลเดอร์ปลายทาง&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;ข้อควรระวัง: เครื่องหมาย &lt;code&gt;/&lt;/code&gt; หลังชื่อโฟลเดอร์ต้นทาง หมายถึงคัดลอก ข้อมูลภายในโฟลเดอร์ ไปยังปลายทาง&lt;/p&gt;&lt;p&gt;หากต้องการคัดลอกทั้งโฟลเดอร์โดยให้มีโฟลเดอร์ต้นทางอยู่ข้างใน ใช้:&lt;/p&gt;&lt;div&gt;&lt;pre dir="ltr"&gt;&lt;code&gt;rsync -a --info=progress2 /home/user/myfolder /home/user/myfolder_backup/&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;ผลลัพธ์จะเป็น &lt;code&gt;/home/user/myfolder_backup/myfolder/&lt;/code&gt;&lt;/p&gt;&lt;h2&gt;วิธีที่ 2: ใช้ cp แบบง่าย (ไม่มีสถานะบอกว่าถึงใหนแล้ว)&lt;/h2&gt;&lt;div&gt;&lt;pre dir="ltr"&gt;&lt;code&gt;cp -a /home/user/myfolder /home/user/myfolder_backup&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;ul&gt;&lt;li&gt;&lt;p&gt;&lt;code&gt;-a&lt;/code&gt; รักษาคุณสมบัติไฟล์และโฟลเดอร์&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;ไม่มีแถบแสดงความคืบหน้าโดยค่าเริ่มต้น&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;หากข้อมูลหยุดคัดลอก จะไม่มีระบบ resume ที่สะดวกเหมือน &lt;code&gt;rsync&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;h2&gt;วิธีที่ 3: ใช้ rsync ผ่าน SSH ระหว่าง Server&lt;/h2&gt;&lt;p&gt;หากต้นทางอยู่ Server 1 และต้องการคัดลอกไป Server 2:&lt;/p&gt;&lt;div&gt;&lt;pre dir="ltr"&gt;&lt;code&gt;rsync -a --info=progress2 --partial \
  /home/user/myfolder/ \
  user@192.168.1.1:/home/user/myfolder_backup/&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;&lt;code&gt;--partial&lt;/code&gt; ช่วยเก็บไฟล์ที่คัดลอกไม่เสร็จไว้ เพื่อให้สั่ง &lt;code&gt;rsync&lt;/code&gt; ซ้ำและทำงานต่อได้สะดวกขึ้น&lt;/p&gt;&lt;h2&gt;ก่อนคัดลอกข้อมูล 28 GB ควรตรวจสอบพื้นที่ก่อน&lt;/h2&gt;&lt;div&gt;&lt;pre dir="ltr"&gt;&lt;code&gt;df -h&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;ดูพื้นที่ว่างของดิสก์ปลายทาง และตรวจสอบขนาดโฟลเดอร์ต้นทาง:&lt;/p&gt;&lt;div&gt;&lt;pre dir="ltr"&gt;&lt;code&gt;du -sh /home/user/myfolder&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;คำแนะนำของผม: ถ้าคัดลอกภายในเครื่องเดียวกัน ใช้ &lt;code&gt;rsync -a --info=progress2&lt;/code&gt; ครับ แต่ถ้าต้องคัดลอกระหว่าง Server ผ่าน SSH ก็ใช้ &lt;code&gt;rsync&lt;/code&gt; ได้เช่นกัน&lt;/p&gt;&lt;p&gt;ขอถามเพิ่มเติมนิดหนึ่งครับ: คุณจะคัดลอกโฟลเดอร์ 28 GB ภายใน Server เครื่องเดียวกัน หรือ จาก Server เครื่องหนึ่งไปอีก Server หนึ่งผ่านเครือข่าย ครับ? ผมจะได้แนะนำคำสั่งที่เหมาะสมที่สุดให้ครับ&lt;/p&gt;&lt;p&gt;&lt;b&gt;เพิ่มเติม&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;กรณี rsync แต่ลืม sudo ให้ทำการยกเลิก process โดยหา process id ก่อนแล้วค่อย kill process&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;span style="color: red;"&gt;ps aux | grep '[r]sync'&lt;/span&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;ผลลัพธ์&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;&lt;span style="color: #800180;"&gt;user&amp;nbsp; &amp;nbsp; &amp;nbsp;3722318&amp;nbsp; 4.1&amp;nbsp; 0.0&amp;nbsp; 74652 31044 pts/3&amp;nbsp; &amp;nbsp; D+&amp;nbsp; &amp;nbsp;20:33&amp;nbsp; &amp;nbsp;1:14 rsync -a --info=progress2 ./folder/ ./folder_bak/&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #800180;"&gt;user&amp;nbsp; &amp;nbsp; &amp;nbsp; 3722320&amp;nbsp; 0.1&amp;nbsp; 0.0&amp;nbsp; 49636&amp;nbsp; 9764 pts/3&amp;nbsp; &amp;nbsp; S+&amp;nbsp; &amp;nbsp;20:33&amp;nbsp; &amp;nbsp;0:01 rsync -a --info=progress2 ./folder/ ./folder_bak/&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #800180;"&gt;user&amp;nbsp; &amp;nbsp; &amp;nbsp; 3722321&amp;nbsp; 4.2&amp;nbsp; 0.0&amp;nbsp; 47380 10076 pts/3&amp;nbsp; &amp;nbsp; S+&amp;nbsp; &amp;nbsp;20:33&amp;nbsp; &amp;nbsp;1:16 rsync -a --info=progress2 ./folder/ ./folder_bak&lt;/span&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;สั่งหยุดทำงาน&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;span style="color: red;"&gt;kill -INT 3722318 3722320 3722321&lt;/span&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;ตรวจสอบ&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;span style="color: red;"&gt;ps -o pid,stat,cmd -p 3722318,3722320,3722321&lt;/span&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;ถ้ายังไม่หยุด&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;span style="color: red;"&gt;kill -TERM 3722318 3722320 3722321&lt;/span&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;&lt;div id="gtx-trans" style="left: -1px; position: absolute; top: 1707.3px;"&gt;&lt;div class="gtx-trans-icon"&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;Are u sure?&lt;/div&gt;</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>Delete docker image ที่ไม่ใช้แล้ว</title><link>http://juuier.blogspot.com/2026/10/delete-docker-image.html</link><author>noreply@blogger.com (juuier)</author><pubDate>Fri, 23 Oct 2026 18:47:15 +0700</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-34115975.post-8991142885463106699</guid><description>&lt;div&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;จะลบได้คือ ต้องไม่มี container ตัวใหนใช้งานอยู่ ไม่งั้นจะไม่สามารถลบได้ ถ้าต้องการลบต้อง stop และ delete container นั้นก่อนลบ&lt;/li&gt;&lt;li&gt;แสดง image ที่ถูกสร้างไว้&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;blockquote&gt;&lt;span style="color: red;"&gt;docker image ls&lt;/span&gt;&lt;/blockquote&gt;&lt;div&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;ลบ image แบบระบุ id&lt;/li&gt;&lt;/ul&gt;&lt;div&gt;&lt;span style="color: red;"&gt;&lt;/span&gt;&lt;blockquote&gt;&lt;span style="color: red;"&gt;docker image rm &amp;lt;id/image name&amp;gt;&lt;/span&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;div&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;ลบ image ทั้งหมดที่ไม่มี container ตัวใหนใช้งาน&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color: red;"&gt;&lt;/span&gt;&lt;blockquote&gt;&lt;span style="color: red;"&gt;docker image prune -a&lt;/span&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;Ref&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;Gemini&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div id="gtx-trans" style="left: 36px; position: absolute; top: 196.8px;"&gt;&lt;div class="gtx-trans-icon"&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;Are u sure?&lt;/div&gt;</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>ทบทวน Install SNMP on Ubuntu 24.04</title><link>http://juuier.blogspot.com/2026/10/install-snmp-on-ubuntu-2404.html</link><author>noreply@blogger.com (juuier)</author><pubDate>Thu, 22 Oct 2026 10:39:56 +0700</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-34115975.post-4855471065242709803</guid><description>&lt;b&gt;Ref: gemini &amp;amp; me style&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;ติดตั่งตัว snmp service และ client&lt;/li&gt;&lt;/ul&gt;&lt;blockquote&gt;&lt;span style="color: red;"&gt;sudo apt update&lt;br /&gt;&lt;br /&gt;sudo apt install snmpd snmp&lt;/span&gt;&lt;/blockquote&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;สำรองไฟล์และแก้ไข&lt;/li&gt;&lt;/ul&gt;&lt;blockquote&gt;&lt;span style="color: red;"&gt;sudo cp -a /etc/snmp/snmpd.conf /etc/nsnmp/snmpd.conf.bak&lt;br /&gt;&lt;br /&gt;sudo nano /etc/snmp/snmpd.conf&lt;/span&gt;&lt;/blockquote&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;หา agentAddress  ประมาณบรรทัดที 49 เดิมแล้วแก้เป็นบรรทัดนี้ โดยให้เหลือบรรทัดที่ใช้งานเพียงบรรทัดเดียว: (ใช้จริงผม ไม่ใส่ แต่แค่คอมเม้น &lt;span style="color: #38761d;"&gt;#&amp;nbsp;agentaddress 127.0.0.1,[::1]&lt;/span&gt;&amp;nbsp;ไว้พอคับ)&lt;/li&gt;&lt;/ul&gt;&lt;blockquote&gt;&lt;span style="color: #800180;"&gt;# agentaddress  127.0.0.1,[::1]&lt;/span&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;/p&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;คอมเม้นแล้ว จะใส่ udp:161 ใส่หรือไม่ใส่ก็ได้คับ client สามารถ snmpwalk ได้&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;span style="color: #2b00fe;"&gt; agentAddress udp:161&lt;/span&gt;&lt;/blockquote&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;มองหา view systemonly ประมาณบรรทัดที่ 63-64&lt;/li&gt;&lt;li&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;เพิ่มการดึงค่าให้ได้เยอะสุดโดยเติม .1 เข้ากลุ่ม systemonly  หรือจะสร้าง กลุ่มอื่นก็ได้&lt;/li&gt;&lt;/ul&gt;&lt;blockquote&gt;&lt;span style="color: red;"&gt;view      systemonly included .&lt;/span&gt;&lt;span style="color: #2b00fe;"&gt;1&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: #800180;"&gt;view   systemonly  included   .1.3.6.1.2.1.1&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: #800180;"&gt;view   systemonly  included   .1.3.6.1.2.1.25.1&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: red;"&gt;view &lt;/span&gt;&lt;span style="color: #2b00fe;"&gt;mygroup&lt;/span&gt;&lt;span style="color: red;"&gt; included &lt;/span&gt;&lt;span style="color: #2b00fe;"&gt;.1&lt;/span&gt;&lt;/blockquote&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;จากนั้นเพิ่ม สิทธิ์เครื่องเข้าถึง ค่าเริ่มต้นเป็น public default น่าจะ read ได้ทุกเครื่อง ประมาณบรรทัด 71-72&lt;/li&gt;&lt;/ul&gt;&lt;div&gt;&lt;blockquote&gt;&lt;span style="color: #800180;"&gt;rocommunity  public default -V systemonly&lt;br /&gt;rocommunity6 public default -V systemonly&lt;/span&gt;&lt;/blockquote&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;ควรคอมเม้นไม่ให้ใช้ค่าเริ่มต้น&lt;/li&gt;&lt;/ul&gt;&lt;blockquote&gt;&lt;span style="color: #38761d;"&gt;# rocommunity public default -V systemonly&lt;br /&gt;# rocommunity6 public default -V systemonly&lt;/span&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;div&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;เลือกตั้งค่าเลยจะใช้แบบใหน&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;blockquote&gt;&lt;div&gt;# อนุญาตเฉพาะ ip โดย oid กลุ่ม systemonly&amp;nbsp;&lt;br /&gt;&lt;span style="color: #800180;"&gt;rocommunity &lt;/span&gt;&lt;span style="color: red;"&gt;mycms 192.1.1.1&lt;/span&gt;&lt;span style="color: #800180;"&gt; -V &lt;/span&gt;&lt;span style="color: #2b00fe;"&gt;systemonly&lt;/span&gt;&amp;nbsp;&lt;/div&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;div&gt;# อนุญาตทุก ip แต่ใช้ได้แค่ oid mygroup&lt;br /&gt;&lt;span style="color: #2b00fe;"&gt;rocommunity &lt;/span&gt;&lt;span style="color: red;"&gt;mycms default &lt;/span&gt;&lt;span style="color: #2b00fe;"&gt;-V &lt;/span&gt;&lt;span style="color: red;"&gt;mygroup&lt;/span&gt;&amp;nbsp;&lt;/div&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;div&gt;# allow subnet&lt;br /&gt;&lt;span style="color: #800180;"&gt;rocommunity &lt;/span&gt;&lt;span style="color: red;"&gt;mySecretKey 10.10.20.0/24&lt;/span&gt;&lt;span style="color: #800180;"&gt; -V systemonly&lt;/span&gt;&amp;nbsp;&lt;/div&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;div&gt;# allow เฉพาะ localhost&lt;br /&gt;&lt;span style="color: #800180;"&gt;rocommunity &lt;/span&gt;&lt;span style="color: red;"&gt;mySecretKey 127.0.0.1&lt;/span&gt;&lt;span style="color: #800180;"&gt; -V systemonly&lt;/span&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;div&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;ตั้ง service ให้เปิด ตอนบูตเครื่องใหม่ทุกครั้ง (ปกติติดตั้งเสร็จมัน enable ให้อัตโนมัติอยู่แล้ว)&lt;/li&gt;&lt;/ul&gt;&lt;blockquote&gt;&lt;span style="color: red;"&gt;sudo systemctl enable —now snmpd&lt;br /&gt;&lt;br /&gt;sudo systemctl restart snmpd&lt;br /&gt;&lt;br /&gt;sudo systemctl status snmpd —no-pager&lt;/span&gt;&lt;/blockquote&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;ตรวจสอบ firewall port 161, snmp service ที่ฝั่ง server ให้อนุญาตด้วย&lt;/li&gt;&lt;li&gt;ทดสอบ snmpwalk ฝั่ง client&lt;/li&gt;&lt;/ul&gt;&lt;blockquote&gt;&lt;span style="color: red;"&gt; snmpwalk -v2c -c 'MySnmpSecret123' UBUNTU_IP .1.3.6.1.2.1.1&lt;/span&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;span style="color: red;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;span style="color: red;"&gt;snmpwalk -v2c -c 'MySnmpSecret123' UBUNTU_IP .1&lt;/span&gt;&amp;nbsp;&lt;/blockquote&gt;&lt;p&gt;&lt;b&gt;เพิ่มเติม&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;ตรวจสอบ firewal open centos 7&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;&lt;span style="color: red;"&gt;sudo firewall-cmd --list-all&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: red;"&gt;sudo iptables -L -n -v | grep 161&lt;/span&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;เพิ่ม อนุญาต service&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;&lt;span style="color: red;"&gt;sudo firewall-cmd --permanent --add-service=snmp&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: red;"&gt;sudo firewall-cmd --reload&lt;/span&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;/div&gt;&lt;div id="gtx-trans" style="left: 32px; position: absolute; top: 1562.5px;"&gt;&lt;div class="gtx-trans-icon"&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;Are u sure?&lt;/div&gt;</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>ตั้งค่า macOS ให้เป็น server mode</title><link>http://juuier.blogspot.com/2026/10/macos-server-mode.html</link><author>noreply@blogger.com (juuier)</author><pubDate>Wed, 21 Oct 2026 10:02:40 +0700</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-34115975.post-2745258724381892867</guid><description>&lt;p&gt;&lt;b&gt;Ref: Gemini&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;ประเด็นคือ ใช้ macos รัน web, db&lt;/li&gt;&lt;li&gt;แต่เข้าใช้งานบางครั้ง เข้าไม่ได้ คล้าย mac เข้า standby / sleep mode&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;Solved&amp;nbsp;&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;เปิดโหมด server โดยปิด โหมดต่างๆ&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;h3 data-path-to-node="3"&gt;วิธีแก้ไขให้ macOS ทำงานตลอดเวลา ไม่ตัดการเชื่อมต่อ&lt;/h3&gt;&lt;p data-path-to-node="4"&gt;&lt;/p&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;รันชุดคำสั่งด้านล่างนี้ใน Terminal ครั้งเดียว เพื่อปิดระบบ Sleep และ Standby ทั้งหมด:&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;p data-path-to-node="4"&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;p data-path-to-node="4"&gt;&lt;span style="color: red;"&gt;sudo pmset -a sleep 0&lt;/span&gt;&lt;/p&gt;&lt;p data-path-to-node="4"&gt;&lt;span style="color: red;"&gt;sudo pmset -a standby 0&lt;/span&gt;&lt;/p&gt;&lt;p data-path-to-node="4"&gt;&lt;span style="color: red;"&gt;sudo pmset -a autopoweroff 0&lt;/span&gt;&lt;/p&gt;&lt;p data-path-to-node="4"&gt;&lt;span style="color: red;"&gt;sudo pmset -a powernap 0&lt;/span&gt;&lt;/p&gt;&lt;p data-path-to-node="4"&gt;&lt;span style="color: red;"&gt;sudo pmset -a disksleep 0&lt;/span&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p data-path-to-node="4"&gt;&lt;/p&gt;&lt;p data-path-to-node="6"&gt;&lt;i data-index-in-node="0" data-path-to-node="6"&gt;&lt;b&gt;คำอธิบายการตั้งค่า:&lt;/b&gt;&lt;/i&gt;&lt;/p&gt;&lt;p data-path-to-node="4"&gt;&lt;/p&gt;&lt;h3 data-path-to-node="9"&gt;&lt;/h3&gt;&lt;p&gt;&lt;/p&gt;&lt;ul data-path-to-node="7"&gt;&lt;li&gt;&lt;p data-path-to-node="7,0,0"&gt;&lt;code data-index-in-node="0" data-path-to-node="7,0,0"&gt;sleep 0&lt;/code&gt;&lt;span&gt;:&lt;/span&gt;&lt;span&gt; ปิด System Sleep ถาวร (เครื่องไม่หลับแม้ไม่ได้แตะต้อง)&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p data-path-to-node="7,1,0"&gt;&lt;code data-index-in-node="0" data-path-to-node="7,1,0"&gt;standby 0&lt;/code&gt;&lt;span&gt; และ &lt;/span&gt;&lt;code data-index-in-node="14" data-path-to-node="7,1,0"&gt;autopoweroff 0&lt;/code&gt;&lt;span&gt;:&lt;/span&gt;&lt;span&gt; ปิดการตัดไฟเข้าโหมด Deep Sleep&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p data-path-to-node="7,2,0"&gt;&lt;code data-index-in-node="0" data-path-to-node="7,2,0"&gt;powernap 0&lt;/code&gt;&lt;span&gt;:&lt;/span&gt;&lt;span&gt; ปิด Power Nap เพื่อไม่ให้ระบบตัดสลับสถานะไปมา&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p data-path-to-node="7,3,0"&gt;&lt;code data-index-in-node="0" data-path-to-node="7,3,0"&gt;disksleep 0&lt;/code&gt;&lt;span&gt;:&lt;/span&gt;&lt;span&gt; ให้ไดรฟ์พร้อมตอบสนองคำขอของเว็บเซิร์ฟเวอร์ตลอดเวลา&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p data-path-to-node="7,4,0"&gt;&lt;span&gt;ธง &lt;/span&gt;&lt;code data-index-in-node="3" data-path-to-node="7,4,0"&gt;-a&lt;/code&gt;&lt;span&gt; (All) จะบังคับใช้ทั้งตอนเสียบสายชาร์จ (AC Power) และแบตเตอรี่&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div&gt;&lt;h3 data-path-to-node="9"&gt;ขั้นตอนการตรวจสอบหลังแก้ไข&lt;/h3&gt;&lt;ol class="md-has-block-component" data-path-to-node="10" start="1"&gt;&lt;li&gt;&lt;p data-path-to-node="10,0,0"&gt;รันคำสั่งตรวจสอบค่าใหม่อีกครั้ง: &lt;span style="color: red;"&gt;pmset -g&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;div&gt;&lt;h3 data-path-to-node="3"&gt;ข้อควรระวังเพิ่มเติมสำหรับ MacBook&lt;/h3&gt;&lt;p data-path-to-node="4"&gt;เนื่องจากเครื่องเป็น MacBook Pro หากต้องการให้เครื่องเปิดให้บริการตลอดเวลาโดยไม่หลุด ต้องตรวจสอบอีก 2 จุดสำคัญ:&lt;/p&gt;&lt;ol class="md-has-block-component" data-path-to-node="5" start="1"&gt;&lt;li&gt;&lt;p data-path-to-node="5,0,0"&gt;&lt;b data-index-in-node="0" data-path-to-node="5,0,0"&gt;กรณีมีการพับฝาจอ (Clamshell Mode):&lt;/b&gt;&lt;/p&gt;&lt;ul data-path-to-node="5,0,1"&gt;&lt;li&gt;&lt;p data-path-to-node="5,0,1,0,0"&gt;ระบบของ MacBook จะบังคับ Sleep ทันทีที่พับฝาจอ เว้นแต่ว่าจะ &lt;b data-index-in-node="60" data-path-to-node="5,0,1,0,0"&gt;เสียบสายชาร์จ (Power Adapter)&lt;/b&gt; และ &lt;b data-index-in-node="94" data-path-to-node="5,0,1,0,0"&gt;ต่อหน้าจอนอก&lt;/b&gt; ไว้&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p data-path-to-node="5,0,1,1,0"&gt;หากต้องการพับฝาจอทิ้งไว้โดย&lt;b data-index-in-node="27" data-path-to-node="5,0,1,1,0"&gt;ไม่ต่อจอนอก&lt;/b&gt;และไม่ให้เครื่องดับ ให้รันคำสั่งนี้เพิ่ม:&lt;/p&gt;&lt;response-element class="no-md" ng-version="0.0.0-PLACEHOLDER"&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;code-block _nghost-ng-c1404798789="" class="ng-tns-c1404798789-27 enable-luminous-code-block ng-star-inserted"&gt;&lt;!----&gt;&lt;!----&gt;&lt;div _ngcontent-ng-c1404798789="" class="code-block ng-tns-c1404798789-27 ng-animate-disabled ng-trigger ng-trigger-codeBlockRevealAnimation" data-hveid="0" data-ved="0CAAQhtANahgKEwj3iY3jjMqXAxUAAAAAHQAAAAAQugE" decode-data-ved="1" jslog="223238;track:impression,attention;BardVeMetadataKey:W1sicl81ODVlNzAwZGYxNDU0MGY1IiwiY19kZGQ5NjJlOTc4ODkxOTI4IixudWxsLCJyY19jMTU3ZWI5NzEzYmMyYTMxIixudWxsLG51bGwsInRoIixudWxsLDEsbnVsbCxudWxsLDAsMF1d"&gt;&lt;!----&gt;&lt;div _ngcontent-ng-c1404798789="" class="formatted-code-block-internal-container ng-tns-c1404798789-27"&gt;&lt;div _ngcontent-ng-c1404798789="" class="animated-opacity ng-tns-c1404798789-27"&gt;&lt;div _ngcontent-ng-c1404798789="" class="code-block-decoration header-formatted gds-emphasized-body-m ng-tns-c1404798789-27 ng-star-inserted"&gt;&lt;span style="color: red;"&gt;sudo pmset -a disablesleep 1&lt;/span&gt;&lt;/div&gt;&lt;!----&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;/code-block&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;/response-element&gt;&lt;p data-path-to-node="5,0,1,1,2"&gt;&lt;i data-index-in-node="0" data-path-to-node="5,0,1,1,2"&gt;(คำสั่งนี้จะสั่งห้ามไม่ให้ระบบ Sleep ในทุกกรณี แม้กระทั่งตอนพับจอ)&lt;/i&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;li&gt;&lt;p data-path-to-node="5,1,0"&gt;&lt;b data-index-in-node="0" data-path-to-node="5,1,0"&gt;ระบบ Wi-Fi ตัดการทำงานเมื่อไม่ได้ใช้งาน:&lt;/b&gt;&lt;/p&gt;&lt;ul data-path-to-node="5,1,1"&gt;&lt;li&gt;&lt;p data-path-to-node="5,1,1,0,0"&gt;หาก MacBook เชื่อมต่อผ่าน Wi-Fi ตัวชิปไร้สายอาจเข้าโหมดประหยัดพลังงานเมื่อไม่มีทราฟฟิกวิ่ง แนะนำให้ใช้สาย &lt;b data-index-in-node="106" data-path-to-node="5,1,1,0,0"&gt;LAN (USB-C to Ethernet)&lt;/b&gt; หรือตั้ง background ping เพื่อให้ interface ตื่นตัวอยู่เสมอ:&lt;/p&gt;&lt;response-element class="no-md" ng-version="0.0.0-PLACEHOLDER"&gt;&lt;code-block _nghost-ng-c1404798789="" class="ng-tns-c1404798789-28 enable-luminous-code-block ng-star-inserted"&gt;&lt;div _ngcontent-ng-c1404798789="" class="code-block ng-tns-c1404798789-28 ng-animate-disabled ng-trigger ng-trigger-codeBlockRevealAnimation" data-hveid="0" data-ved="0CAAQhtANahgKEwj3iY3jjMqXAxUAAAAAHQAAAAAQuwE" decode-data-ved="1" jslog="223238;track:impression,attention;BardVeMetadataKey:W1sicl81ODVlNzAwZGYxNDU0MGY1IiwiY19kZGQ5NjJlOTc4ODkxOTI4IixudWxsLCJyY19jMTU3ZWI5NzEzYmMyYTMxIixudWxsLG51bGwsInRoIixudWxsLDEsbnVsbCxudWxsLDAsMF1d"&gt;&lt;div _ngcontent-ng-c1404798789="" class="formatted-code-block-internal-container ng-tns-c1404798789-28"&gt;&lt;div _ngcontent-ng-c1404798789="" class="animated-opacity ng-tns-c1404798789-28"&gt;&lt;!----&gt;&lt;pre _ngcontent-ng-c1404798789="" class="ng-tns-c1404798789-28"&gt;&lt;code _ngcontent-ng-c1404798789="" class="code-container formatted ng-tns-c1404798789-28" data-test-id="code-content" role="text"&gt;&lt;span style="color: red;"&gt;ping -i 60 1.1.1.1 &amp;gt; /dev/null 2&amp;gt;&amp;amp;1 &amp;amp;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/code-block&gt;&lt;/response-element&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;div id="gtx-trans" style="left: -33px; position: absolute; top: 1184.03px;"&gt;&lt;div class="gtx-trans-icon"&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;Are u sure?&lt;/div&gt;</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>Check port state on macOS</title><link>http://juuier.blogspot.com/2026/10/check-port-state-on-macos.html</link><author>noreply@blogger.com (juuier)</author><pubDate>Wed, 21 Oct 2026 08:46:05 +0700</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-34115975.post-5077455881461183701</guid><description>&lt;p&gt;&lt;/p&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;&amp;nbsp;ใน linux ส่วนตัวใช้&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: red;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;span style="color: red;"&gt;netstat -na | grep ":&lt;/span&gt;&lt;span style="color: #2b00fe;"&gt;&amp;lt;port_number&amp;gt;&lt;/span&gt;&lt;span style="color: red;"&gt;"&lt;/span&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;ใน macos gemini แนะนำแบบนี้&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;Method 1: lsof (recommened)&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: red;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;span style="color: red;"&gt;lsof -i :&lt;/span&gt;&lt;span style="color: #2b00fe;"&gt;&amp;lt;port_number&amp;gt;&lt;/span&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;หรือ&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;span style="color: red;"&gt;lsof -i :3000 -sTCP:LISTEN&lt;/span&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;ผลลัพธ์จะประมาณ&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #800180;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;&lt;span style="color: #800180;"&gt;COMMAND&amp;nbsp; &amp;nbsp;PID USER&amp;nbsp; &amp;nbsp;FD&amp;nbsp; &amp;nbsp;TYPE&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;DEVICE SIZE/OFF NODE NAME&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #800180;"&gt;node&amp;nbsp; &amp;nbsp; 12345 user&amp;nbsp; &amp;nbsp;23u&amp;nbsp; IPv6 0x1234567890abcdef&amp;nbsp; &amp;nbsp; &amp;nbsp; 0t0&amp;nbsp; TCP *:3000 (LISTEN)&lt;/span&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;span style="color: #800180;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;Method 2: netstat&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;คำสั่ง &lt;code data-index-in-node="7" data-path-to-node="12"&gt;netstat&lt;/code&gt; บน macOS จะใช้ไวยากรณ์ของฝั่ง BSD ไม่เหมือน Linux หากต้องการดูพอร์ต TCP ที่กำลัง LISTEN ให้ปรับคำสั่งเป็น:&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;span style="color: red;"&gt;netstat -anv -p tcp | grep &lt;/span&gt;&lt;span style="color: #2b00fe;"&gt;3000&lt;/span&gt;&amp;nbsp;&lt;/blockquote&gt;&lt;blockquote&gt;-a: แสดง socket ทั้งหมด&lt;br /&gt;-n: แสดงเป็นตัวเลข IP และ Port (ไม่แปลงเป็นชื่อโฮสต์/ชื่อบริการ)&lt;br /&gt;-v: แสดงข้อมูลแบบละเอียดขึ้น (รวมถึง PID ในคอลัมน์ขวาสุด)&lt;br /&gt;-p tcp: กรองเฉพาะโปรโตคอล TCP&lt;/blockquote&gt;&lt;b&gt;Method 3 : nc (netcat)&lt;/b&gt;&lt;br /&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;หากต้องการเพียงแค่เช็กสถานะว่าพอร์ตเปิดอยู่และเชื่อมต่อได้หรือไม่ โดยไม่จำเป็นต้องดู Process ID:&lt;/li&gt;&lt;/ul&gt;&lt;blockquote&gt;&lt;span style="color: red;"&gt;nc -zv 127.0.0.1 &lt;/span&gt;&lt;span style="color: #2b00fe;"&gt;3000&lt;/span&gt;&lt;/blockquote&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;ผลลัพธ์หากพอร์ตเปิด: Connection to 127.0.0.1 port 3000 [tcp/*] succeeded! &lt;/li&gt;&lt;li&gt;ผลลัพธ์หากพอร์ตปิด: Connection to 127.0.0.1 port 3000 [tcp/*] failed: Connection refused&lt;/li&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;Are u sure?&lt;/div&gt;</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>ติดตั้ง PM2 เพื่อรัน Node project ใช้งานบน macOS</title><link>http://juuier.blogspot.com/2026/10/pm2-node-project-macos.html</link><author>noreply@blogger.com (juuier)</author><pubDate>Wed, 21 Oct 2026 08:27:39 +0700</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-34115975.post-3357190000057152016</guid><description>&lt;p&gt;&lt;b&gt;&amp;nbsp;Ref:&amp;nbsp;&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;&lt;b&gt;Gemini&lt;/b&gt;&lt;/li&gt;&lt;li&gt;&lt;b&gt;https://thankzaki.medium.com/run-nodejs-with-pm2-5d88add93b25&lt;/b&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;div class="n6owBd awi2gc" data-complete="true" data-hveid="CAIIAAgACAUQAA" data-sfc-cp="" data-sfc-root="c" jsaction="" jscontroller="TDBkbc#Ml18Xb" jsuid="Mvhwcf_p" style="border-bottom: 0px rgb(230, 232, 240); font-family: &amp;quot;Google Sans&amp;quot;, sans-serif; font-size: 16px; margin: 0px 0px 16px;"&gt;&lt;span data-subtree="aimfl,mfl" style="border-bottom: 0px rgb(230, 232, 240); margin: 0px;"&gt;การใช้ &lt;/span&gt;&lt;span class="rQesXe MPyX" data-complete="true" data-sfc-cp="" data-sfc-root="c" jsaction="" jscontroller="tP2kf#s32ZS" jsuid="Mvhwcf_q" style="border-bottom: 0px rgb(230, 232, 240); font-weight: 700; margin: 0px;"&gt;PM2&lt;!--TgQPHd|||[]--&gt;&lt;/span&gt; เพื่อรันโปรเจกต์ Node.js บน macOS &lt;mark class="b6AQX" data-complete="true" data-sfc-root="c" data-ved="2ahUKEwjOsYKe-MmXAxWcR2wGHasiPMYQuJAPegoIAggACAAIBRAB" data-wiz-attrbind="class=Mvhwcf_r/cFwyDc" jsaction="click:&amp;amp;Mvhwcf_r|ZUljYd;" jscontroller="l6hPId#Mt0KKb" jsuid="Mvhwcf_r" style="border-bottom: 0px rgb(238, 240, 255); margin: 0px;"&gt;สามารถทำได้ง่าย ๆ ใน &lt;span class="rQesXe MPyX" data-complete="true" data-sfc-cp="" data-sfc-root="c" jsaction="" jscontroller="tP2kf#s32ZS" jsuid="Mvhwcf_s" style="border-bottom: 0px rgb(238, 240, 255); margin: 0px;"&gt;4 ขั้นตอนหลัก&lt;!--TgQPHd|||[]--&gt;&lt;/span&gt;&lt;!--TgQPHd|||[[[null,null,null,null,null,null,null,null,null,null,null,null,[247864,null,0]]]]--&gt;&lt;/mark&gt; ดังนี้ครับ&lt;!--TgQPHd|||[]--&gt;&lt;/div&gt;&lt;div class="yhAwj" data-complete="true" data-sfc-cp="" data-sfc-inited="2" data-sfc-root="c" jsaction="rcuQ6b:&amp;amp;Mvhwcf_y|npT2md" jscontroller="UTzWVc#U8DOt" jsuid="Mvhwcf_y" style="border-bottom: 0px rgb(230, 232, 240); font-family: &amp;quot;Google Sans&amp;quot;, sans-serif; font-size: 16px; margin: 0px;"&gt;&lt;!--TgQPHd|||[]--&gt;&lt;/div&gt;&lt;div aria-level="3" class="ZLzG0d ncoeY E8xBUb" data-animation-nesting="" data-complete="true" data-sfc-cp="" data-sfc-root="c" data-wiz-attrbind="aria-level=Mvhwcf_z/fLk2Md" jsaction="" jscontroller="zg1ZQe#TswZNc" jsuid="Mvhwcf_z" role="heading" style="border-bottom: 0px rgb(232, 234, 242); font-family: &amp;quot;Google Sans&amp;quot;, sans-serif; font-size: 20px; font-weight: 600; margin: 24px 0px 12px;"&gt;1. ติดตั้ง PM2 แบบ Global&lt;!--TgQPHd|||[[2,[null,null,null,null,null,null,null,null,null,null,null,null,[351768,null,0]],[],null,1]]--&gt;&lt;/div&gt;&lt;div data-bfc="" data-complete="true" data-hveid="CAIIAAgACAcQAA" data-sfc-cp="" data-sfc-root="c" data-ved="2ahUKEwjOsYKe-MmXAxWcR2wGHasiPMYQi4wTegoIAggACAAIBxAA" jsaction="" jscontroller="eHDDzf#DtOdcb" jsuid="Mvhwcf_10" style="border-bottom: 0px rgb(230, 232, 240); font-family: &amp;quot;Google Sans&amp;quot;, sans-serif; font-size: 16px; margin: 0px;"&gt;&lt;div class="n6owBd awi2gc" data-complete="true" data-hveid="CAIIAAgACAcQAQ" data-sfc-cp="" data-sfc-root="c" jsaction="" jscontroller="TDBkbc#Ml18Xb" jsuid="Mvhwcf_11" style="border-bottom: 0px rgb(230, 232, 240); margin: 12px 0px 16px;"&gt;เปิด Terminal ของ macOS ขึ้นมา จากนั้นใช้คำสั่ง &lt;code class="KDcb0c" data-complete="true" data-sfc-root="c" dir="ltr" jsaction="" jscontroller="hNviFe#redMub" jsuid="Mvhwcf_12" style="border-bottom: 1px solid rgb(44, 46, 53); font-size: 14px; margin: 0px;"&gt;npm&lt;!--TgQPHd|||[]--&gt;&lt;/code&gt; เพื่อติดตั้ง PM2 ลงในเครื่องแบบ Global:&lt;/div&gt;&lt;/div&gt;&lt;div data-bfc="" data-complete="true" data-hveid="CAIIAAgACAgQAA" data-sfc-cp="" data-sfc-root="c" data-ved="2ahUKEwjOsYKe-MmXAxWcR2wGHasiPMYQi4wTegoIAggACAAICBAA" jsaction="" jscontroller="eHDDzf#DtOdcb" jsuid="Mvhwcf_19" style="border-bottom: 0px rgb(230, 232, 240); font-family: &amp;quot;Google Sans&amp;quot;, sans-serif; font-size: 16px; margin: 0px;"&gt;&lt;div class="BpxUDf aiModeUiCodeBlock__Container" data-complete="true" data-hveid="CAIIAAgACAgQAQ" data-sfc-cp="" data-sfc-root="c" data-wiz-uids="Mvhwcf_1c,Mvhwcf_1b" jsaction="" jscontroller="Liu6s#lcO7sb" jsuid="Mvhwcf_1a" style="border-bottom: 0px rgb(238, 240, 255); margin: 4px 0px 0px;"&gt;&lt;div style="border-bottom: 0px rgb(238, 240, 255); margin: 0px;"&gt;&lt;div class="rq1a2" data-animation-atomic="" style="border-bottom: 1px solid rgb(44, 46, 53); margin: 0px;"&gt;&lt;div class="PGvq2d" dir="ltr" style="border-bottom: 0px rgb(238, 240, 255); font-size: 14px; margin: 0px;"&gt;&lt;pre style="border-bottom: 0px rgb(238, 240, 255); margin: 14px 0px;"&gt;&lt;code jsuid="Mvhwcf_1c" style="border-bottom: 0px rgb(238, 240, 255); margin: 0px;"&gt;&lt;span style="color: red;"&gt;npm install pm2@latest -g&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="iMHp6c" data-animation-atomic="" style="border-bottom: 1px solid rgb(44, 46, 53); margin: 3px 0px 0px;"&gt;&lt;div class="ZIumpf" style="border-bottom: 0px rgb(189, 193, 198); font-size: 12px; margin: 0px;"&gt;&lt;em class="zhvwWe" data-complete="true" data-sfc-cp="" data-sfc-root="c" jsaction="" jscontroller="LFsGHb#ycPkjf" jsuid="Mvhwcf_1j" style="border-bottom: 0px rgb(230, 232, 240); font-size: 16px; margin: 0px;"&gt;(หากติดสิทธิ์ Permission ให้ใส่ &lt;code class="KDcb0c" data-complete="true" data-sfc-root="c" dir="ltr" jsaction="" jscontroller="hNviFe#redMub" jsuid="Mvhwcf_1k" style="border-bottom: 1px solid rgb(44, 46, 53); font-size: 14px; margin: 0px;"&gt;sudo&lt;/code&gt; ข้างหน้า เช่น &lt;code class="KDcb0c" data-complete="true" data-sfc-root="c" dir="ltr" jsaction="" jscontroller="hNviFe#redMub" jsuid="Mvhwcf_1l" style="border-bottom: 1px solid rgb(44, 46, 53); font-size: 14px; margin: 0px;"&gt;sudo npm install pm2@latest -g&lt;/code&gt;)&lt;/em&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="yhAwj" data-complete="true" data-sfc-cp="" data-sfc-inited="2" data-sfc-root="c" jsaction="rcuQ6b:&amp;amp;Mvhwcf_1r|npT2md" jscontroller="UTzWVc#U8DOt" jsuid="Mvhwcf_1r" style="border-bottom: 0px rgb(230, 232, 240); font-family: &amp;quot;Google Sans&amp;quot;, sans-serif; font-size: 16px; margin: 0px;"&gt;&lt;!--TgQPHd|||[]--&gt;&lt;/div&gt;&lt;div data-bfc="" data-complete="true" data-hveid="CAIIAAgACAoQAA" data-sfc-cp="" data-sfc-root="c" data-ved="2ahUKEwjOsYKe-MmXAxWcR2wGHasiPMYQi4wTegoIAggACAAIChAA" jsaction="" jscontroller="eHDDzf#DtOdcb" jsuid="Mvhwcf_1s" style="border-bottom: 0px rgb(230, 232, 240); font-family: &amp;quot;Google Sans&amp;quot;, sans-serif; font-size: 16px; margin: 0px;"&gt;&lt;div aria-level="3" class="ZLzG0d ncoeY E8xBUb" data-animation-nesting="" data-complete="true" data-sfc-cp="" data-sfc-root="c" data-wiz-attrbind="aria-level=Mvhwcf_1t/fLk2Md" jsaction="" jscontroller="zg1ZQe#TswZNc" jsuid="Mvhwcf_1t" role="heading" style="border-bottom: 0px rgb(232, 234, 242); font-size: 20px; font-weight: 600; margin: 24px 0px 12px;"&gt;2. สั่งรันโปรเจกต์ของคุณ&lt;!--TgQPHd|||[[2,[null,null,null,null,null,null,null,null,null,null,null,null,[351768,null,0]],[],null,1]]--&gt;&lt;/div&gt;&lt;!--TgQPHd|||[]--&gt;&lt;/div&gt;&lt;div data-bfc="" data-complete="true" data-hveid="CAIIAAgACAsQAA" data-sfc-cp="" data-sfc-root="c" data-ved="2ahUKEwjOsYKe-MmXAxWcR2wGHasiPMYQi4wTegoIAggACAAICxAA" jsaction="" jscontroller="eHDDzf#DtOdcb" jsuid="Mvhwcf_1u" style="border-bottom: 0px rgb(230, 232, 240); font-family: &amp;quot;Google Sans&amp;quot;, sans-serif; font-size: 16px; margin: 0px;"&gt;&lt;div class="n6owBd awi2gc" data-complete="true" data-hveid="CAIIAAgACAsQAQ" data-sfc-cp="" data-sfc-root="c" jsaction="" jscontroller="TDBkbc#Ml18Xb" jsuid="Mvhwcf_1v" style="border-bottom: 0px rgb(230, 232, 240); margin: 12px 0px 16px;"&gt;ให้ &lt;code class="KDcb0c" data-complete="true" data-sfc-root="c" dir="ltr" jsaction="" jscontroller="hNviFe#redMub" jsuid="Mvhwcf_1w" style="border-bottom: 1px solid rgb(44, 46, 53); font-size: 14px; margin: 0px;"&gt;cd&lt;!--TgQPHd|||[]--&gt;&lt;/code&gt; เข้าไปที่โฟลเดอร์โปรเจกต์ Node.js ของคุณ จากนั้นเลือกสั่งรันตามประเภทของโปรเจกต์:&lt;!--TgQPHd|||[]--&gt;&lt;/div&gt;&lt;!--TgQPHd|||[]--&gt;&lt;/div&gt;&lt;div data-bfc="" data-complete="true" data-hveid="CAIIAAgACAwQAA" data-sfc-cp="" data-sfc-root="c" data-ved="2ahUKEwjOsYKe-MmXAxWcR2wGHasiPMYQi4wTegoIAggACAAIDBAA" jsaction="" jscontroller="eHDDzf#DtOdcb" jsuid="Mvhwcf_22" style="border-bottom: 0px rgb(230, 232, 240); font-family: &amp;quot;Google Sans&amp;quot;, sans-serif; font-size: 16px; margin: 0px;"&gt;&lt;ul class="XSq4R KI3fJ" data-complete="true" data-hveid="CAIIAAgACAwQAQ" data-sfc-cp="" data-sfc-root="c" jsaction="" jscontroller="wiLEJc#NS0kde" jsuid="Mvhwcf_23" style="border-bottom: 0px rgb(230, 232, 240); margin: 12px 0px 16px;"&gt;&lt;li class="Z1qcYe" data-complete="true" data-hveid="CAIIAAgACAwQAg" data-sfc-cp="" data-sfc-root="c" jsaction="" jscontroller="oSLmPe#HokZ0d" jsuid="Mvhwcf_24" style="border-bottom: 0px rgb(230, 232, 240); margin: 0px 0px 12px;"&gt;&lt;span class="iNqyIf" data-complete="true" data-sfc-cp="" data-sfc-root="c" jsaction="" jscontroller="KdQfFc#d5Qebf" jsuid="Mvhwcf_25" style="border-bottom: 0px rgb(230, 232, 240); margin: 0px;"&gt;&lt;span class="rQesXe MPyX" data-complete="true" data-sfc-cp="" data-sfc-root="c" jsaction="" jscontroller="tP2kf#s32ZS" jsuid="Mvhwcf_26" style="border-bottom: 0px rgb(230, 232, 240); font-weight: 700; margin: 0px;"&gt;โปรเจกต์ทั่วไป (มีไฟล์หลักเช่น app.js หรือ index.js):&lt;/span&gt;&lt;/span&gt;&lt;div class="BpxUDf aiModeUiCodeBlock__Container" data-complete="true" data-hveid="CAIIAAgACAwQAw" data-sfc-cp="" data-sfc-root="c" data-wiz-uids="Mvhwcf_29,Mvhwcf_28" jsaction="" jscontroller="Liu6s#lcO7sb" jsuid="Mvhwcf_27" style="border-bottom: 0px rgb(238, 240, 255); margin: 4px 0px 0px;"&gt;&lt;div style="border-bottom: 0px rgb(238, 240, 255); margin: 0px;"&gt;&lt;div class="rq1a2" data-animation-atomic="" style="border-bottom: 1px solid rgb(44, 46, 53); margin: 0px;"&gt;&lt;div class="PGvq2d" dir="ltr" style="border-bottom: 0px rgb(238, 240, 255); font-size: 14px; margin: 0px;"&gt;&lt;pre style="border-bottom: 0px rgb(238, 240, 255); margin: 14px 0px;"&gt;&lt;code jsuid="Mvhwcf_29" style="border-bottom: 0px rgb(238, 240, 255); margin: 0px;"&gt;&lt;span style="color: red;"&gt;&lt;span class="undefined" style="border-bottom: 0px rgb(238, 240, 255); margin: 0px;"&gt;pm2 start app.js --name &lt;/span&gt;&lt;span class="dk3nFb" style="border-bottom: 0px rgb(129, 201, 149); margin: 0px;"&gt;"my-app"&lt;/span&gt;&lt;/span&gt;&lt;span class="undefined" style="border-bottom: 0px rgb(238, 240, 255); margin: 0px;"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="iMHp6c" data-animation-atomic="" style="border-bottom: 1px solid rgb(44, 46, 53); margin: 3px 0px 0px;"&gt;&lt;div class="ZIumpf" style="border-bottom: 0px rgb(189, 193, 198); font-size: 12px; margin: 0px;"&gt;&lt;span style="font-size: 16px; font-weight: 700;"&gt;โปรเจกต์ที่รันผ่าน npm script (เช่น Next.js, Nuxt หรือ NestJS):&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/li&gt;&lt;li class="Z1qcYe" data-complete="true" data-hveid="CAIIAAgACAwQBg" data-sfc-cp="" data-sfc-root="c" jsaction="" jscontroller="oSLmPe#HokZ0d" jsuid="Mvhwcf_2e" style="border-bottom: 0px rgb(230, 232, 240); margin: 0px;"&gt;&lt;div class="BpxUDf aiModeUiCodeBlock__Container" data-complete="true" data-hveid="CAIIAAgACAwQCQ" data-sfc-cp="" data-sfc-root="c" data-wiz-uids="Mvhwcf_2o,Mvhwcf_2n" jsaction="" jscontroller="Liu6s#lcO7sb" jsuid="Mvhwcf_2m" style="border-bottom: 0px rgb(238, 240, 255); margin: 4px 0px 0px;"&gt;&lt;div style="border-bottom: 0px rgb(238, 240, 255); margin: 0px;"&gt;&lt;div class="rq1a2" data-animation-atomic="" style="border-bottom: 1px solid rgb(44, 46, 53); margin: 0px;"&gt;&lt;div class="PGvq2d" dir="ltr" style="border-bottom: 0px rgb(238, 240, 255); font-size: 14px; margin: 0px;"&gt;&lt;pre style="border-bottom: 0px rgb(238, 240, 255); margin: 14px 0px;"&gt;&lt;code jsuid="Mvhwcf_2o" style="border-bottom: 0px rgb(238, 240, 255); margin: 0px;"&gt;&lt;span style="color: red;"&gt;&lt;span class="undefined" style="border-bottom: 0px rgb(238, 240, 255); margin: 0px;"&gt;pm2 start npm --name &lt;/span&gt;&lt;span class="dk3nFb" style="border-bottom: 0px rgb(129, 201, 149); margin: 0px;"&gt;"my-app"&lt;/span&gt;&lt;/span&gt;&lt;span class="undefined" style="border-bottom: 0px rgb(238, 240, 255); margin: 0px;"&gt;&lt;span style="color: red;"&gt; -- run start&lt;/span&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="iMHp6c" data-animation-atomic="" style="border-bottom: 1px solid rgb(44, 46, 53); margin: 3px 0px 0px;"&gt;&lt;div class="ZIumpf" style="border-bottom: 0px rgb(189, 193, 198); font-size: 12px; margin: 0px;"&gt;&lt;em class="zhvwWe" data-complete="true" data-sfc-cp="" data-sfc-root="c" jsaction="" jscontroller="LFsGHb#ycPkjf" jsuid="Mvhwcf_2v" style="border-bottom: 0px rgb(230, 232, 240); font-size: 16px; margin: 0px;"&gt;(คุณสามารถเปลี่ยน &lt;code class="KDcb0c" data-complete="true" data-sfc-root="c" dir="ltr" jsaction="" jscontroller="hNviFe#redMub" jsuid="Mvhwcf_2w" style="border-bottom: 1px solid rgb(44, 46, 53); font-size: 14px; margin: 0px;"&gt;"my-app"&lt;/code&gt; เป็นชื่อโปรเจกต์ที่คุณต้องการได้เอาไว้สำหรับดูสถานะ)&lt;/em&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div class="yhAwj" data-complete="true" data-sfc-cp="" data-sfc-inited="2" data-sfc-root="c" jsaction="rcuQ6b:&amp;amp;Mvhwcf_32|npT2md" jscontroller="UTzWVc#U8DOt" jsuid="Mvhwcf_32" style="border-bottom: 0px rgb(230, 232, 240); font-family: &amp;quot;Google Sans&amp;quot;, sans-serif; font-size: 16px; margin: 0px;"&gt;&lt;!--TgQPHd|||[]--&gt;&lt;/div&gt;&lt;div data-bfc="" data-complete="true" data-hveid="CAIIAAgACA4QAA" data-sfc-cp="" data-sfc-root="c" data-ved="2ahUKEwjOsYKe-MmXAxWcR2wGHasiPMYQi4wTegoIAggACAAIDhAA" jsaction="" jscontroller="eHDDzf#DtOdcb" jsuid="Mvhwcf_33" style="border-bottom: 0px rgb(230, 232, 240); font-family: &amp;quot;Google Sans&amp;quot;, sans-serif; font-size: 16px; margin: 0px;"&gt;&lt;div aria-level="3" class="ZLzG0d ncoeY E8xBUb" data-animation-nesting="" data-complete="true" data-sfc-cp="" data-sfc-root="c" data-wiz-attrbind="aria-level=Mvhwcf_34/fLk2Md" jsaction="" jscontroller="zg1ZQe#TswZNc" jsuid="Mvhwcf_34" role="heading" style="border-bottom: 0px rgb(232, 234, 242); font-size: 20px; font-weight: 600; margin: 24px 0px 12px;"&gt;3. คำสั่งจัดการที่จำเป็น (Cheat Sheet)&lt;!--TgQPHd|||[[2,[null,null,null,null,null,null,null,null,null,null,null,null,[351768,null,0]],[],null,1]]--&gt;&lt;/div&gt;&lt;!--TgQPHd|||[]--&gt;&lt;/div&gt;&lt;div data-bfc="" data-complete="true" data-hveid="CAIIAAgACA8QAA" data-sfc-cp="" data-sfc-root="c" data-ved="2ahUKEwjOsYKe-MmXAxWcR2wGHasiPMYQi4wTegoIAggACAAIDxAA" jsaction="" jscontroller="eHDDzf#DtOdcb" jsuid="Mvhwcf_35" style="border-bottom: 0px rgb(230, 232, 240); font-family: &amp;quot;Google Sans&amp;quot;, sans-serif; font-size: 16px; margin: 0px;"&gt;&lt;div class="n6owBd awi2gc" data-complete="true" data-hveid="CAIIAAgACA8QAQ" data-sfc-cp="" data-sfc-root="c" jsaction="" jscontroller="TDBkbc#Ml18Xb" jsuid="Mvhwcf_36" style="border-bottom: 0px rgb(230, 232, 240); margin: 12px 0px 16px;"&gt;หลังจากสั่งรันแล้ว คุณสามารถจัดการโปรเจกต์ผ่านคำสั่งเหล่านี้:&lt;!--TgQPHd|||[]--&gt;&lt;/div&gt;&lt;!--TgQPHd|||[]--&gt;&lt;/div&gt;&lt;div data-bfc="" data-complete="true" data-hveid="CAIIAAgACBAQAA" data-sfc-cp="" data-sfc-root="c" data-ved="2ahUKEwjOsYKe-MmXAxWcR2wGHasiPMYQi4wTegoIAggACAAIEBAA" jsaction="" jscontroller="eHDDzf#DtOdcb" jsuid="Mvhwcf_3c" style="border-bottom: 0px rgb(230, 232, 240); margin: 0px;"&gt;&lt;ul class="XSq4R KI3fJ" data-complete="true" data-hveid="CAIIAAgACBAQAQ" data-sfc-cp="" data-sfc-root="c" jsaction="" jscontroller="wiLEJc#NS0kde" jsuid="Mvhwcf_3d" style="border-bottom: 0px rgb(230, 232, 240); margin: 12px 0px 16px;"&gt;&lt;li class="Z1qcYe" data-complete="true" data-hveid="CAIIAAgACBAQAg" data-sfc-cp="" data-sfc-root="c" jsaction="" jscontroller="oSLmPe#HokZ0d" jsuid="Mvhwcf_3e" style="border-bottom: 0px rgb(230, 232, 240); font-family: &amp;quot;Google Sans&amp;quot;, sans-serif; font-size: 16px; margin: 0px 0px 12px;"&gt;&lt;span class="iNqyIf" data-complete="true" data-sfc-cp="" data-sfc-root="c" jsaction="" jscontroller="KdQfFc#d5Qebf" jsuid="Mvhwcf_3f" style="border-bottom: 0px rgb(230, 232, 240); margin: 0px;"&gt;&lt;span class="rQesXe MPyX" data-complete="true" data-sfc-cp="" data-sfc-root="c" jsaction="" jscontroller="tP2kf#s32ZS" jsuid="Mvhwcf_3g" style="border-bottom: 0px rgb(230, 232, 240); font-weight: 700; margin: 0px;"&gt;ดูรายการที่รันอยู่:&lt;!--TgQPHd|||[]--&gt;&lt;/span&gt; &lt;code class="KDcb0c" data-complete="true" data-sfc-root="c" dir="ltr" jsaction="" jscontroller="hNviFe#redMub" jsuid="Mvhwcf_3h" style="border-bottom: 1px solid rgb(44, 46, 53); font-size: 14px; margin: 0px;"&gt;&lt;span style="color: red;"&gt;pm2 list&lt;/span&gt;&lt;!--TgQPHd|||[]--&gt;&lt;/code&gt; หรือ &lt;code class="KDcb0c" data-complete="true" data-sfc-root="c" dir="ltr" jsaction="" jscontroller="hNviFe#redMub" jsuid="Mvhwcf_3i" style="border-bottom: 1px solid rgb(44, 46, 53); font-size: 14px; margin: 0px;"&gt;&lt;span style="color: red;"&gt;pm2 status&lt;/span&gt;&lt;!--TgQPHd|||[]--&gt;&lt;/code&gt;&lt;!--TgQPHd|||[]--&gt;&lt;/span&gt;&lt;!--TgQPHd|||[]--&gt;&lt;/li&gt;&lt;li class="Z1qcYe" data-complete="true" data-hveid="CAIIAAgACBAQAw" data-sfc-cp="" data-sfc-root="c" jsaction="" jscontroller="oSLmPe#HokZ0d" jsuid="Mvhwcf_3j" style="border-bottom: 0px rgb(230, 232, 240); font-family: &amp;quot;Google Sans&amp;quot;, sans-serif; font-size: 16px; margin: 0px 0px 12px;"&gt;&lt;span class="iNqyIf" data-complete="true" data-sfc-cp="" data-sfc-root="c" jsaction="" jscontroller="KdQfFc#d5Qebf" jsuid="Mvhwcf_3k" style="border-bottom: 0px rgb(230, 232, 240); margin: 0px;"&gt;&lt;span class="rQesXe MPyX" data-complete="true" data-sfc-cp="" data-sfc-root="c" jsaction="" jscontroller="tP2kf#s32ZS" jsuid="Mvhwcf_3l" style="border-bottom: 0px rgb(230, 232, 240); font-weight: 700; margin: 0px;"&gt;ดู Log/หน้าจอ Console:&lt;!--TgQPHd|||[]--&gt;&lt;/span&gt; &lt;code class="KDcb0c" data-complete="true" data-sfc-root="c" dir="ltr" jsaction="" jscontroller="hNviFe#redMub" jsuid="Mvhwcf_3m" style="border-bottom: 1px solid rgb(44, 46, 53); font-size: 14px; margin: 0px;"&gt;&lt;span style="color: red;"&gt;pm2 logs&lt;/span&gt;&lt;!--TgQPHd|||[]--&gt;&lt;/code&gt;&lt;!--TgQPHd|||[]--&gt;&lt;/span&gt;&lt;!--TgQPHd|||[]--&gt;&lt;/li&gt;&lt;li class="Z1qcYe" data-complete="true" data-hveid="CAIIAAgACBAQBA" data-sfc-cp="" data-sfc-root="c" jsaction="" jscontroller="oSLmPe#HokZ0d" jsuid="Mvhwcf_3n" style="border-bottom: 0px rgb(230, 232, 240); font-family: &amp;quot;Google Sans&amp;quot;, sans-serif; font-size: 16px; margin: 0px 0px 12px;"&gt;&lt;span class="iNqyIf" data-complete="true" data-sfc-cp="" data-sfc-root="c" jsaction="" jscontroller="KdQfFc#d5Qebf" jsuid="Mvhwcf_3o" style="border-bottom: 0px rgb(230, 232, 240); margin: 0px;"&gt;&lt;span class="rQesXe MPyX" data-complete="true" data-sfc-cp="" data-sfc-root="c" jsaction="" jscontroller="tP2kf#s32ZS" jsuid="Mvhwcf_3p" style="border-bottom: 0px rgb(230, 232, 240); font-weight: 700; margin: 0px;"&gt;หยุดการทำงาน:&lt;!--TgQPHd|||[]--&gt;&lt;/span&gt; &lt;code class="KDcb0c" data-complete="true" data-sfc-root="c" dir="ltr" jsaction="" jscontroller="hNviFe#redMub" jsuid="Mvhwcf_3q" style="border-bottom: 1px solid rgb(44, 46, 53); font-size: 14px; margin: 0px;"&gt;&lt;span style="color: red;"&gt;pm2 stop my-app&lt;/span&gt;&lt;!--TgQPHd|||[]--&gt;&lt;/code&gt;&lt;!--TgQPHd|||[]--&gt;&lt;/span&gt;&lt;!--TgQPHd|||[]--&gt;&lt;/li&gt;&lt;li class="Z1qcYe" data-complete="true" data-hveid="CAIIAAgACBAQBQ" data-sfc-cp="" data-sfc-root="c" jsaction="" jscontroller="oSLmPe#HokZ0d" jsuid="Mvhwcf_3r" style="border-bottom: 0px rgb(230, 232, 240); font-family: &amp;quot;Google Sans&amp;quot;, sans-serif; font-size: 16px; margin: 0px 0px 12px;"&gt;&lt;span class="iNqyIf" data-complete="true" data-sfc-cp="" data-sfc-root="c" jsaction="" jscontroller="KdQfFc#d5Qebf" jsuid="Mvhwcf_3s" style="border-bottom: 0px rgb(230, 232, 240); margin: 0px;"&gt;&lt;span class="rQesXe MPyX" data-complete="true" data-sfc-cp="" data-sfc-root="c" jsaction="" jscontroller="tP2kf#s32ZS" jsuid="Mvhwcf_3t" style="border-bottom: 0px rgb(230, 232, 240); font-weight: 700; margin: 0px;"&gt;เริ่มทำงานใหม่ (Restart):&lt;!--TgQPHd|||[]--&gt;&lt;/span&gt; &lt;code class="KDcb0c" data-complete="true" data-sfc-root="c" dir="ltr" jsaction="" jscontroller="hNviFe#redMub" jsuid="Mvhwcf_3u" style="border-bottom: 1px solid rgb(44, 46, 53); font-size: 14px; margin: 0px;"&gt;&lt;span style="color: red;"&gt;pm2 restart my-app หรือ&amp;nbsp;&lt;/span&gt;&lt;/code&gt;&lt;/span&gt;&lt;!--TgQPHd|||[]--&gt;&lt;span style="color: red; font-family: monospace; font-size: 14px;"&gt;pm2 restart my-app --update-env&lt;/span&gt;&lt;/li&gt;&lt;li class="Z1qcYe" data-complete="true" data-hveid="CAIIAAgACBAQBQ" data-sfc-cp="" data-sfc-root="c" jsaction="" jscontroller="oSLmPe#HokZ0d" jsuid="Mvhwcf_3r" style="border-bottom: 0px rgb(230, 232, 240); margin: 0px 0px 12px;"&gt;&lt;span style="font-family: monospace;"&gt;&lt;span style="font-size: 14px;"&gt;เริ่มทำงานใหม่ทุก node process:&lt;span style="color: red;"&gt; pm2 restart all&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li class="Z1qcYe" data-complete="true" data-hveid="CAIIAAgACBAQBg" data-sfc-cp="" data-sfc-root="c" jsaction="" jscontroller="oSLmPe#HokZ0d" jsuid="Mvhwcf_3v" style="border-bottom: 0px rgb(230, 232, 240); font-family: &amp;quot;Google Sans&amp;quot;, sans-serif; font-size: 16px; margin: 0px;"&gt;&lt;span class="iNqyIf" data-complete="true" data-sfc-cp="" data-sfc-root="c" jsaction="" jscontroller="KdQfFc#d5Qebf" jsuid="Mvhwcf_3w" style="border-bottom: 0px rgb(230, 232, 240); margin: 0px;"&gt;&lt;span class="rQesXe MPyX" data-complete="true" data-sfc-cp="" data-sfc-root="c" jsaction="" jscontroller="tP2kf#s32ZS" jsuid="Mvhwcf_3x" style="border-bottom: 0px rgb(230, 232, 240); font-weight: 700; margin: 0px;"&gt;ลบโปรเจกต์ออกจาก PM2:&lt;!--TgQPHd|||[]--&gt;&lt;/span&gt; &lt;code class="KDcb0c" data-complete="true" data-sfc-root="c" dir="ltr" jsaction="" jscontroller="hNviFe#redMub" jsuid="Mvhwcf_3y" style="border-bottom: 1px solid rgb(44, 46, 53); font-size: 14px; margin: 0px;"&gt;&lt;span style="color: red;"&gt;pm2 delete my-app&lt;/span&gt;&lt;!--TgQPHd|||[]--&gt;&lt;/code&gt;&lt;!--TgQPHd|||[]--&gt;&lt;/span&gt;&lt;!--TgQPHd|||[]--&gt;&lt;/li&gt;&lt;span face="Google Sans, sans-serif"&gt;&lt;!--TgQPHd|||[]--&gt;&lt;/span&gt;&lt;/ul&gt;&lt;span face="Google Sans, sans-serif"&gt;&lt;!--TgQPHd|||[]--&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="yhAwj" data-complete="true" data-sfc-cp="" data-sfc-inited="2" data-sfc-root="c" jsaction="rcuQ6b:&amp;amp;Mvhwcf_44|npT2md" jscontroller="UTzWVc#U8DOt" jsuid="Mvhwcf_44" style="border-bottom: 0px rgb(230, 232, 240); font-family: &amp;quot;Google Sans&amp;quot;, sans-serif; font-size: 16px; margin: 0px;"&gt;&lt;!--TgQPHd|||[]--&gt;&lt;/div&gt;&lt;div data-bfc="" data-complete="true" data-hveid="CAIIAAgACBEQAA" data-sfc-cp="" data-sfc-root="c" data-ved="2ahUKEwjOsYKe-MmXAxWcR2wGHasiPMYQi4wTegoIAggACAAIERAA" jsaction="" jscontroller="eHDDzf#DtOdcb" jsuid="Mvhwcf_45" style="border-bottom: 0px rgb(230, 232, 240); font-family: &amp;quot;Google Sans&amp;quot;, sans-serif; font-size: 16px; margin: 0px;"&gt;&lt;div aria-level="3" class="ZLzG0d ncoeY E8xBUb" data-animation-nesting="" data-complete="true" data-sfc-cp="" data-sfc-root="c" data-wiz-attrbind="aria-level=Mvhwcf_46/fLk2Md" jsaction="" jscontroller="zg1ZQe#TswZNc" jsuid="Mvhwcf_46" role="heading" style="border-bottom: 0px rgb(232, 234, 242); font-size: 20px; font-weight: 600; margin: 24px 0px 12px;"&gt;4. ตั้งค่าให้ PM2 เปิดใช้งานอัตโนมัติเมื่อเปิดเครื่อง (Startup)&lt;!--TgQPHd|||[[2,[null,null,null,null,null,null,null,null,null,null,null,null,[351768,null,0]],[],null,1]]--&gt;&lt;/div&gt;&lt;!--TgQPHd|||[]--&gt;&lt;/div&gt;&lt;div data-bfc="" data-complete="true" data-hveid="CAIIAAgACBIQAA" data-sfc-cp="" data-sfc-root="c" data-ved="2ahUKEwjOsYKe-MmXAxWcR2wGHasiPMYQi4wTegoIAggACAAIEhAA" jsaction="" jscontroller="eHDDzf#DtOdcb" jsuid="Mvhwcf_47" style="border-bottom: 0px rgb(230, 232, 240); font-family: &amp;quot;Google Sans&amp;quot;, sans-serif; font-size: 16px; margin: 0px;"&gt;&lt;div class="n6owBd awi2gc" data-complete="true" data-hveid="CAIIAAgACBIQAQ" data-sfc-cp="" data-sfc-root="c" jsaction="" jscontroller="TDBkbc#Ml18Xb" jsuid="Mvhwcf_48" style="border-bottom: 0px rgb(230, 232, 240); margin: 12px 0px 16px;"&gt;หากต้องการให้โปรเจกต์รันขึ้นมาเองโดยอัตโนมัติหลังจากที่คุณรีสตาร์ทเครื่อง Mac ให้ใช้คำสั่ง:&lt;/div&gt;&lt;/div&gt;&lt;div data-bfc="" data-complete="true" data-hveid="CAIIAAgACBMQAA" data-sfc-cp="" data-sfc-root="c" data-ved="2ahUKEwjOsYKe-MmXAxWcR2wGHasiPMYQi4wTegoIAggACAAIExAA" jsaction="" jscontroller="eHDDzf#DtOdcb" jsuid="Mvhwcf_4f" style="border-bottom: 0px rgb(230, 232, 240); font-family: &amp;quot;Google Sans&amp;quot;, sans-serif; font-size: 16px; margin: 0px;"&gt;&lt;div class="BpxUDf aiModeUiCodeBlock__Container" data-complete="true" data-hveid="CAIIAAgACBMQAQ" data-sfc-cp="" data-sfc-root="c" data-wiz-uids="Mvhwcf_4i,Mvhwcf_4h" jsaction="" jscontroller="Liu6s#lcO7sb" jsuid="Mvhwcf_4g" style="border-bottom: 0px rgb(238, 240, 255); margin: 4px 0px 0px;"&gt;&lt;div style="border-bottom: 0px rgb(238, 240, 255); margin: 0px;"&gt;&lt;div class="rq1a2" data-animation-atomic="" style="border-bottom: 1px solid rgb(44, 46, 53); margin: 0px;"&gt;&lt;div class="PGvq2d" dir="ltr" style="border-bottom: 0px rgb(238, 240, 255); font-size: 14px; margin: 0px;"&gt;&lt;pre style="border-bottom: 0px rgb(238, 240, 255); margin: 14px 0px;"&gt;&lt;code jsuid="Mvhwcf_4i" style="border-bottom: 0px rgb(238, 240, 255); margin: 0px;"&gt;&lt;span style="color: red;"&gt;pm2 startup&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="iMHp6c" data-animation-atomic="" style="border-bottom: 1px solid rgb(44, 46, 53); margin: 3px 0px 0px;"&gt;&lt;div class="ZIumpf" style="border-bottom: 0px rgb(189, 193, 198); font-size: 12px; margin: 0px;"&gt;&lt;span style="font-size: 16px;"&gt;จากนั้น PM2 จะแสดงคำสั่งยาว ๆ มาให้คุณ &lt;/span&gt;&lt;span class="rQesXe MPyX" data-complete="true" data-sfc-cp="" data-sfc-root="c" jsaction="" jscontroller="tP2kf#s32ZS" jsuid="Mvhwcf_4p" style="border-bottom: 0px rgb(230, 232, 240); font-size: 16px; font-weight: 700; margin: 0px;"&gt;ก๊อปปี้คำสั่งนั้นไปวางใน Terminal แล้วกด Enter&lt;/span&gt;&lt;span style="font-size: 16px;"&gt; อีกครั้งเพื่อยืนยันสิทธิ์ เมื่อเสร็จแล้วให้พิมพ์คำสั่งนี้เพื่อบันทึกสถานะปัจจุบันไว้:&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div data-bfc="" data-complete="true" data-hveid="CAIIAAgACBUQAA" data-sfc-cp="" data-sfc-root="c" data-ved="2ahUKEwjOsYKe-MmXAxWcR2wGHasiPMYQi4wTegoIAggACAAIFRAA" jsaction="" jscontroller="eHDDzf#DtOdcb" jsuid="Mvhwcf_4w" style="border-bottom: 0px rgb(230, 232, 240); font-family: &amp;quot;Google Sans&amp;quot;, sans-serif; font-size: 16px; margin: 0px;"&gt;&lt;div class="BpxUDf aiModeUiCodeBlock__Container" data-complete="true" data-hveid="CAIIAAgACBUQAQ" data-sfc-cp="" data-sfc-root="c" data-wiz-uids="Mvhwcf_4z,Mvhwcf_4y" jsaction="" jscontroller="Liu6s#lcO7sb" jsuid="Mvhwcf_4x" style="border-bottom: 0px rgb(238, 240, 255); margin: 4px 0px 0px;"&gt;&lt;div style="border-bottom: 0px rgb(238, 240, 255); margin: 0px;"&gt;&lt;div class="rq1a2" data-animation-atomic="" style="border-bottom: 1px solid rgb(44, 46, 53); margin: 0px;"&gt;&lt;div class="PGvq2d" dir="ltr" style="border-bottom: 0px rgb(238, 240, 255); font-size: 14px; margin: 0px;"&gt;&lt;pre style="border-bottom: 0px rgb(238, 240, 255); margin: 14px 0px;"&gt;&lt;code jsuid="Mvhwcf_4z" style="border-bottom: 0px rgb(238, 240, 255); margin: 0px;"&gt;&lt;span style="color: red;"&gt;pm2 save&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="iMHp6c" data-animation-atomic="" style="border-bottom: 1px solid rgb(44, 46, 53); margin: 3px 0px 0px;"&gt;&lt;div class="ZIumpf" style="border-bottom: 0px rgb(189, 193, 198); font-size: 12px; margin: 0px;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;Are u sure?&lt;/div&gt;</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>Install PostgreSQL on macOS Tahoe 26.6.2</title><link>http://juuier.blogspot.com/2026/10/install-postgresql-on-macos-tahoe-2662.html</link><author>noreply@blogger.com (juuier)</author><pubDate>Tue, 20 Oct 2026 10:12:55 +0700</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-34115975.post-5850203512607083801</guid><description>&lt;p&gt;Ref: gemini&lt;/p&gt;&lt;div _ngcontent-ng-c2933112568="" aria-busy="false" aria-live="polite" class="markdown markdown-main-panel md-content enable-luminous-fast-follows enable-updated-hr-color stronger tutor-markdown-rendering" dir="ltr" id="model-response-message-contentr_53b659f0ba7e59d1" inline-copy-host="" style="--animation-duration: 400ms; --fade-animation-function: ease-out; animation: auto ease 0s 1 normal none running none; appearance: none; background-attachment: scroll; background-clip: border-box; background-image: none; background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto; border: 0px rgb(31, 31, 31); clear: none; clip: auto; columns: auto; contain: none; container: none; content: normal; cursor: auto; cx: 0px; cy: 0px; d: none; direction: ltr; fill: rgb(0, 0, 0); filter: none; flex-direction: row; flex: 0 1 auto; float: none; gap: normal; hyphens: manual; inset: auto; interactivity: auto; isolation: auto; line-height: 1.15; margin-bottom: 0px; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; margin: 0px; marker: none; mask-clip: border-box; mask-composite: add; mask-image: none; mask-mode: match-source; mask-origin: border-box; mask-repeat: repeat; mask-size: auto; mask: none; offset: normal; opacity: 1; order: 0; outline: rgb(31, 31, 31) none 3px; overlay: none; padding: 0px; page: auto; perspective: none; position: static; quotes: auto; r: 0px; resize: none; rotate: none; rule: 3px rgb(31, 31, 31); rx: auto; ry: auto; scale: none; speak: normal; stroke: none; transform: none; transition: all; translate: none; visibility: visible; x: 0px; y: 0px; zoom: 1;"&gt;&lt;div style="animation: auto ease 0s 1 normal none running none; appearance: none; background-attachment: scroll; background-clip: border-box; background-image: none; background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto; border: 0px rgb(31, 31, 31); clear: none; clip: auto; color: #1f1f1f; columns: auto; contain: none; container: none; content: normal; cursor: auto; cx: 0px; cy: 0px; d: none; direction: ltr; fill: rgb(0, 0, 0); filter: none; flex-direction: row; flex: 0 1 auto; float: none; font-family: &amp;quot;Google Sans Text&amp;quot;, sans-serif; gap: normal; hyphens: manual; inset: auto; interactivity: auto; isolation: auto; line-height: 1.15; margin-bottom: 0px; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; margin: 0px; marker: none; mask-clip: border-box; mask-composite: add; mask-image: none; mask-mode: match-source; mask-origin: border-box; mask-repeat: repeat; mask-size: auto; mask: none; offset: normal; opacity: 1; order: 0; outline: rgb(31, 31, 31) none 3px; overlay: none; padding: 0px; page: auto; perspective: none; position: static; quotes: auto; r: 0px; resize: none; rotate: none; rule: 3px rgb(31, 31, 31); rx: auto; ry: auto; scale: none; speak: normal; stroke: none; transform: none; transition: all; translate: none; visibility: visible; x: 0px; y: 0px; zoom: 1;"&gt;การติดตั้ง &lt;b data-index-in-node="11" data-path-to-node="0" style="animation: auto ease 0s 1 normal none running none; appearance: none; background-attachment: scroll; background-clip: border-box; background-image: none; background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto; border: 0px rgb(31, 31, 31); clear: none; clip: auto; columns: auto; contain: none; container: none; content: normal; cursor: auto; cx: 0px; cy: 0px; d: none; direction: ltr; display: inline; fill: rgb(0, 0, 0); filter: none; flex-direction: row; flex: 0 1 auto; float: none; gap: normal; hyphens: manual; inset: auto; interactivity: auto; isolation: auto; line-height: 1.15; margin-bottom: 0px; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; margin: 0px; marker: none; mask-clip: border-box; mask-composite: add; mask-image: none; mask-mode: match-source; mask-origin: border-box; mask-repeat: repeat; mask-size: auto; mask: none; offset: normal; opacity: 1; order: 0; outline: rgb(31, 31, 31) none 3px; overlay: none; padding: 0px; page: auto; perspective: none; position: static; quotes: auto; r: 0px; resize: none; rotate: none; rule: 3px rgb(31, 31, 31); rx: auto; ry: auto; scale: none; speak: normal; stroke: none; transform: none; transition: all; translate: none; visibility: visible; x: 0px; y: 0px; zoom: 1;"&gt;PostgreSQL&lt;/b&gt; บน macOS วิธีที่สะดวกและเป็นมาตรฐานที่สุดคือการใช้ &lt;b data-index-in-node="73" data-path-to-node="0" style="animation: auto ease 0s 1 normal none running none; appearance: none; background-attachment: scroll; background-clip: border-box; background-image: none; background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto; border: 0px rgb(31, 31, 31); clear: none; clip: auto; columns: auto; contain: none; container: none; content: normal; cursor: auto; cx: 0px; cy: 0px; d: none; direction: ltr; display: inline; fill: rgb(0, 0, 0); filter: none; flex-direction: row; flex: 0 1 auto; float: none; gap: normal; hyphens: manual; inset: auto; interactivity: auto; isolation: auto; line-height: 1.15; margin-bottom: 0px; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; margin: 0px; marker: none; mask-clip: border-box; mask-composite: add; mask-image: none; mask-mode: match-source; mask-origin: border-box; mask-repeat: repeat; mask-size: auto; mask: none; offset: normal; opacity: 1; order: 0; outline: rgb(31, 31, 31) none 3px; overlay: none; padding: 0px; page: auto; perspective: none; position: static; quotes: auto; r: 0px; resize: none; rotate: none; rule: 3px rgb(31, 31, 31); rx: auto; ry: auto; scale: none; speak: normal; stroke: none; transform: none; transition: all; translate: none; visibility: visible; x: 0px; y: 0px; zoom: 1;"&gt;Homebrew&lt;/b&gt; ผ่าน Terminal (หรือหากไม่ถนัดคำสั่ง Command Line สามารถใช้ตัวติดตั้งแบบ Graphic Application ได้เช่นกัน)&lt;/div&gt;&lt;br /&gt;&lt;h3 data-path-to-node="2" style="animation: auto ease 0s 1 normal none running none; appearance: none; background-attachment: scroll; background-clip: border-box; background-image: none; background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto; border: 0px rgb(31, 31, 31); clear: none; clip: auto; columns: auto; contain: none; container: none; content: normal; cursor: auto; cx: 0px; cy: 0px; d: none; direction: ltr; fill: rgb(0, 0, 0); filter: none; flex-direction: row; flex: 0 1 auto; float: none; font-family: &amp;quot;Google Sans&amp;quot;, sans-serif; gap: normal; hyphens: manual; inset: auto; interactivity: auto; isolation: auto; line-height: 1.15; margin-bottom: 0px; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; margin: 0px; marker: none; mask-clip: border-box; mask-composite: add; mask-image: none; mask-mode: match-source; mask-origin: border-box; mask-repeat: repeat; mask-size: auto; mask: none; offset: normal; opacity: 1; order: 0; outline: rgb(31, 31, 31) none 3px; overlay: none; padding: 0px; page: auto; perspective: none; position: static; quotes: auto; r: 0px; resize: none; rotate: none; rule: 3px rgb(31, 31, 31); rx: auto; ry: auto; scale: none; speak: normal; stroke: none; transform: none; transition: all; translate: none; visibility: visible; x: 0px; y: 0px; zoom: 1;"&gt;&lt;span style="color: #ff00fe;"&gt;วิธีที่ 1: ติดตั้งผ่าน Homebrew (แนะนำสำหรับนักพัฒนา)&lt;/span&gt;&lt;/h3&gt;&lt;ol class="md-has-block-component" data-path-to-node="3" start="1" style="animation: auto ease 0s 1 normal none running none; appearance: none; background-attachment: scroll; background-clip: border-box; background-image: none; background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto; border: 0px rgb(31, 31, 31); clear: none; clip: auto; columns: auto; contain: none; container: none; content: normal; cursor: auto; cx: 0px; cy: 0px; d: none; direction: ltr; fill: rgb(0, 0, 0); filter: none; flex-direction: row; flex: 0 1 auto; float: none; gap: normal; hyphens: manual; inset: auto; interactivity: auto; isolation: auto; line-height: 1.15; margin-bottom: 0px; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; margin: 0px; marker: none; mask-clip: border-box; mask-composite: add; mask-image: none; mask-mode: match-source; mask-origin: border-box; mask-repeat: repeat; mask-size: auto; mask: none; offset: normal; opacity: 1; order: 0; outline: rgb(31, 31, 31) none 3px; overlay: none; padding-inline-start: 32px; padding: 0px 0px 0px 4px; page: auto; perspective: none; position: static; quotes: auto; r: 0px; resize: none; rotate: none; rule: 3px rgb(31, 31, 31); rx: auto; ry: auto; scale: none; speak: normal; stroke: none; transform: none; transition: all; translate: none; visibility: visible; x: 0px; y: 0px; zoom: 1;"&gt;&lt;li style="animation: auto ease 0s 1 normal none running none; appearance: none; background-attachment: scroll; background-clip: border-box; background-image: none; background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto; border: 0px rgb(31, 31, 31); clear: none; clip: auto; color: #1f1f1f; columns: auto; contain: none; container: none; content: normal; cursor: auto; cx: 0px; cy: 0px; d: none; direction: ltr; fill: rgb(0, 0, 0); filter: none; flex-direction: row; flex: 0 1 auto; float: none; font-family: &amp;quot;Google Sans Text&amp;quot;, sans-serif; gap: normal; hyphens: manual; inset: 0px; interactivity: auto; isolation: auto; line-height: 1.15; margin-bottom: 0px; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; margin: 0px; marker: none; mask-clip: border-box; mask-composite: add; mask-image: none; mask-mode: match-source; mask-origin: border-box; mask-repeat: repeat; mask-size: auto; mask: none; offset: normal; opacity: 1; order: 0; outline: rgb(31, 31, 31) none 3px; overlay: none; padding: 0px 0px 0px 36px; page: auto; perspective: none; position: relative; quotes: auto; r: 0px; resize: none; rotate: none; rule: 3px rgb(31, 31, 31); rx: auto; ry: auto; scale: none; speak: normal; stroke: none; transform: none; transition: all; translate: none; visibility: visible; x: 0px; y: 0px; zoom: 1;"&gt;&lt;div style="animation: auto ease 0s 1 normal none running none; appearance: none; background-attachment: scroll; background-clip: border-box; background-image: none; background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto; border: 0px rgb(31, 31, 31); clear: none; clip: auto; columns: auto; contain: none; container: none; content: normal; cursor: auto; cx: 0px; cy: 0px; d: none; direction: ltr; fill: rgb(0, 0, 0); filter: none; flex-direction: row; flex: 0 1 auto; float: none; gap: normal; hyphens: manual; inset: auto; interactivity: auto; isolation: auto; line-height: 1.15; margin-bottom: 0px; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; margin: 0px; marker: none; mask-clip: border-box; mask-composite: add; mask-image: none; mask-mode: match-source; mask-origin: border-box; mask-repeat: repeat; mask-size: auto; mask: none; offset: normal; opacity: 1; order: 0; outline: rgb(31, 31, 31) none 3px; overlay: none; padding: 0px 0px 0px 4px; page: auto; perspective: none; position: static; quotes: auto; r: 0px; resize: none; rotate: none; rule: 3px rgb(31, 31, 31); rx: auto; ry: auto; scale: none; speak: normal; stroke: none; transform: none; transition: all; translate: none; visibility: visible; x: 0px; y: 0px; zoom: 1;"&gt;&lt;b data-index-in-node="0" data-path-to-node="3,0,0" style="animation: auto ease 0s 1 normal none running none; appearance: none; background-attachment: scroll; background-clip: border-box; background-image: none; background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto; border: 0px rgb(31, 31, 31); clear: none; clip: auto; columns: auto; contain: none; container: none; content: normal; cursor: auto; cx: 0px; cy: 0px; d: none; direction: ltr; display: inline; fill: rgb(0, 0, 0); filter: none; flex-direction: row; flex: 0 1 auto; float: none; gap: normal; hyphens: manual; inset: auto; interactivity: auto; isolation: auto; line-height: 1.15; margin-bottom: 0px; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; margin: 0px; marker: none; mask-clip: border-box; mask-composite: add; mask-image: none; mask-mode: match-source; mask-origin: border-box; mask-repeat: repeat; mask-size: auto; mask: none; offset: normal; opacity: 1; order: 0; outline: rgb(31, 31, 31) none 3px; overlay: none; padding: 0px; page: auto; perspective: none; position: static; quotes: auto; r: 0px; resize: none; rotate: none; rule: 3px rgb(31, 31, 31); rx: auto; ry: auto; scale: none; speak: normal; stroke: none; transform: none; transition: all; translate: none; visibility: visible; x: 0px; y: 0px; zoom: 1;"&gt;เปิดแอป Terminal&lt;/b&gt; (กด &lt;code data-index-in-node="21" data-path-to-node="3,0,0" style="animation: auto ease 0s 1 normal none running none; appearance: none; background: none 0% 0% / auto repeat scroll padding-box border-box rgb(242, 240, 240); border: 0px rgba(0, 0, 0, 0.55); clear: none; clip: auto; color: rgba(0, 0, 0, 0.55); columns: auto; contain: none; container: none; content: normal; cursor: auto; cx: 0px; cy: 0px; d: none; direction: ltr; display: inline-block; fill: rgb(0, 0, 0); filter: none; flex-direction: row; flex: 0 1 auto; float: none; font-family: &amp;quot;Google Sans Text&amp;quot;, sans-serif; font-feature-settings: normal; font-kerning: auto; font-language-override: normal; font-optical-sizing: auto; font-size-adjust: none; font-size: 15px; font-stretch: normal; font-variant: normal; font-variation-settings: normal; gap: normal; hyphens: manual; inset: auto; interactivity: auto; isolation: auto; line-height: 1.15; margin-bottom: 0px; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; margin: 0px; marker: none; mask-clip: border-box; mask-composite: add; mask-image: none; mask-mode: match-source; mask-origin: border-box; mask-repeat: repeat; mask-size: auto; mask: none; offset: normal; opacity: 1; order: 0; outline: rgba(0, 0, 0, 0.55) none 3px; overlay: none; padding: 4px 6px; page: auto; perspective: none; position: static; quotes: auto; r: 0px; resize: none; rotate: none; rule: 3px rgba(0, 0, 0, 0.55); rx: auto; ry: auto; scale: none; speak: normal; stroke: none; transform: none; transition: all; translate: none; visibility: visible; x: 0px; y: 0px; zoom: 1;"&gt;Command + Space&lt;/code&gt; พิมพ์ค้นหา &lt;code data-index-in-node="48" data-path-to-node="3,0,0" style="animation: auto ease 0s 1 normal none running none; appearance: none; background: none 0% 0% / auto repeat scroll padding-box border-box rgb(242, 240, 240); border: 0px rgba(0, 0, 0, 0.55); clear: none; clip: auto; color: rgba(0, 0, 0, 0.55); columns: auto; contain: none; container: none; content: normal; cursor: auto; cx: 0px; cy: 0px; d: none; direction: ltr; display: inline-block; fill: rgb(0, 0, 0); filter: none; flex-direction: row; flex: 0 1 auto; float: none; font-family: &amp;quot;Google Sans Text&amp;quot;, sans-serif; font-feature-settings: normal; font-kerning: auto; font-language-override: normal; font-optical-sizing: auto; font-size-adjust: none; font-size: 15px; font-stretch: normal; font-variant: normal; font-variation-settings: normal; gap: normal; hyphens: manual; inset: auto; interactivity: auto; isolation: auto; line-height: 1.15; margin-bottom: 0px; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; margin: 0px; marker: none; mask-clip: border-box; mask-composite: add; mask-image: none; mask-mode: match-source; mask-origin: border-box; mask-repeat: repeat; mask-size: auto; mask: none; offset: normal; opacity: 1; order: 0; outline: rgba(0, 0, 0, 0.55) none 3px; overlay: none; padding: 4px 6px; page: auto; perspective: none; position: static; quotes: auto; r: 0px; resize: none; rotate: none; rule: 3px rgba(0, 0, 0, 0.55); rx: auto; ry: auto; scale: none; speak: normal; stroke: none; transform: none; transition: all; translate: none; visibility: visible; x: 0px; y: 0px; zoom: 1;"&gt;Terminal&lt;/code&gt; แล้วกด Enter)&lt;/div&gt;&lt;br /&gt;&lt;/li&gt;&lt;li style="animation: auto ease 0s 1 normal none running none; appearance: none; background-attachment: scroll; background-clip: border-box; background-image: none; background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto; border: 0px rgb(31, 31, 31); clear: none; clip: auto; columns: auto; contain: none; container: none; content: normal; cursor: auto; cx: 0px; cy: 0px; d: none; direction: ltr; fill: rgb(0, 0, 0); filter: none; flex-direction: row; flex: 0 1 auto; float: none; gap: normal; hyphens: manual; inset: 0px; interactivity: auto; isolation: auto; line-height: 1.15; margin-bottom: 0px; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; margin: 0px; marker: none; mask-clip: border-box; mask-composite: add; mask-image: none; mask-mode: match-source; mask-origin: border-box; mask-repeat: repeat; mask-size: auto; mask: none; offset: normal; opacity: 1; order: 0; outline: rgb(31, 31, 31) none 3px; overlay: none; padding: 0px 0px 0px 36px; page: auto; perspective: none; position: relative; quotes: auto; r: 0px; resize: none; rotate: none; rule: 3px rgb(31, 31, 31); rx: auto; ry: auto; scale: none; speak: normal; stroke: none; transform: none; transition: all; translate: none; visibility: visible; x: 0px; y: 0px; zoom: 1;"&gt;&lt;div style="animation: auto ease 0s 1 normal none running none; appearance: none; background-attachment: scroll; background-clip: border-box; background-image: none; background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto; border: 0px rgb(31, 31, 31); clear: none; clip: auto; color: #1f1f1f; columns: auto; contain: none; container: none; content: normal; cursor: auto; cx: 0px; cy: 0px; d: none; direction: ltr; fill: rgb(0, 0, 0); filter: none; flex-direction: row; flex: 0 1 auto; float: none; font-family: &amp;quot;Google Sans Text&amp;quot;, sans-serif; gap: normal; hyphens: manual; inset: auto; interactivity: auto; isolation: auto; line-height: 1.15; margin-bottom: 0px; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; margin: 0px; marker: none; mask-clip: border-box; mask-composite: add; mask-image: none; mask-mode: match-source; mask-origin: border-box; mask-repeat: repeat; mask-size: auto; mask: none; offset: normal; opacity: 1; order: 0; outline: rgb(31, 31, 31) none 3px; overlay: none; padding: 0px 0px 0px 4px; page: auto; perspective: none; position: static; quotes: auto; r: 0px; resize: none; rotate: none; rule: 3px rgb(31, 31, 31); rx: auto; ry: auto; scale: none; speak: normal; stroke: none; transform: none; transition: all; translate: none; visibility: visible; x: 0px; y: 0px; zoom: 1;"&gt;&lt;b data-index-in-node="0" data-path-to-node="3,1,0" style="animation: auto ease 0s 1 normal none running none; appearance: none; background-attachment: scroll; background-clip: border-box; background-image: none; background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto; border: 0px rgb(31, 31, 31); clear: none; clip: auto; columns: auto; contain: none; container: none; content: normal; cursor: auto; cx: 0px; cy: 0px; d: none; direction: ltr; display: inline; fill: rgb(0, 0, 0); filter: none; flex-direction: row; flex: 0 1 auto; float: none; gap: normal; hyphens: manual; inset: auto; interactivity: auto; isolation: auto; line-height: 1.15; margin-bottom: 0px; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; margin: 0px; marker: none; mask-clip: border-box; mask-composite: add; mask-image: none; mask-mode: match-source; mask-origin: border-box; mask-repeat: repeat; mask-size: auto; mask: none; offset: normal; opacity: 1; order: 0; outline: rgb(31, 31, 31) none 3px; overlay: none; padding: 0px; page: auto; perspective: none; position: static; quotes: auto; r: 0px; resize: none; rotate: none; rule: 3px rgb(31, 31, 31); rx: auto; ry: auto; scale: none; speak: normal; stroke: none; transform: none; transition: all; translate: none; visibility: visible; x: 0px; y: 0px; zoom: 1;"&gt;ตรวจสอบ/ติดตั้ง Homebrew&lt;/b&gt; (หากมีอยู่แล้ว ข้ามขั้นตอนนี้ได้เลย)&lt;/div&gt;&lt;br /&gt;&lt;span style="color: red;"&gt;/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"&lt;/span&gt;&lt;br /&gt;&lt;/li&gt;&lt;li style="animation: auto ease 0s 1 normal none running none; appearance: none; background-attachment: scroll; background-clip: border-box; background-image: none; background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto; border: 0px rgb(31, 31, 31); clear: none; clip: auto; columns: auto; contain: none; container: none; content: normal; cursor: auto; cx: 0px; cy: 0px; d: none; direction: ltr; fill: rgb(0, 0, 0); filter: none; flex-direction: row; flex: 0 1 auto; float: none; gap: normal; hyphens: manual; inset: 0px; interactivity: auto; isolation: auto; line-height: 1.15; margin-bottom: 0px; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; margin: 0px; marker: none; mask-clip: border-box; mask-composite: add; mask-image: none; mask-mode: match-source; mask-origin: border-box; mask-repeat: repeat; mask-size: auto; mask: none; offset: normal; opacity: 1; order: 0; outline: rgb(31, 31, 31) none 3px; overlay: none; padding: 0px 0px 0px 36px; page: auto; perspective: none; position: relative; quotes: auto; r: 0px; resize: none; rotate: none; rule: 3px rgb(31, 31, 31); rx: auto; ry: auto; scale: none; speak: normal; stroke: none; transform: none; transition: all; translate: none; visibility: visible; x: 0px; y: 0px; zoom: 1;"&gt;&lt;div style="animation: auto ease 0s 1 normal none running none; appearance: none; background-attachment: scroll; background-clip: border-box; background-image: none; background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto; border: 0px rgb(31, 31, 31); clear: none; clip: auto; color: #1f1f1f; columns: auto; contain: none; container: none; content: normal; cursor: auto; cx: 0px; cy: 0px; d: none; direction: ltr; fill: rgb(0, 0, 0); filter: none; flex-direction: row; flex: 0 1 auto; float: none; font-family: &amp;quot;Google Sans Text&amp;quot;, sans-serif; gap: normal; hyphens: manual; inset: auto; interactivity: auto; isolation: auto; line-height: 1.15; margin-bottom: 0px; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; margin: 0px; marker: none; mask-clip: border-box; mask-composite: add; mask-image: none; mask-mode: match-source; mask-origin: border-box; mask-repeat: repeat; mask-size: auto; mask: none; offset: normal; opacity: 1; order: 0; outline: rgb(31, 31, 31) none 3px; overlay: none; padding: 0px 0px 0px 4px; page: auto; perspective: none; position: static; quotes: auto; r: 0px; resize: none; rotate: none; rule: 3px rgb(31, 31, 31); rx: auto; ry: auto; scale: none; speak: normal; stroke: none; transform: none; transition: all; translate: none; visibility: visible; x: 0px; y: 0px; zoom: 1;"&gt;&lt;b data-index-in-node="0" data-path-to-node="3,2,0" style="animation: auto ease 0s 1 normal none running none; appearance: none; background-attachment: scroll; background-clip: border-box; background-image: none; background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto; border: 0px rgb(31, 31, 31); clear: none; clip: auto; columns: auto; contain: none; container: none; content: normal; cursor: auto; cx: 0px; cy: 0px; d: none; direction: ltr; display: inline; fill: rgb(0, 0, 0); filter: none; flex-direction: row; flex: 0 1 auto; float: none; gap: normal; hyphens: manual; inset: auto; interactivity: auto; isolation: auto; line-height: 1.15; margin-bottom: 0px; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; margin: 0px; marker: none; mask-clip: border-box; mask-composite: add; mask-image: none; mask-mode: match-source; mask-origin: border-box; mask-repeat: repeat; mask-size: auto; mask: none; offset: normal; opacity: 1; order: 0; outline: rgb(31, 31, 31) none 3px; overlay: none; padding: 0px; page: auto; perspective: none; position: static; quotes: auto; r: 0px; resize: none; rotate: none; rule: 3px rgb(31, 31, 31); rx: auto; ry: auto; scale: none; speak: normal; stroke: none; transform: none; transition: all; translate: none; visibility: visible; x: 0px; y: 0px; zoom: 1;"&gt;อัปเดต Homebrew และติดตั้ง PostgreSQL&lt;/b&gt;&lt;/div&gt;&lt;br /&gt;&lt;span style="color: red;"&gt;brew update
brew install postgresql@16&lt;/span&gt;&lt;br /&gt;&lt;div style="animation: auto ease 0s 1 normal none running none; appearance: none; background-attachment: scroll; background-clip: border-box; background-image: none; background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto; border: 0px rgb(31, 31, 31); clear: none; clip: auto; color: #1f1f1f; columns: auto; contain: none; container: none; content: normal; cursor: auto; cx: 0px; cy: 0px; d: none; direction: ltr; fill: rgb(0, 0, 0); filter: none; flex-direction: row; flex: 0 1 auto; float: none; font-family: &amp;quot;Google Sans Text&amp;quot;, sans-serif; gap: normal; hyphens: manual; inset: auto; interactivity: auto; isolation: auto; line-height: 1.15; margin-bottom: 0px; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; margin: 0px; marker: none; mask-clip: border-box; mask-composite: add; mask-image: none; mask-mode: match-source; mask-origin: border-box; mask-repeat: repeat; mask-size: auto; mask: none; offset: normal; opacity: 1; order: 0; outline: rgb(31, 31, 31) none 3px; overlay: none; padding: 0px 0px 0px 4px; page: auto; perspective: none; position: static; quotes: auto; r: 0px; resize: none; rotate: none; rule: 3px rgb(31, 31, 31); rx: auto; ry: auto; scale: none; speak: normal; stroke: none; transform: none; transition: all; translate: none; visibility: visible; x: 0px; y: 0px; zoom: 1;"&gt;&lt;i data-index-in-node="0" data-path-to-node="3,2,2" style="animation: auto ease 0s 1 normal none running none; appearance: none; background-attachment: scroll; background-clip: border-box; background-image: none; background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto; border: 0px rgb(31, 31, 31); clear: none; clip: auto; columns: auto; contain: none; container: none; content: normal; cursor: auto; cx: 0px; cy: 0px; d: none; direction: ltr; display: inline; fill: rgb(0, 0, 0); filter: none; flex-direction: row; flex: 0 1 auto; float: none; gap: normal; hyphens: manual; inset: auto; interactivity: auto; isolation: auto; line-height: 1.15; margin-bottom: 0px; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; margin: 0px; marker: none; mask-clip: border-box; mask-composite: add; mask-image: none; mask-mode: match-source; mask-origin: border-box; mask-repeat: repeat; mask-size: auto; mask: none; offset: normal; opacity: 1; order: 0; outline: rgb(31, 31, 31) none 3px; overlay: none; padding: 0px; page: auto; perspective: none; position: static; quotes: auto; r: 0px; resize: none; rotate: none; rule: 3px rgb(31, 31, 31); rx: auto; ry: auto; scale: none; speak: normal; stroke: none; transform: none; transition: all; translate: none; visibility: visible; x: 0px; y: 0px; zoom: 1;"&gt;(หรือใช้ &lt;code data-index-in-node="9" data-path-to-node="3,2,2" style="animation: auto ease 0s 1 normal none running none; appearance: none; background: none 0% 0% / auto repeat scroll padding-box border-box rgb(242, 240, 240); border: 0px rgba(0, 0, 0, 0.55); clear: none; clip: auto; color: rgba(0, 0, 0, 0.55); columns: auto; contain: none; container: none; content: normal; cursor: auto; cx: 0px; cy: 0px; d: none; direction: ltr; display: inline-block; fill: rgb(0, 0, 0); filter: none; flex-direction: row; flex: 0 1 auto; float: none; font-family: &amp;quot;Google Sans Text&amp;quot;, sans-serif; font-feature-settings: normal; font-kerning: auto; font-language-override: normal; font-optical-sizing: auto; font-size-adjust: none; font-size: 15px; font-stretch: normal; font-style: normal; font-variant: normal; font-variation-settings: normal; gap: normal; hyphens: manual; inset: auto; interactivity: auto; isolation: auto; line-height: 1.15; margin-bottom: 0px; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; margin: 0px; marker: none; mask-clip: border-box; mask-composite: add; mask-image: none; mask-mode: match-source; mask-origin: border-box; mask-repeat: repeat; mask-size: auto; mask: none; offset: normal; opacity: 1; order: 0; outline: rgba(0, 0, 0, 0.55) none 3px; overlay: none; padding: 4px 6px; page: auto; perspective: none; position: static; quotes: auto; r: 0px; resize: none; rotate: none; rule: 3px rgba(0, 0, 0, 0.55); rx: auto; ry: auto; scale: none; speak: normal; stroke: none; transform: none; transition: all; translate: none; visibility: visible; x: 0px; y: 0px; zoom: 1;"&gt;brew install postgresql&lt;/code&gt; เพื่อติดตั้งเวอร์ชันเสถียรล่าสุด)&lt;/i&gt;&lt;/div&gt;&lt;br /&gt;&lt;/li&gt;&lt;li style="animation: auto ease 0s 1 normal none running none; appearance: none; background-attachment: scroll; background-clip: border-box; background-image: none; background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto; border: 0px rgb(31, 31, 31); clear: none; clip: auto; columns: auto; contain: none; container: none; content: normal; cursor: auto; cx: 0px; cy: 0px; d: none; direction: ltr; fill: rgb(0, 0, 0); filter: none; flex-direction: row; flex: 0 1 auto; float: none; gap: normal; hyphens: manual; inset: 0px; interactivity: auto; isolation: auto; line-height: 1.15; margin-bottom: 0px; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; margin: 0px; marker: none; mask-clip: border-box; mask-composite: add; mask-image: none; mask-mode: match-source; mask-origin: border-box; mask-repeat: repeat; mask-size: auto; mask: none; offset: normal; opacity: 1; order: 0; outline: rgb(31, 31, 31) none 3px; overlay: none; padding: 0px 0px 0px 36px; page: auto; perspective: none; position: relative; quotes: auto; r: 0px; resize: none; rotate: none; rule: 3px rgb(31, 31, 31); rx: auto; ry: auto; scale: none; speak: normal; stroke: none; transform: none; transition: all; translate: none; visibility: visible; x: 0px; y: 0px; zoom: 1;"&gt;&lt;div style="animation: auto ease 0s 1 normal none running none; appearance: none; background-attachment: scroll; background-clip: border-box; background-image: none; background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto; border: 0px rgb(31, 31, 31); clear: none; clip: auto; color: #1f1f1f; columns: auto; contain: none; container: none; content: normal; cursor: auto; cx: 0px; cy: 0px; d: none; direction: ltr; fill: rgb(0, 0, 0); filter: none; flex-direction: row; flex: 0 1 auto; float: none; font-family: &amp;quot;Google Sans Text&amp;quot;, sans-serif; gap: normal; hyphens: manual; inset: auto; interactivity: auto; isolation: auto; line-height: 1.15; margin-bottom: 0px; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; margin: 0px; marker: none; mask-clip: border-box; mask-composite: add; mask-image: none; mask-mode: match-source; mask-origin: border-box; mask-repeat: repeat; mask-size: auto; mask: none; offset: normal; opacity: 1; order: 0; outline: rgb(31, 31, 31) none 3px; overlay: none; padding: 0px 0px 0px 4px; page: auto; perspective: none; position: static; quotes: auto; r: 0px; resize: none; rotate: none; rule: 3px rgb(31, 31, 31); rx: auto; ry: auto; scale: none; speak: normal; stroke: none; transform: none; transition: all; translate: none; visibility: visible; x: 0px; y: 0px; zoom: 1;"&gt;&lt;b data-index-in-node="0" data-path-to-node="3,3,0" style="animation: auto ease 0s 1 normal none running none; appearance: none; background-attachment: scroll; background-clip: border-box; background-image: none; background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto; border: 0px rgb(31, 31, 31); clear: none; clip: auto; columns: auto; contain: none; container: none; content: normal; cursor: auto; cx: 0px; cy: 0px; d: none; direction: ltr; display: inline; fill: rgb(0, 0, 0); filter: none; flex-direction: row; flex: 0 1 auto; float: none; gap: normal; hyphens: manual; inset: auto; interactivity: auto; isolation: auto; line-height: 1.15; margin-bottom: 0px; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; margin: 0px; marker: none; mask-clip: border-box; mask-composite: add; mask-image: none; mask-mode: match-source; mask-origin: border-box; mask-repeat: repeat; mask-size: auto; mask: none; offset: normal; opacity: 1; order: 0; outline: rgb(31, 31, 31) none 3px; overlay: none; padding: 0px; page: auto; perspective: none; position: static; quotes: auto; r: 0px; resize: none; rotate: none; rule: 3px rgb(31, 31, 31); rx: auto; ry: auto; scale: none; speak: normal; stroke: none; transform: none; transition: all; translate: none; visibility: visible; x: 0px; y: 0px; zoom: 1;"&gt;เริ่มการทำงานของ Service&lt;/b&gt;&lt;/div&gt;&lt;div style="animation: auto ease 0s 1 normal none running none; appearance: none; background-attachment: scroll; background-clip: border-box; background-image: none; background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto; border: 0px rgb(31, 31, 31); clear: none; clip: auto; color: #1f1f1f; columns: auto; contain: none; container: none; content: normal; cursor: auto; cx: 0px; cy: 0px; d: none; direction: ltr; fill: rgb(0, 0, 0); filter: none; flex-direction: row; flex: 0 1 auto; float: none; font-family: &amp;quot;Google Sans Text&amp;quot;, sans-serif; gap: normal; hyphens: manual; inset: auto; interactivity: auto; isolation: auto; line-height: 1.15; margin-bottom: 0px; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; margin: 0px; marker: none; mask-clip: border-box; mask-composite: add; mask-image: none; mask-mode: match-source; mask-origin: border-box; mask-repeat: repeat; mask-size: auto; mask: none; offset: normal; opacity: 1; order: 0; outline: rgb(31, 31, 31) none 3px; overlay: none; padding: 0px 0px 0px 4px; page: auto; perspective: none; position: static; quotes: auto; r: 0px; resize: none; rotate: none; rule: 3px rgb(31, 31, 31); rx: auto; ry: auto; scale: none; speak: normal; stroke: none; transform: none; transition: all; translate: none; visibility: visible; x: 0px; y: 0px; zoom: 1;"&gt;สั่งให้ PostgreSQL ทำงานในพื้นหลังและเริ่มทำงานอัตโนมัติทุกครั้งที่เปิดเครื่อง:&lt;/div&gt;&lt;br /&gt;&lt;span style="color: red;"&gt;brew services start postgresql@16&lt;/span&gt;&lt;br /&gt;&lt;div style="animation: auto ease 0s 1 normal none running none; appearance: none; background-attachment: scroll; background-clip: border-box; background-image: none; background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto; border: 0px rgb(31, 31, 31); clear: none; clip: auto; columns: auto; contain: none; container: none; content: normal; cursor: auto; cx: 0px; cy: 0px; d: none; direction: ltr; fill: rgb(0, 0, 0); filter: none; flex-direction: row; flex: 0 1 auto; float: none; font-family: &amp;quot;Google Sans Text&amp;quot;, sans-serif; gap: normal; hyphens: manual; inset: auto; interactivity: auto; isolation: auto; line-height: 1.15; margin-bottom: 0px; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; margin: 0px; marker: none; mask-clip: border-box; mask-composite: add; mask-image: none; mask-mode: match-source; mask-origin: border-box; mask-repeat: repeat; mask-size: auto; mask: none; offset: normal; opacity: 1; order: 0; outline: rgb(31, 31, 31) none 3px; overlay: none; padding: 0px 0px 0px 4px; page: auto; perspective: none; position: static; quotes: auto; r: 0px; resize: none; rotate: none; rule: 3px rgb(31, 31, 31); rx: auto; ry: auto; scale: none; speak: normal; stroke: none; transform: none; transition: all; translate: none; visibility: visible; x: 0px; y: 0px; zoom: 1;"&gt;&lt;i data-index-in-node="0" data-path-to-node="3,3,2" style="animation: auto ease 0s 1 normal none running none; appearance: none; background-attachment: scroll; background-clip: border-box; background-image: none; background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto; border: 0px rgb(31, 31, 31); clear: none; clip: auto; color: #1f1f1f; columns: auto; contain: none; container: none; content: normal; cursor: auto; cx: 0px; cy: 0px; d: none; direction: ltr; display: inline; fill: rgb(0, 0, 0); filter: none; flex-direction: row; flex: 0 1 auto; float: none; gap: normal; hyphens: manual; inset: auto; interactivity: auto; isolation: auto; line-height: 1.15; margin-bottom: 0px; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; margin: 0px; marker: none; mask-clip: border-box; mask-composite: add; mask-image: none; mask-mode: match-source; mask-origin: border-box; mask-repeat: repeat; mask-size: auto; mask: none; offset: normal; opacity: 1; order: 0; outline: rgb(31, 31, 31) none 3px; overlay: none; padding: 0px; page: auto; perspective: none; position: static; quotes: auto; r: 0px; resize: none; rotate: none; rule: 3px rgb(31, 31, 31); rx: auto; ry: auto; scale: none; speak: normal; stroke: none; transform: none; transition: all; translate: none; visibility: visible; x: 0px; y: 0px; zoom: 1;"&gt;การตรวจสอบ:&lt;/i&gt;&lt;span style="color: #1f1f1f;"&gt; พิมพ์ &lt;/span&gt;&lt;code data-index-in-node="18" data-path-to-node="3,3,2" style="animation: auto ease 0s 1 normal none running none; appearance: none; background: none 0% 0% / auto repeat scroll padding-box border-box rgb(242, 240, 240); border: 0px rgba(0, 0, 0, 0.55); clear: none; clip: auto; columns: auto; contain: none; container: none; content: normal; cursor: auto; cx: 0px; cy: 0px; d: none; direction: ltr; display: inline-block; fill: rgb(0, 0, 0); filter: none; flex-direction: row; flex: 0 1 auto; float: none; font-family: &amp;quot;Google Sans Text&amp;quot;, sans-serif; font-feature-settings: normal; font-kerning: auto; font-language-override: normal; font-optical-sizing: auto; font-size-adjust: none; font-size: 15px; font-stretch: normal; font-variant: normal; font-variation-settings: normal; gap: normal; hyphens: manual; inset: auto; interactivity: auto; isolation: auto; line-height: 1.15; margin-bottom: 0px; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; margin: 0px; marker: none; mask-clip: border-box; mask-composite: add; mask-image: none; mask-mode: match-source; mask-origin: border-box; mask-repeat: repeat; mask-size: auto; mask: none; offset: normal; opacity: 1; order: 0; outline: rgba(0, 0, 0, 0.55) none 3px; overlay: none; padding: 4px 6px; page: auto; perspective: none; position: static; quotes: auto; r: 0px; resize: none; rotate: none; rule: 3px rgba(0, 0, 0, 0.55); rx: auto; ry: auto; scale: none; speak: normal; stroke: none; transform: none; transition: all; translate: none; visibility: visible; x: 0px; y: 0px; zoom: 1;"&gt;&lt;span style="color: #ff00fe;"&gt;brew services list&lt;/span&gt;&lt;/code&gt;&lt;span style="color: #1f1f1f;"&gt; จะเห็นสถานะเป็น &lt;/span&gt;&lt;code data-index-in-node="53" data-path-to-node="3,3,2" style="animation: auto ease 0s 1 normal none running none; appearance: none; background: none 0% 0% / auto repeat scroll padding-box border-box rgb(242, 240, 240); border: 0px rgba(0, 0, 0, 0.55); clear: none; clip: auto; color: rgba(0, 0, 0, 0.55); columns: auto; contain: none; container: none; content: normal; cursor: auto; cx: 0px; cy: 0px; d: none; direction: ltr; display: inline-block; fill: rgb(0, 0, 0); filter: none; flex-direction: row; flex: 0 1 auto; float: none; font-family: &amp;quot;Google Sans Text&amp;quot;, sans-serif; font-feature-settings: normal; font-kerning: auto; font-language-override: normal; font-optical-sizing: auto; font-size-adjust: none; font-size: 15px; font-stretch: normal; font-variant: normal; font-variation-settings: normal; gap: normal; hyphens: manual; inset: auto; interactivity: auto; isolation: auto; line-height: 1.15; margin-bottom: 0px; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; margin: 0px; marker: none; mask-clip: border-box; mask-composite: add; mask-image: none; mask-mode: match-source; mask-origin: border-box; mask-repeat: repeat; mask-size: auto; mask: none; offset: normal; opacity: 1; order: 0; outline: rgba(0, 0, 0, 0.55) none 3px; overlay: none; padding: 4px 6px; page: auto; perspective: none; position: static; quotes: auto; r: 0px; resize: none; rotate: none; rule: 3px rgba(0, 0, 0, 0.55); rx: auto; ry: auto; scale: none; speak: normal; stroke: none; transform: none; transition: all; translate: none; visibility: visible; x: 0px; y: 0px; zoom: 1;"&gt;started&lt;/code&gt;&lt;span style="color: #1f1f1f;"&gt; สีเขียว&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;/li&gt;&lt;li style="animation: auto ease 0s 1 normal none running none; appearance: none; background-attachment: scroll; background-clip: border-box; background-image: none; background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto; border: 0px rgb(31, 31, 31); clear: none; clip: auto; columns: auto; contain: none; container: none; content: normal; cursor: auto; cx: 0px; cy: 0px; d: none; direction: ltr; fill: rgb(0, 0, 0); filter: none; flex-direction: row; flex: 0 1 auto; float: none; gap: normal; hyphens: manual; inset: 0px; interactivity: auto; isolation: auto; line-height: 1.15; margin-bottom: 0px; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; margin: 0px; marker: none; mask-clip: border-box; mask-composite: add; mask-image: none; mask-mode: match-source; mask-origin: border-box; mask-repeat: repeat; mask-size: auto; mask: none; offset: normal; opacity: 1; order: 0; outline: rgb(31, 31, 31) none 3px; overlay: none; padding: 0px 0px 0px 36px; page: auto; perspective: none; position: relative; quotes: auto; r: 0px; resize: none; rotate: none; rule: 3px rgb(31, 31, 31); rx: auto; ry: auto; scale: none; speak: normal; stroke: none; transform: none; transition: all; translate: none; visibility: visible; x: 0px; y: 0px; zoom: 1;"&gt;&lt;div style="animation: auto ease 0s 1 normal none running none; appearance: none; background-attachment: scroll; background-clip: border-box; background-image: none; background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto; border: 0px rgb(31, 31, 31); clear: none; clip: auto; color: #1f1f1f; columns: auto; contain: none; container: none; content: normal; cursor: auto; cx: 0px; cy: 0px; d: none; direction: ltr; fill: rgb(0, 0, 0); filter: none; flex-direction: row; flex: 0 1 auto; float: none; font-family: &amp;quot;Google Sans Text&amp;quot;, sans-serif; gap: normal; hyphens: manual; inset: auto; interactivity: auto; isolation: auto; line-height: 1.15; margin-bottom: 0px; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; margin: 0px; marker: none; mask-clip: border-box; mask-composite: add; mask-image: none; mask-mode: match-source; mask-origin: border-box; mask-repeat: repeat; mask-size: auto; mask: none; offset: normal; opacity: 1; order: 0; outline: rgb(31, 31, 31) none 3px; overlay: none; padding: 0px 0px 0px 4px; page: auto; perspective: none; position: static; quotes: auto; r: 0px; resize: none; rotate: none; rule: 3px rgb(31, 31, 31); rx: auto; ry: auto; scale: none; speak: normal; stroke: none; transform: none; transition: all; translate: none; visibility: visible; x: 0px; y: 0px; zoom: 1;"&gt;&lt;b data-index-in-node="0" data-path-to-node="3,4,0" style="animation: auto ease 0s 1 normal none running none; appearance: none; background-attachment: scroll; background-clip: border-box; background-image: none; background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto; border: 0px rgb(31, 31, 31); clear: none; clip: auto; columns: auto; contain: none; container: none; content: normal; cursor: auto; cx: 0px; cy: 0px; d: none; direction: ltr; display: inline; fill: rgb(0, 0, 0); filter: none; flex-direction: row; flex: 0 1 auto; float: none; gap: normal; hyphens: manual; inset: auto; interactivity: auto; isolation: auto; line-height: 1.15; margin-bottom: 0px; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; margin: 0px; marker: none; mask-clip: border-box; mask-composite: add; mask-image: none; mask-mode: match-source; mask-origin: border-box; mask-repeat: repeat; mask-size: auto; mask: none; offset: normal; opacity: 1; order: 0; outline: rgb(31, 31, 31) none 3px; overlay: none; padding: 0px; page: auto; perspective: none; position: static; quotes: auto; r: 0px; resize: none; rotate: none; rule: 3px rgb(31, 31, 31); rx: auto; ry: auto; scale: none; speak: normal; stroke: none; transform: none; transition: all; translate: none; visibility: visible; x: 0px; y: 0px; zoom: 1;"&gt;ทดสอบการเชื่อมต่อฐานข้อมูล&lt;/b&gt;&lt;/div&gt;&lt;br /&gt;&lt;span style="color: red;"&gt;psql postgres&lt;/span&gt;&lt;br /&gt;&lt;div style="animation: auto ease 0s 1 normal none running none; appearance: none; background-attachment: scroll; background-clip: border-box; background-image: none; background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto; border: 0px rgb(31, 31, 31); clear: none; clip: auto; color: #1f1f1f; columns: auto; contain: none; container: none; content: normal; cursor: auto; cx: 0px; cy: 0px; d: none; direction: ltr; fill: rgb(0, 0, 0); filter: none; flex-direction: row; flex: 0 1 auto; float: none; font-family: &amp;quot;Google Sans Text&amp;quot;, sans-serif; gap: normal; hyphens: manual; inset: auto; interactivity: auto; isolation: auto; line-height: 1.15; margin-bottom: 0px; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; margin: 0px; marker: none; mask-clip: border-box; mask-composite: add; mask-image: none; mask-mode: match-source; mask-origin: border-box; mask-repeat: repeat; mask-size: auto; mask: none; offset: normal; opacity: 1; order: 0; outline: rgb(31, 31, 31) none 3px; overlay: none; padding: 0px 0px 0px 4px; page: auto; perspective: none; position: static; quotes: auto; r: 0px; resize: none; rotate: none; rule: 3px rgb(31, 31, 31); rx: auto; ry: auto; scale: none; speak: normal; stroke: none; transform: none; transition: all; translate: none; visibility: visible; x: 0px; y: 0px; zoom: 1;"&gt;&lt;i data-index-in-node="0" data-path-to-node="3,4,2" style="animation: auto ease 0s 1 normal none running none; appearance: none; background-attachment: scroll; background-clip: border-box; background-image: none; background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto; border: 0px rgb(31, 31, 31); clear: none; clip: auto; columns: auto; contain: none; container: none; content: normal; cursor: auto; cx: 0px; cy: 0px; d: none; direction: ltr; display: inline; fill: rgb(0, 0, 0); filter: none; flex-direction: row; flex: 0 1 auto; float: none; gap: normal; hyphens: manual; inset: auto; interactivity: auto; isolation: auto; line-height: 1.15; margin-bottom: 0px; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; margin: 0px; marker: none; mask-clip: border-box; mask-composite: add; mask-image: none; mask-mode: match-source; mask-origin: border-box; mask-repeat: repeat; mask-size: auto; mask: none; offset: normal; opacity: 1; order: 0; outline: rgb(31, 31, 31) none 3px; overlay: none; padding: 0px; page: auto; perspective: none; position: static; quotes: auto; r: 0px; resize: none; rotate: none; rule: 3px rgb(31, 31, 31); rx: auto; ry: auto; scale: none; speak: normal; stroke: none; transform: none; transition: all; translate: none; visibility: visible; x: 0px; y: 0px; zoom: 1;"&gt;การตรวจสอบ:&lt;/i&gt; หากสำเร็จ หน้าจอจะเปลี่ยนเป็น command prompt ของ PostgreSQL เช่น &lt;code data-index-in-node="77" data-path-to-node="3,4,2" style="animation: auto ease 0s 1 normal none running none; appearance: none; background: none 0% 0% / auto repeat scroll padding-box border-box rgb(242, 240, 240); border: 0px rgba(0, 0, 0, 0.55); clear: none; clip: auto; color: rgba(0, 0, 0, 0.55); columns: auto; contain: none; container: none; content: normal; cursor: auto; cx: 0px; cy: 0px; d: none; direction: ltr; display: inline-block; fill: rgb(0, 0, 0); filter: none; flex-direction: row; flex: 0 1 auto; float: none; font-family: &amp;quot;Google Sans Text&amp;quot;, sans-serif; font-feature-settings: normal; font-kerning: auto; font-language-override: normal; font-optical-sizing: auto; font-size-adjust: none; font-size: 15px; font-stretch: normal; font-variant: normal; font-variation-settings: normal; gap: normal; hyphens: manual; inset: auto; interactivity: auto; isolation: auto; line-height: 1.15; margin-bottom: 0px; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; margin: 0px; marker: none; mask-clip: border-box; mask-composite: add; mask-image: none; mask-mode: match-source; mask-origin: border-box; mask-repeat: repeat; mask-size: auto; mask: none; offset: normal; opacity: 1; order: 0; outline: rgba(0, 0, 0, 0.55) none 3px; overlay: none; padding: 4px 6px; page: auto; perspective: none; position: static; quotes: auto; r: 0px; resize: none; rotate: none; rule: 3px rgba(0, 0, 0, 0.55); rx: auto; ry: auto; scale: none; speak: normal; stroke: none; transform: none; transition: all; translate: none; visibility: visible; x: 0px; y: 0px; zoom: 1;"&gt;postgres=#&lt;/code&gt; (สามารถพิมพ์ &lt;code data-index-in-node="101" data-path-to-node="3,4,2" style="animation: auto ease 0s 1 normal none running none; appearance: none; background: none 0% 0% / auto repeat scroll padding-box border-box rgb(242, 240, 240); border: 0px rgba(0, 0, 0, 0.55); clear: none; clip: auto; color: rgba(0, 0, 0, 0.55); columns: auto; contain: none; container: none; content: normal; cursor: auto; cx: 0px; cy: 0px; d: none; direction: ltr; display: inline-block; fill: rgb(0, 0, 0); filter: none; flex-direction: row; flex: 0 1 auto; float: none; font-family: &amp;quot;Google Sans Text&amp;quot;, sans-serif; font-feature-settings: normal; font-kerning: auto; font-language-override: normal; font-optical-sizing: auto; font-size-adjust: none; font-size: 15px; font-stretch: normal; font-variant: normal; font-variation-settings: normal; gap: normal; hyphens: manual; inset: auto; interactivity: auto; isolation: auto; line-height: 1.15; margin-bottom: 0px; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; margin: 0px; marker: none; mask-clip: border-box; mask-composite: add; mask-image: none; mask-mode: match-source; mask-origin: border-box; mask-repeat: repeat; mask-size: auto; mask: none; offset: normal; opacity: 1; order: 0; outline: rgba(0, 0, 0, 0.55) none 3px; overlay: none; padding: 4px 6px; page: auto; perspective: none; position: static; quotes: auto; r: 0px; resize: none; rotate: none; rule: 3px rgba(0, 0, 0, 0.55); rx: auto; ry: auto; scale: none; speak: normal; stroke: none; transform: none; transition: all; translate: none; visibility: visible; x: 0px; y: 0px; zoom: 1;"&gt;\q&lt;/code&gt; แล้วกด Enter เพื่อออกจากโปรแกรม)&lt;/div&gt;&lt;br /&gt;&lt;/li&gt;&lt;/ol&gt;&lt;h3 data-path-to-node="5" style="animation: auto ease 0s 1 normal none running none; appearance: none; background-attachment: scroll; background-clip: border-box; background-image: none; background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto; border: 0px rgb(31, 31, 31); clear: none; clip: auto; color: #1f1f1f; columns: auto; contain: none; container: none; content: normal; cursor: auto; cx: 0px; cy: 0px; d: none; direction: ltr; fill: rgb(0, 0, 0); filter: none; flex-direction: row; flex: 0 1 auto; float: none; font-family: &amp;quot;Google Sans&amp;quot;, sans-serif; gap: normal; hyphens: manual; inset: auto; interactivity: auto; isolation: auto; line-height: 1.15; margin-bottom: 0px; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; margin: 0px; marker: none; mask-clip: border-box; mask-composite: add; mask-image: none; mask-mode: match-source; mask-origin: border-box; mask-repeat: repeat; mask-size: auto; mask: none; offset: normal; opacity: 1; order: 0; outline: rgb(31, 31, 31) none 3px; overlay: none; padding: 0px; page: auto; perspective: none; position: static; quotes: auto; r: 0px; resize: none; rotate: none; rule: 3px rgb(31, 31, 31); rx: auto; ry: auto; scale: none; speak: normal; stroke: none; transform: none; transition: all; translate: none; visibility: visible; x: 0px; y: 0px; zoom: 1;"&gt;วิธีที่ 2: ติดตั้งผ่านแอปพลิเคชัน Postgres.app (สำหรับผู้ที่ต้องการหน้าต่าง GUI)&lt;/h3&gt;&lt;ol data-path-to-node="6" start="1" style="animation: auto ease 0s 1 normal none running none; appearance: none; background-attachment: scroll; background-clip: border-box; background-image: none; background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto; border: 0px rgb(31, 31, 31); clear: none; clip: auto; color: #1f1f1f; columns: auto; contain: none; container: none; content: normal; cursor: auto; cx: 0px; cy: 0px; d: none; direction: ltr; fill: rgb(0, 0, 0); filter: none; flex-direction: row; flex: 0 1 auto; float: none; font-family: &amp;quot;Google Sans Text&amp;quot;, sans-serif; gap: normal; hyphens: manual; inset: auto; interactivity: auto; isolation: auto; line-height: 1.15; margin-bottom: 0px; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; margin: 0px; marker: none; mask-clip: border-box; mask-composite: add; mask-image: none; mask-mode: match-source; mask-origin: border-box; mask-repeat: repeat; mask-size: auto; mask: none; offset: normal; opacity: 1; order: 0; outline: rgb(31, 31, 31) none 3px; overlay: none; padding-inline-start: 32px; padding: 0px 0px 0px 4px; page: auto; perspective: none; position: static; quotes: auto; r: 0px; resize: none; rotate: none; rule: 3px rgb(31, 31, 31); rx: auto; ry: auto; scale: none; speak: normal; stroke: none; transform: none; transition: all; translate: none; visibility: visible; x: 0px; y: 0px; zoom: 1;"&gt;&lt;li style="animation: auto ease 0s 1 normal none running none; appearance: none; background-attachment: scroll; background-clip: border-box; background-image: none; background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto; border: 0px rgb(31, 31, 31); clear: none; clip: auto; columns: auto; contain: none; container: none; content: normal; cursor: auto; cx: 0px; cy: 0px; d: none; direction: ltr; fill: rgb(0, 0, 0); filter: none; flex-direction: row; flex: 0 1 auto; float: none; gap: normal; hyphens: manual; inset: 0px; interactivity: auto; isolation: auto; line-height: 1.15; margin-bottom: 0px; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; margin: 0px; marker: none; mask-clip: border-box; mask-composite: add; mask-image: none; mask-mode: match-source; mask-origin: border-box; mask-repeat: repeat; mask-size: auto; mask: none; offset: normal; opacity: 1; order: 0; outline: rgb(31, 31, 31) none 3px; overlay: none; padding: 0px 0px 0px 36px; page: auto; perspective: none; position: relative; quotes: auto; r: 0px; resize: none; rotate: none; rule: 3px rgb(31, 31, 31); rx: auto; ry: auto; scale: none; speak: normal; stroke: none; transform: none; transition: all; translate: none; visibility: visible; x: 0px; y: 0px; zoom: 1;"&gt;&lt;div style="animation: auto ease 0s 1 normal none running none; appearance: none; background-attachment: scroll; background-clip: border-box; background-image: none; background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto; border: 0px rgb(31, 31, 31); clear: none; clip: auto; columns: auto; contain: none; container: none; content: normal; cursor: auto; cx: 0px; cy: 0px; d: none; direction: ltr; fill: rgb(0, 0, 0); filter: none; flex-direction: row; flex: 0 1 auto; float: none; gap: normal; hyphens: manual; inset: auto; interactivity: auto; isolation: auto; line-height: 1.15; margin-bottom: 0px; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; margin: 0px; marker: none; mask-clip: border-box; mask-composite: add; mask-image: none; mask-mode: match-source; mask-origin: border-box; mask-repeat: repeat; mask-size: auto; mask: none; offset: normal; opacity: 1; order: 0; outline: rgb(31, 31, 31) none 3px; overlay: none; padding: 0px 0px 0px 4px; page: auto; perspective: none; position: static; quotes: auto; r: 0px; resize: none; rotate: none; rule: 3px rgb(31, 31, 31); rx: auto; ry: auto; scale: none; speak: normal; stroke: none; transform: none; transition: all; translate: none; visibility: visible; x: 0px; y: 0px; zoom: 1;"&gt;เข้าไปที่เว็บไซต์ทางการของ &lt;response-element class="no-md" ng-version="0.0.0-PLACEHOLDER" style="animation: auto ease 0s 1 normal none running none; appearance: none; background-attachment: scroll; background-clip: border-box; background-image: none; background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto; border: 0px rgb(31, 31, 31); clear: none; clip: auto; columns: auto; contain: none; container: none; content: normal; cursor: auto; cx: 0px; cy: 0px; d: none; direction: ltr; display: inline; fill: rgb(0, 0, 0); filter: none; flex-direction: row; flex: 0 1 auto; float: none; gap: normal; hyphens: manual; inset: auto; interactivity: auto; isolation: auto; line-height: 1.15; margin-bottom: 0px; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; margin: 0px; marker: none; mask-clip: border-box; mask-composite: add; mask-image: none; mask-mode: match-source; mask-origin: border-box; mask-repeat: repeat; mask-size: auto; mask: none; offset: normal; opacity: 1; order: 0; outline: rgb(31, 31, 31) none 3px; overlay: none; padding: 0px; page: auto; perspective: none; position: static; quotes: auto; r: 0px; resize: none; rotate: none; rule: 3px rgb(31, 31, 31); rx: auto; ry: auto; scale: none; speak: normal; stroke: none; transform: none; transition: all; translate: none; visibility: visible; x: 0px; y: 0px; zoom: 1;"&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;link-block _nghost-ng-c2438709630="" class="ng-star-inserted" style="animation: auto ease 0s 1 normal none running none; appearance: none; background-attachment: scroll; background-clip: border-box; background-image: none; background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto; border: 0px rgb(31, 31, 31); clear: none; clip: auto; columns: auto; contain: none; container: none; content: normal; cursor: auto; cx: 0px; cy: 0px; d: none; direction: ltr; display: inline; fill: rgb(0, 0, 0); filter: none; flex-direction: row; flex: 0 1 auto; float: none; gap: normal; hyphens: manual; inset: auto; interactivity: auto; isolation: auto; line-height: 1.15; margin-bottom: 0px; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; margin: 0px; marker: none; mask-clip: border-box; mask-composite: add; mask-image: none; mask-mode: match-source; mask-origin: border-box; mask-repeat: repeat; mask-size: auto; mask: none; offset: normal; opacity: 1; order: 0; outline: rgb(31, 31, 31) none 3px; overlay: none; padding: 0px; page: auto; perspective: none; position: static; quotes: auto; r: 0px; resize: none; rotate: none; rule: 3px rgb(31, 31, 31); rx: auto; ry: auto; scale: none; speak: normal; stroke: none; transform: none; transition: all; translate: none; visibility: visible; x: 0px; y: 0px; zoom: 1;"&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;a _ngcontent-ng-c2438709630="" _nghost-ng-c3278892317="" class="ng-star-inserted" data-hveid="0" data-ved="0CAAQ_4QMahgKEwjgh8K-zseXAxUAAAAAHQAAAAAQiwE" decode-data-ved="1" externallink="" href="https://postgresapp.com/" jslog="197247;track:generic_click,impression,attention;BardVeMetadataKey:W1sicl81M2I2NTlmMGJhN2U1OWQxIiwiY181OGM3NzQxZWQxMmI0MzE1IixudWxsLCJyY185NzBlYzg1NzNiZjk5MmU4IixudWxsLG51bGwsInRoIixudWxsLDEsbnVsbCxudWxsLDEsMF1d" rel="noopener" style="animation: auto ease 0s 1 normal none running none; appearance: none; background-attachment: scroll; background-clip: border-box; background-image: none; background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto; border: 0px rgb(0, 0, 0); clear: none; clip: auto; color: black; columns: auto; contain: none; container: none; content: normal; cursor: pointer; cx: 0px; cy: 0px; d: none; direction: ltr; display: inline; fill: rgb(0, 0, 0); filter: none; flex-direction: row; flex: 0 1 auto; float: none; gap: normal; hyphens: manual; inset: auto; interactivity: auto; isolation: auto; line-height: 1.15; margin-bottom: 0px; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; margin: 0px; marker: none; mask-clip: border-box; mask-composite: add; mask-image: none; mask-mode: match-source; mask-origin: border-box; mask-repeat: repeat; mask-size: auto; mask: none; offset: normal; opacity: 1; order: 0; outline: rgb(0, 0, 0) none 3px; overlay: none; padding: 0px; page: auto; perspective: none; position: static; quotes: auto; r: 0px; resize: none; rotate: none; rule: 3px rgb(0, 0, 0); rx: auto; ry: auto; scale: none; speak: normal; stroke: none; transform: none; transition: all; translate: none; visibility: visible; x: 0px; y: 0px; zoom: 1;" target="_blank"&gt;Postgres.app&lt;/a&gt;&lt;!----&gt;&lt;/link-block&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;/response-element&gt;&lt;/div&gt;&lt;br /&gt;&lt;/li&gt;&lt;li style="animation: auto ease 0s 1 normal none running none; appearance: none; background-attachment: scroll; background-clip: border-box; background-image: none; background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto; border: 0px rgb(31, 31, 31); clear: none; clip: auto; columns: auto; contain: none; container: none; content: normal; cursor: auto; cx: 0px; cy: 0px; d: none; direction: ltr; fill: rgb(0, 0, 0); filter: none; flex-direction: row; flex: 0 1 auto; float: none; gap: normal; hyphens: manual; inset: 0px; interactivity: auto; isolation: auto; line-height: 1.15; margin-bottom: 0px; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; margin: 0px; marker: none; mask-clip: border-box; mask-composite: add; mask-image: none; mask-mode: match-source; mask-origin: border-box; mask-repeat: repeat; mask-size: auto; mask: none; offset: normal; opacity: 1; order: 0; outline: rgb(31, 31, 31) none 3px; overlay: none; padding: 0px 0px 0px 36px; page: auto; perspective: none; position: relative; quotes: auto; r: 0px; resize: none; rotate: none; rule: 3px rgb(31, 31, 31); rx: auto; ry: auto; scale: none; speak: normal; stroke: none; transform: none; transition: all; translate: none; visibility: visible; x: 0px; y: 0px; zoom: 1;"&gt;&lt;div style="animation: auto ease 0s 1 normal none running none; appearance: none; background-attachment: scroll; background-clip: border-box; background-image: none; background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto; border: 0px rgb(31, 31, 31); clear: none; clip: auto; columns: auto; contain: none; container: none; content: normal; cursor: auto; cx: 0px; cy: 0px; d: none; direction: ltr; fill: rgb(0, 0, 0); filter: none; flex-direction: row; flex: 0 1 auto; float: none; gap: normal; hyphens: manual; inset: auto; interactivity: auto; isolation: auto; line-height: 1.15; margin-bottom: 0px; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; margin: 0px; marker: none; mask-clip: border-box; mask-composite: add; mask-image: none; mask-mode: match-source; mask-origin: border-box; mask-repeat: repeat; mask-size: auto; mask: none; offset: normal; opacity: 1; order: 0; outline: rgb(31, 31, 31) none 3px; overlay: none; padding: 0px 0px 0px 4px; page: auto; perspective: none; position: static; quotes: auto; r: 0px; resize: none; rotate: none; rule: 3px rgb(31, 31, 31); rx: auto; ry: auto; scale: none; speak: normal; stroke: none; transform: none; transition: all; translate: none; visibility: visible; x: 0px; y: 0px; zoom: 1;"&gt;ดาวน์โหลดไฟล์ &lt;code data-index-in-node="14" data-path-to-node="6,1,0" style="animation: auto ease 0s 1 normal none running none; appearance: none; background: none 0% 0% / auto repeat scroll padding-box border-box rgb(242, 240, 240); border: 0px rgba(0, 0, 0, 0.55); clear: none; clip: auto; color: rgba(0, 0, 0, 0.55); columns: auto; contain: none; container: none; content: normal; cursor: auto; cx: 0px; cy: 0px; d: none; direction: ltr; display: inline-block; fill: rgb(0, 0, 0); filter: none; flex-direction: row; flex: 0 1 auto; float: none; font-family: &amp;quot;Google Sans Text&amp;quot;, sans-serif; font-feature-settings: normal; font-kerning: auto; font-language-override: normal; font-optical-sizing: auto; font-size-adjust: none; font-size: 15px; font-stretch: normal; font-variant: normal; font-variation-settings: normal; gap: normal; hyphens: manual; inset: auto; interactivity: auto; isolation: auto; line-height: 1.15; margin-bottom: 0px; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; margin: 0px; marker: none; mask-clip: border-box; mask-composite: add; mask-image: none; mask-mode: match-source; mask-origin: border-box; mask-repeat: repeat; mask-size: auto; mask: none; offset: normal; opacity: 1; order: 0; outline: rgba(0, 0, 0, 0.55) none 3px; overlay: none; padding: 4px 6px; page: auto; perspective: none; position: static; quotes: auto; r: 0px; resize: none; rotate: none; rule: 3px rgba(0, 0, 0, 0.55); rx: auto; ry: auto; scale: none; speak: normal; stroke: none; transform: none; transition: all; translate: none; visibility: visible; x: 0px; y: 0px; zoom: 1;"&gt;.dmg&lt;/code&gt; ที่รองรับเวอร์ชัน macOS ของคุณ&lt;/div&gt;&lt;br /&gt;&lt;/li&gt;&lt;li style="animation: auto ease 0s 1 normal none running none; appearance: none; background-attachment: scroll; background-clip: border-box; background-image: none; background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto; border: 0px rgb(31, 31, 31); clear: none; clip: auto; columns: auto; contain: none; container: none; content: normal; cursor: auto; cx: 0px; cy: 0px; d: none; direction: ltr; fill: rgb(0, 0, 0); filter: none; flex-direction: row; flex: 0 1 auto; float: none; gap: normal; hyphens: manual; inset: 0px; interactivity: auto; isolation: auto; line-height: 1.15; margin-bottom: 0px; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; margin: 0px; marker: none; mask-clip: border-box; mask-composite: add; mask-image: none; mask-mode: match-source; mask-origin: border-box; mask-repeat: repeat; mask-size: auto; mask: none; offset: normal; opacity: 1; order: 0; outline: rgb(31, 31, 31) none 3px; overlay: none; padding: 0px 0px 0px 36px; page: auto; perspective: none; position: relative; quotes: auto; r: 0px; resize: none; rotate: none; rule: 3px rgb(31, 31, 31); rx: auto; ry: auto; scale: none; speak: normal; stroke: none; transform: none; transition: all; translate: none; visibility: visible; x: 0px; y: 0px; zoom: 1;"&gt;&lt;div style="animation: auto ease 0s 1 normal none running none; appearance: none; background-attachment: scroll; background-clip: border-box; background-image: none; background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto; border: 0px rgb(31, 31, 31); clear: none; clip: auto; columns: auto; contain: none; container: none; content: normal; cursor: auto; cx: 0px; cy: 0px; d: none; direction: ltr; fill: rgb(0, 0, 0); filter: none; flex-direction: row; flex: 0 1 auto; float: none; gap: normal; hyphens: manual; inset: auto; interactivity: auto; isolation: auto; line-height: 1.15; margin-bottom: 0px; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; margin: 0px; marker: none; mask-clip: border-box; mask-composite: add; mask-image: none; mask-mode: match-source; mask-origin: border-box; mask-repeat: repeat; mask-size: auto; mask: none; offset: normal; opacity: 1; order: 0; outline: rgb(31, 31, 31) none 3px; overlay: none; padding: 0px 0px 0px 4px; page: auto; perspective: none; position: static; quotes: auto; r: 0px; resize: none; rotate: none; rule: 3px rgb(31, 31, 31); rx: auto; ry: auto; scale: none; speak: normal; stroke: none; transform: none; transition: all; translate: none; visibility: visible; x: 0px; y: 0px; zoom: 1;"&gt;เปิดไฟล์ &lt;code data-index-in-node="9" data-path-to-node="6,2,0" style="animation: auto ease 0s 1 normal none running none; appearance: none; background: none 0% 0% / auto repeat scroll padding-box border-box rgb(242, 240, 240); border: 0px rgba(0, 0, 0, 0.55); clear: none; clip: auto; color: rgba(0, 0, 0, 0.55); columns: auto; contain: none; container: none; content: normal; cursor: auto; cx: 0px; cy: 0px; d: none; direction: ltr; display: inline-block; fill: rgb(0, 0, 0); filter: none; flex-direction: row; flex: 0 1 auto; float: none; font-family: &amp;quot;Google Sans Text&amp;quot;, sans-serif; font-feature-settings: normal; font-kerning: auto; font-language-override: normal; font-optical-sizing: auto; font-size-adjust: none; font-size: 15px; font-stretch: normal; font-variant: normal; font-variation-settings: normal; gap: normal; hyphens: manual; inset: auto; interactivity: auto; isolation: auto; line-height: 1.15; margin-bottom: 0px; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; margin: 0px; marker: none; mask-clip: border-box; mask-composite: add; mask-image: none; mask-mode: match-source; mask-origin: border-box; mask-repeat: repeat; mask-size: auto; mask: none; offset: normal; opacity: 1; order: 0; outline: rgba(0, 0, 0, 0.55) none 3px; overlay: none; padding: 4px 6px; page: auto; perspective: none; position: static; quotes: auto; r: 0px; resize: none; rotate: none; rule: 3px rgba(0, 0, 0, 0.55); rx: auto; ry: auto; scale: none; speak: normal; stroke: none; transform: none; transition: all; translate: none; visibility: visible; x: 0px; y: 0px; zoom: 1;"&gt;.dmg&lt;/code&gt; แล้วลากไอคอน &lt;b data-index-in-node="27" data-path-to-node="6,2,0" style="animation: auto ease 0s 1 normal none running none; appearance: none; background-attachment: scroll; background-clip: border-box; background-image: none; background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto; border: 0px rgb(31, 31, 31); clear: none; clip: auto; columns: auto; contain: none; container: none; content: normal; cursor: auto; cx: 0px; cy: 0px; d: none; direction: ltr; display: inline; fill: rgb(0, 0, 0); filter: none; flex-direction: row; flex: 0 1 auto; float: none; gap: normal; hyphens: manual; inset: auto; interactivity: auto; isolation: auto; line-height: 1.15; margin-bottom: 0px; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; margin: 0px; marker: none; mask-clip: border-box; mask-composite: add; mask-image: none; mask-mode: match-source; mask-origin: border-box; mask-repeat: repeat; mask-size: auto; mask: none; offset: normal; opacity: 1; order: 0; outline: rgb(31, 31, 31) none 3px; overlay: none; padding: 0px; page: auto; perspective: none; position: static; quotes: auto; r: 0px; resize: none; rotate: none; rule: 3px rgb(31, 31, 31); rx: auto; ry: auto; scale: none; speak: normal; stroke: none; transform: none; transition: all; translate: none; visibility: visible; x: 0px; y: 0px; zoom: 1;"&gt;Postgres&lt;/b&gt; ไปไว้ในโฟลเดอร์ &lt;b data-index-in-node="52" data-path-to-node="6,2,0" style="animation: auto ease 0s 1 normal none running none; appearance: none; background-attachment: scroll; background-clip: border-box; background-image: none; background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto; border: 0px rgb(31, 31, 31); clear: none; clip: auto; columns: auto; contain: none; container: none; content: normal; cursor: auto; cx: 0px; cy: 0px; d: none; direction: ltr; display: inline; fill: rgb(0, 0, 0); filter: none; flex-direction: row; flex: 0 1 auto; float: none; gap: normal; hyphens: manual; inset: auto; interactivity: auto; isolation: auto; line-height: 1.15; margin-bottom: 0px; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; margin: 0px; marker: none; mask-clip: border-box; mask-composite: add; mask-image: none; mask-mode: match-source; mask-origin: border-box; mask-repeat: repeat; mask-size: auto; mask: none; offset: normal; opacity: 1; order: 0; outline: rgb(31, 31, 31) none 3px; overlay: none; padding: 0px; page: auto; perspective: none; position: static; quotes: auto; r: 0px; resize: none; rotate: none; rule: 3px rgb(31, 31, 31); rx: auto; ry: auto; scale: none; speak: normal; stroke: none; transform: none; transition: all; translate: none; visibility: visible; x: 0px; y: 0px; zoom: 1;"&gt;Applications&lt;/b&gt;&lt;/div&gt;&lt;br /&gt;&lt;/li&gt;&lt;li style="animation: auto ease 0s 1 normal none running none; appearance: none; background-attachment: scroll; background-clip: border-box; background-image: none; background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto; border: 0px rgb(31, 31, 31); clear: none; clip: auto; columns: auto; contain: none; container: none; content: normal; cursor: auto; cx: 0px; cy: 0px; d: none; direction: ltr; fill: rgb(0, 0, 0); filter: none; flex-direction: row; flex: 0 1 auto; float: none; gap: normal; hyphens: manual; inset: 0px; interactivity: auto; isolation: auto; line-height: 1.15; margin-bottom: 0px; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; margin: 0px; marker: none; mask-clip: border-box; mask-composite: add; mask-image: none; mask-mode: match-source; mask-origin: border-box; mask-repeat: repeat; mask-size: auto; mask: none; offset: normal; opacity: 1; order: 0; outline: rgb(31, 31, 31) none 3px; overlay: none; padding: 0px 0px 0px 36px; page: auto; perspective: none; position: relative; quotes: auto; r: 0px; resize: none; rotate: none; rule: 3px rgb(31, 31, 31); rx: auto; ry: auto; scale: none; speak: normal; stroke: none; transform: none; transition: all; translate: none; visibility: visible; x: 0px; y: 0px; zoom: 1;"&gt;&lt;div style="animation: auto ease 0s 1 normal none running none; appearance: none; background-attachment: scroll; background-clip: border-box; background-image: none; background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto; border: 0px rgb(31, 31, 31); clear: none; clip: auto; columns: auto; contain: none; container: none; content: normal; cursor: auto; cx: 0px; cy: 0px; d: none; direction: ltr; fill: rgb(0, 0, 0); filter: none; flex-direction: row; flex: 0 1 auto; float: none; gap: normal; hyphens: manual; inset: auto; interactivity: auto; isolation: auto; line-height: 1.15; margin-bottom: 0px; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; margin: 0px; marker: none; mask-clip: border-box; mask-composite: add; mask-image: none; mask-mode: match-source; mask-origin: border-box; mask-repeat: repeat; mask-size: auto; mask: none; offset: normal; opacity: 1; order: 0; outline: rgb(31, 31, 31) none 3px; overlay: none; padding: 0px 0px 0px 4px; page: auto; perspective: none; position: static; quotes: auto; r: 0px; resize: none; rotate: none; rule: 3px rgb(31, 31, 31); rx: auto; ry: auto; scale: none; speak: normal; stroke: none; transform: none; transition: all; translate: none; visibility: visible; x: 0px; y: 0px; zoom: 1;"&gt;เปิดแอป Postgres แล้วคลิกปุ่ม &lt;b data-index-in-node="30" data-path-to-node="6,3,0" style="animation: auto ease 0s 1 normal none running none; appearance: none; background-attachment: scroll; background-clip: border-box; background-image: none; background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto; border: 0px rgb(31, 31, 31); clear: none; clip: auto; columns: auto; contain: none; container: none; content: normal; cursor: auto; cx: 0px; cy: 0px; d: none; direction: ltr; display: inline; fill: rgb(0, 0, 0); filter: none; flex-direction: row; flex: 0 1 auto; float: none; gap: normal; hyphens: manual; inset: auto; interactivity: auto; isolation: auto; line-height: 1.15; margin-bottom: 0px; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; margin: 0px; marker: none; mask-clip: border-box; mask-composite: add; mask-image: none; mask-mode: match-source; mask-origin: border-box; mask-repeat: repeat; mask-size: auto; mask: none; offset: normal; opacity: 1; order: 0; outline: rgb(31, 31, 31) none 3px; overlay: none; padding: 0px; page: auto; perspective: none; position: static; quotes: auto; r: 0px; resize: none; rotate: none; rule: 3px rgb(31, 31, 31); rx: auto; ry: auto; scale: none; speak: normal; stroke: none; transform: none; transition: all; translate: none; visibility: visible; x: 0px; y: 0px; zoom: 1;"&gt;Initialize&lt;/b&gt; เพื่อสร้างฐานข้อมูลเริ่มต้น&lt;/div&gt;&lt;br /&gt;&lt;/li&gt;&lt;li style="animation: auto ease 0s 1 normal none running none; appearance: none; background-attachment: scroll; background-clip: border-box; background-image: none; background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto; border: 0px rgb(31, 31, 31); clear: none; clip: auto; columns: auto; contain: none; container: none; content: normal; cursor: auto; cx: 0px; cy: 0px; d: none; direction: ltr; fill: rgb(0, 0, 0); filter: none; flex-direction: row; flex: 0 1 auto; float: none; gap: normal; hyphens: manual; inset: 0px; interactivity: auto; isolation: auto; line-height: 1.15; margin-bottom: 0px; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; margin: 0px; marker: none; mask-clip: border-box; mask-composite: add; mask-image: none; mask-mode: match-source; mask-origin: border-box; mask-repeat: repeat; mask-size: auto; mask: none; offset: normal; opacity: 1; order: 0; outline: rgb(31, 31, 31) none 3px; overlay: none; padding: 0px 0px 0px 36px; page: auto; perspective: none; position: relative; quotes: auto; r: 0px; resize: none; rotate: none; rule: 3px rgb(31, 31, 31); rx: auto; ry: auto; scale: none; speak: normal; stroke: none; transform: none; transition: all; translate: none; visibility: visible; x: 0px; y: 0px; zoom: 1;"&gt;&lt;div style="animation: auto ease 0s 1 normal none running none; appearance: none; background-attachment: scroll; background-clip: border-box; background-image: none; background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto; border: 0px rgb(31, 31, 31); clear: none; clip: auto; columns: auto; contain: none; container: none; content: normal; cursor: auto; cx: 0px; cy: 0px; d: none; direction: ltr; fill: rgb(0, 0, 0); filter: none; flex-direction: row; flex: 0 1 auto; float: none; gap: normal; hyphens: manual; inset: auto; interactivity: auto; isolation: auto; line-height: 1.15; margin-bottom: 0px; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; margin: 0px; marker: none; mask-clip: border-box; mask-composite: add; mask-image: none; mask-mode: match-source; mask-origin: border-box; mask-repeat: repeat; mask-size: auto; mask: none; offset: normal; opacity: 1; order: 0; outline: rgb(31, 31, 31) none 3px; overlay: none; padding: 0px 0px 0px 4px; page: auto; perspective: none; position: static; quotes: auto; r: 0px; resize: none; rotate: none; rule: 3px rgb(31, 31, 31); rx: auto; ry: auto; scale: none; speak: normal; stroke: none; transform: none; transition: all; translate: none; visibility: visible; x: 0px; y: 0px; zoom: 1;"&gt;คลิกปุ่ม &lt;b data-index-in-node="9" data-path-to-node="6,4,0" style="animation: auto ease 0s 1 normal none running none; appearance: none; background-attachment: scroll; background-clip: border-box; background-image: none; background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto; border: 0px rgb(31, 31, 31); clear: none; clip: auto; columns: auto; contain: none; container: none; content: normal; cursor: auto; cx: 0px; cy: 0px; d: none; direction: ltr; display: inline; fill: rgb(0, 0, 0); filter: none; flex-direction: row; flex: 0 1 auto; float: none; gap: normal; hyphens: manual; inset: auto; interactivity: auto; isolation: auto; line-height: 1.15; margin-bottom: 0px; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; margin: 0px; marker: none; mask-clip: border-box; mask-composite: add; mask-image: none; mask-mode: match-source; mask-origin: border-box; mask-repeat: repeat; mask-size: auto; mask: none; offset: normal; opacity: 1; order: 0; outline: rgb(31, 31, 31) none 3px; overlay: none; padding: 0px; page: auto; perspective: none; position: static; quotes: auto; r: 0px; resize: none; rotate: none; rule: 3px rgb(31, 31, 31); rx: auto; ry: auto; scale: none; speak: normal; stroke: none; transform: none; transition: all; translate: none; visibility: visible; x: 0px; y: 0px; zoom: 1;"&gt;Start&lt;/b&gt; เพื่อเริ่มการทำงานของเซิร์ฟเวอร์ฐานข้อมูล&lt;/div&gt;&lt;br /&gt;&lt;/li&gt;&lt;/ol&gt;&lt;h3 data-path-to-node="8" style="animation: auto ease 0s 1 normal none running none; appearance: none; background-attachment: scroll; background-clip: border-box; background-image: none; background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto; border: 0px rgb(31, 31, 31); clear: none; clip: auto; color: #1f1f1f; columns: auto; contain: none; container: none; content: normal; cursor: auto; cx: 0px; cy: 0px; d: none; direction: ltr; fill: rgb(0, 0, 0); filter: none; flex-direction: row; flex: 0 1 auto; float: none; font-family: &amp;quot;Google Sans&amp;quot;, sans-serif; gap: normal; hyphens: manual; inset: auto; interactivity: auto; isolation: auto; line-height: 1.15; margin-bottom: 0px; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; margin: 0px; marker: none; mask-clip: border-box; mask-composite: add; mask-image: none; mask-mode: match-source; mask-origin: border-box; mask-repeat: repeat; mask-size: auto; mask: none; offset: normal; opacity: 1; order: 0; outline: rgb(31, 31, 31) none 3px; overlay: none; padding: 0px; page: auto; perspective: none; position: static; quotes: auto; r: 0px; resize: none; rotate: none; rule: 3px rgb(31, 31, 31); rx: auto; ry: auto; scale: none; speak: normal; stroke: none; transform: none; transition: all; translate: none; visibility: visible; x: 0px; y: 0px; zoom: 1;"&gt;เครื่องมือจัดการฐานข้อมูลแบบ GUI (แนะนำเพิ่มเติม)&lt;/h3&gt;&lt;div style="animation: auto ease 0s 1 normal none running none; appearance: none; background-attachment: scroll; background-clip: border-box; background-image: none; background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto; border: 0px rgb(31, 31, 31); clear: none; clip: auto; color: #1f1f1f; columns: auto; contain: none; container: none; content: normal; cursor: auto; cx: 0px; cy: 0px; d: none; direction: ltr; fill: rgb(0, 0, 0); filter: none; flex-direction: row; flex: 0 1 auto; float: none; font-family: &amp;quot;Google Sans Text&amp;quot;, sans-serif; gap: normal; hyphens: manual; inset: auto; interactivity: auto; isolation: auto; line-height: 1.15; margin-bottom: 0px; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; margin: 0px; marker: none; mask-clip: border-box; mask-composite: add; mask-image: none; mask-mode: match-source; mask-origin: border-box; mask-repeat: repeat; mask-size: auto; mask: none; offset: normal; opacity: 1; order: 0; outline: rgb(31, 31, 31) none 3px; overlay: none; padding: 0px; page: auto; perspective: none; position: static; quotes: auto; r: 0px; resize: none; rotate: none; rule: 3px rgb(31, 31, 31); rx: auto; ry: auto; scale: none; speak: normal; stroke: none; transform: none; transition: all; translate: none; visibility: visible; x: 0px; y: 0px; zoom: 1;"&gt;เมื่อติดตั้งเสร็จแล้ว หากต้องการจัดการตารางและเขียน Query ผ่านหน้าจอ UI ที่ใช้งานง่าย สามารถติดตั้งโปรแกรมเสริมตัวใดตัวหนึ่งต่อไปนี้:&lt;/div&gt;&lt;br /&gt;&lt;ul data-path-to-node="10" style="animation: auto ease 0s 1 normal none running none; appearance: none; background-attachment: scroll; background-clip: border-box; background-image: none; background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto; border: 0px rgb(31, 31, 31); clear: none; clip: auto; color: #1f1f1f; columns: auto; contain: none; container: none; content: normal; cursor: auto; cx: 0px; cy: 0px; d: none; direction: ltr; fill: rgb(0, 0, 0); filter: none; flex-direction: row; flex: 0 1 auto; float: none; font-family: &amp;quot;Google Sans Text&amp;quot;, sans-serif; gap: normal; hyphens: manual; inset: auto; interactivity: auto; isolation: auto; line-height: 1.15; margin-bottom: 0px; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; margin: 0px; marker: none; mask-clip: border-box; mask-composite: add; mask-image: none; mask-mode: match-source; mask-origin: border-box; mask-repeat: repeat; mask-size: auto; mask: none; offset: normal; opacity: 1; order: 0; outline: rgb(31, 31, 31) none 3px; overlay: none; padding-inline-start: 32px; padding: 0px 0px 0px 3.36px; page: auto; perspective: none; position: static; quotes: auto; r: 0px; resize: none; rotate: none; rule: 3px rgb(31, 31, 31); rx: auto; ry: auto; scale: none; speak: normal; stroke: none; transform: none; transition: all; translate: none; visibility: visible; x: 0px; y: 0px; zoom: 1;"&gt;&lt;li style="animation: auto ease 0s 1 normal none running none; appearance: none; background-attachment: scroll; background-clip: border-box; background-image: none; background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto; border: 0px rgb(31, 31, 31); clear: none; clip: auto; columns: auto; contain: none; container: none; content: normal; cursor: auto; cx: 0px; cy: 0px; d: none; direction: ltr; fill: rgb(0, 0, 0); filter: none; flex-direction: row; flex: 0 1 auto; float: none; gap: normal; hyphens: manual; inset: 0px; interactivity: auto; isolation: auto; line-height: 1.15; margin-bottom: 0px; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; margin: 0px; marker: none; mask-clip: border-box; mask-composite: add; mask-image: none; mask-mode: match-source; mask-origin: border-box; mask-repeat: repeat; mask-size: auto; mask: none; offset: normal; opacity: 1; order: 0; outline: rgb(31, 31, 31) none 3px; overlay: none; padding: 0px 0px 0px 36px; page: auto; perspective: none; position: relative; quotes: auto; r: 0px; resize: none; rotate: none; rule: 3px rgb(31, 31, 31); rx: auto; ry: auto; scale: none; speak: normal; stroke: none; transform: none; transition: all; translate: none; visibility: visible; x: 0px; y: 0px; zoom: 1;"&gt;&lt;div style="animation: auto ease 0s 1 normal none running none; appearance: none; background-attachment: scroll; background-clip: border-box; background-image: none; background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto; border: 0px rgb(31, 31, 31); clear: none; clip: auto; columns: auto; contain: none; container: none; content: normal; cursor: auto; cx: 0px; cy: 0px; d: none; direction: ltr; fill: rgb(0, 0, 0); filter: none; flex-direction: row; flex: 0 1 auto; float: none; gap: normal; hyphens: manual; inset: auto; interactivity: auto; isolation: auto; line-height: 1.15; margin-bottom: 0px; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; margin: 0px; marker: none; mask-clip: border-box; mask-composite: add; mask-image: none; mask-mode: match-source; mask-origin: border-box; mask-repeat: repeat; mask-size: auto; mask: none; offset: normal; opacity: 1; order: 0; outline: rgb(31, 31, 31) none 3px; overlay: none; padding: 0px 0px 0px 4px; page: auto; perspective: none; position: static; quotes: auto; r: 0px; resize: none; rotate: none; rule: 3px rgb(31, 31, 31); rx: auto; ry: auto; scale: none; speak: normal; stroke: none; transform: none; transition: all; translate: none; visibility: visible; x: 0px; y: 0px; zoom: 1;"&gt;&lt;b data-index-in-node="0" data-path-to-node="10,0,0" style="animation: auto ease 0s 1 normal none running none; appearance: none; background-attachment: scroll; background-clip: border-box; background-image: none; background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto; border: 0px rgb(31, 31, 31); clear: none; clip: auto; columns: auto; contain: none; container: none; content: normal; cursor: auto; cx: 0px; cy: 0px; d: none; direction: ltr; display: inline; fill: rgb(0, 0, 0); filter: none; flex-direction: row; flex: 0 1 auto; float: none; gap: normal; hyphens: manual; inset: auto; interactivity: auto; isolation: auto; line-height: 1.15; margin-bottom: 0px; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; margin: 0px; marker: none; mask-clip: border-box; mask-composite: add; mask-image: none; mask-mode: match-source; mask-origin: border-box; mask-repeat: repeat; mask-size: auto; mask: none; offset: normal; opacity: 1; order: 0; outline: rgb(31, 31, 31) none 3px; overlay: none; padding: 0px; page: auto; perspective: none; position: static; quotes: auto; r: 0px; resize: none; rotate: none; rule: 3px rgb(31, 31, 31); rx: auto; ry: auto; scale: none; speak: normal; stroke: none; transform: none; transition: all; translate: none; visibility: visible; x: 0px; y: 0px; zoom: 1;"&gt;pgAdmin 4&lt;/b&gt;: เครื่องมือมาตรฐานทางการของ PostgreSQL รองรับฟีเจอร์ครบถ้วน&lt;/div&gt;&lt;br /&gt;&lt;/li&gt;&lt;li style="animation: auto ease 0s 1 normal none running none; appearance: none; background-attachment: scroll; background-clip: border-box; background-image: none; background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto; border: 0px rgb(31, 31, 31); clear: none; clip: auto; columns: auto; contain: none; container: none; content: normal; cursor: auto; cx: 0px; cy: 0px; d: none; direction: ltr; fill: rgb(0, 0, 0); filter: none; flex-direction: row; flex: 0 1 auto; float: none; gap: normal; hyphens: manual; inset: 0px; interactivity: auto; isolation: auto; line-height: 1.15; margin-bottom: 0px; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; margin: 0px; marker: none; mask-clip: border-box; mask-composite: add; mask-image: none; mask-mode: match-source; mask-origin: border-box; mask-repeat: repeat; mask-size: auto; mask: none; offset: normal; opacity: 1; order: 0; outline: rgb(31, 31, 31) none 3px; overlay: none; padding: 0px 0px 0px 36px; page: auto; perspective: none; position: relative; quotes: auto; r: 0px; resize: none; rotate: none; rule: 3px rgb(31, 31, 31); rx: auto; ry: auto; scale: none; speak: normal; stroke: none; transform: none; transition: all; translate: none; visibility: visible; x: 0px; y: 0px; zoom: 1;"&gt;&lt;div style="animation: auto ease 0s 1 normal none running none; appearance: none; background-attachment: scroll; background-clip: border-box; background-image: none; background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto; border: 0px rgb(31, 31, 31); clear: none; clip: auto; columns: auto; contain: none; container: none; content: normal; cursor: auto; cx: 0px; cy: 0px; d: none; direction: ltr; fill: rgb(0, 0, 0); filter: none; flex-direction: row; flex: 0 1 auto; float: none; gap: normal; hyphens: manual; inset: auto; interactivity: auto; isolation: auto; line-height: 1.15; margin-bottom: 0px; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; margin: 0px; marker: none; mask-clip: border-box; mask-composite: add; mask-image: none; mask-mode: match-source; mask-origin: border-box; mask-repeat: repeat; mask-size: auto; mask: none; offset: normal; opacity: 1; order: 0; outline: rgb(31, 31, 31) none 3px; overlay: none; padding: 0px 0px 0px 4px; page: auto; perspective: none; position: static; quotes: auto; r: 0px; resize: none; rotate: none; rule: 3px rgb(31, 31, 31); rx: auto; ry: auto; scale: none; speak: normal; stroke: none; transform: none; transition: all; translate: none; visibility: visible; x: 0px; y: 0px; zoom: 1;"&gt;&lt;b data-index-in-node="0" data-path-to-node="10,1,0" style="animation: auto ease 0s 1 normal none running none; appearance: none; background-attachment: scroll; background-clip: border-box; background-image: none; background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto; border: 0px rgb(31, 31, 31); clear: none; clip: auto; columns: auto; contain: none; container: none; content: normal; cursor: auto; cx: 0px; cy: 0px; d: none; direction: ltr; display: inline; fill: rgb(0, 0, 0); filter: none; flex-direction: row; flex: 0 1 auto; float: none; gap: normal; hyphens: manual; inset: auto; interactivity: auto; isolation: auto; line-height: 1.15; margin-bottom: 0px; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; margin: 0px; marker: none; mask-clip: border-box; mask-composite: add; mask-image: none; mask-mode: match-source; mask-origin: border-box; mask-repeat: repeat; mask-size: auto; mask: none; offset: normal; opacity: 1; order: 0; outline: rgb(31, 31, 31) none 3px; overlay: none; padding: 0px; page: auto; perspective: none; position: static; quotes: auto; r: 0px; resize: none; rotate: none; rule: 3px rgb(31, 31, 31); rx: auto; ry: auto; scale: none; speak: normal; stroke: none; transform: none; transition: all; translate: none; visibility: visible; x: 0px; y: 0px; zoom: 1;"&gt;DBeaver&lt;/b&gt;: โปรแกรมจัดการฐานข้อมูลยอดนิยมที่รองรับหลายระบบ&lt;/div&gt;&lt;br /&gt;&lt;/li&gt;&lt;li style="animation: auto ease 0s 1 normal none running none; appearance: none; background-attachment: scroll; background-clip: border-box; background-image: none; background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto; border: 0px rgb(31, 31, 31); clear: none; clip: auto; columns: auto; contain: none; container: none; content: normal; cursor: auto; cx: 0px; cy: 0px; d: none; direction: ltr; fill: rgb(0, 0, 0); filter: none; flex-direction: row; flex: 0 1 auto; float: none; gap: normal; hyphens: manual; inset: 0px; interactivity: auto; isolation: auto; line-height: 1.15; margin-bottom: 0px; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; margin: 0px; marker: none; mask-clip: border-box; mask-composite: add; mask-image: none; mask-mode: match-source; mask-origin: border-box; mask-repeat: repeat; mask-size: auto; mask: none; offset: normal; opacity: 1; order: 0; outline: rgb(31, 31, 31) none 3px; overlay: none; padding: 0px 0px 0px 36px; page: auto; perspective: none; position: relative; quotes: auto; r: 0px; resize: none; rotate: none; rule: 3px rgb(31, 31, 31); rx: auto; ry: auto; scale: none; speak: normal; stroke: none; transform: none; transition: all; translate: none; visibility: visible; x: 0px; y: 0px; zoom: 1;"&gt;&lt;div style="animation: auto ease 0s 1 normal none running none; appearance: none; background-attachment: scroll; background-clip: border-box; background-image: none; background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto; border: 0px rgb(31, 31, 31); clear: none; clip: auto; columns: auto; contain: none; container: none; content: normal; cursor: auto; cx: 0px; cy: 0px; d: none; direction: ltr; fill: rgb(0, 0, 0); filter: none; flex-direction: row; flex: 0 1 auto; float: none; gap: normal; hyphens: manual; inset: auto; interactivity: auto; isolation: auto; line-height: 1.15; margin-bottom: 0px; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; margin: 0px; marker: none; mask-clip: border-box; mask-composite: add; mask-image: none; mask-mode: match-source; mask-origin: border-box; mask-repeat: repeat; mask-size: auto; mask: none; offset: normal; opacity: 1; order: 0; outline: rgb(31, 31, 31) none 3px; overlay: none; padding: 0px 0px 0px 4px; page: auto; perspective: none; position: static; quotes: auto; r: 0px; resize: none; rotate: none; rule: 3px rgb(31, 31, 31); rx: auto; ry: auto; scale: none; speak: normal; stroke: none; transform: none; transition: all; translate: none; visibility: visible; x: 0px; y: 0px; zoom: 1;"&gt;&lt;b data-index-in-node="0" data-path-to-node="10,2,0" style="animation: auto ease 0s 1 normal none running none; appearance: none; background-attachment: scroll; background-clip: border-box; background-image: none; background-origin: padding-box; background-position: 0% 0%; background-repeat: repeat; background-size: auto; border: 0px rgb(31, 31, 31); clear: none; clip: auto; columns: auto; contain: none; container: none; content: normal; cursor: auto; cx: 0px; cy: 0px; d: none; direction: ltr; display: inline; fill: rgb(0, 0, 0); filter: none; flex-direction: row; flex: 0 1 auto; float: none; gap: normal; hyphens: manual; inset: auto; interactivity: auto; isolation: auto; line-height: 1.15; margin-bottom: 0px; margin-left: 0px !important; margin-right: 0px !important; margin-top: 0px !important; margin: 0px; marker: none; mask-clip: border-box; mask-composite: add; mask-image: none; mask-mode: match-source; mask-origin: border-box; mask-repeat: repeat; mask-size: auto; mask: none; offset: normal; opacity: 1; order: 0; outline: rgb(31, 31, 31) none 3px; overlay: none; padding: 0px; page: auto; perspective: none; position: static; quotes: auto; r: 0px; resize: none; rotate: none; rule: 3px rgb(31, 31, 31); rx: auto; ry: auto; scale: none; speak: normal; stroke: none; transform: none; transition: all; translate: none; visibility: visible; x: 0px; y: 0px; zoom: 1;"&gt;TablePlus&lt;/b&gt;: โปรแกรม UI น้ำหนักเบา ออกแบบมาสำหรับ macOS โดยเฉพาะ&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div id="gtx-trans" style="left: -17px; position: absolute; top: 87.5938px;"&gt;&lt;div class="gtx-trans-icon"&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;Are u sure?&lt;/div&gt;</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>Recreate docker container กรณีแก้ไขไฟล์ ระบบ หรือไฟล์ env เพื่อโหลดใช้ค่าใหม่แบบ clean</title><link>http://juuier.blogspot.com/2026/10/recreate-docker-container-env-clean.html</link><author>noreply@blogger.com (juuier)</author><pubDate>Mon, 19 Oct 2026 10:03:23 +0700</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-34115975.post-8331769283255411404</guid><description>&lt;p&gt;&lt;b&gt;Ref: by Gemini&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;สั่ง build image ใหม่พร้อมรัน container แบบ daemon&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;span style="color: red;"&gt;docker compose up -d --build&lt;/span&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;/p&gt;&lt;p data-path-to-node="3"&gt;&lt;/p&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;&lt;i data-index-in-node="0" data-path-to-node="3"&gt;(หากใช้ Docker Compose เวอร์ชันเก่า ให้ใช้คำสั่ง &lt;code data-index-in-node="49" data-path-to-node="3"&gt;docker-compose up -d --build&lt;/code&gt;)&lt;/i&gt;&lt;/li&gt;&lt;li&gt;หรือ สั่ง recreate container ใหม่โดย ไม่ต้องสั่ง ​docker compose down ก่อนก็ได้&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;div&gt;&lt;blockquote&gt;&lt;span style="color: red;"&gt;docker compose up -d --force-recreate&lt;/span&gt;&lt;/blockquote&gt;&lt;h3 data-path-to-node="5"&gt;รายละเอียดของ Flag ในคำสั่ง:&lt;/h3&gt;&lt;p&gt;&lt;/p&gt;&lt;h3 data-path-to-node="8"&gt;&lt;/h3&gt;&lt;p&gt;&lt;/p&gt;&lt;ul data-path-to-node="6"&gt;&lt;li&gt;&lt;p data-path-to-node="6,0,0"&gt;&lt;b data-index-in-node="0" data-path-to-node="6,0,0"&gt;&lt;code data-index-in-node="0" data-path-to-node="6,0,0"&gt;--build&lt;/code&gt;&lt;/b&gt;: บังคับให้ Docker ทำการ rebuild image ใหม่ เพื่อให้โค้ด Node.js ล่าสุดถูกอัปเดตเข้าไปใน container&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p data-path-to-node="6,1,0"&gt;&lt;b data-index-in-node="0" data-path-to-node="6,1,0"&gt;&lt;code data-index-in-node="0" data-path-to-node="6,1,0"&gt;-d&lt;/code&gt;&lt;/b&gt; (Detached mode): รันคอนเทนเนอร์ไว้เบื้องหลัง (Background) เพื่อให้เทอร์มินัลพร้อมใช้งานต่อ&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div&gt;&lt;h3 data-path-to-node="8"&gt;ขั้นตอนการรีสตาร์ทแบบหมดจด (Clean Recreate)&lt;/h3&gt;&lt;p data-path-to-node="9"&gt;หากต้องการหยุดคอนเทนเนอร์เดิมก่อน เพื่อให้แน่ใจว่าค่า Environment Variables ใน &lt;code data-index-in-node="79" data-path-to-node="9"&gt;.env&lt;/code&gt; ถูกโหลดใหม่และคอนเทนเนอร์เดิมถูกลบออก ให้ทำตามลำดับนี้:&lt;/p&gt;&lt;ol class="md-has-block-component" data-path-to-node="10" start="1"&gt;&lt;li&gt;&lt;p data-path-to-node="10,0,0"&gt;&lt;b data-index-in-node="0" data-path-to-node="10,0,0"&gt;หยุดและลบคอนเทนเนอร์เดิม:&lt;/b&gt;&lt;/p&gt;&lt;response-element class="no-md" ng-version="0.0.0-PLACEHOLDER"&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;code-block _nghost-ng-c2555737016="" class="ng-tns-c2555737016-22 enable-luminous-code-block ng-star-inserted"&gt;&lt;!----&gt;&lt;!----&gt;&lt;div _ngcontent-ng-c2555737016="" class="code-block ng-tns-c2555737016-22 ng-animate-disabled ng-trigger ng-trigger-codeBlockRevealAnimation" data-hveid="0" data-ved="0CAAQhtANahgKEwisg42kgcWXAxUAAAAAHQAAAAAQugE" decode-data-ved="1" jslog="223238;track:impression,attention;BardVeMetadataKey:W1sicl9mZWZkNDZiM2QzNTNkMzhiIiwiY19jNmY1NDNhZjg1MDY1M2Y0IixudWxsLCJyY185ZmRkZWViMjNiZWVjYjczIixudWxsLG51bGwsInRoIixudWxsLDEsbnVsbCxudWxsLDEsMF1d"&gt;&lt;!----&gt;&lt;div _ngcontent-ng-c2555737016="" class="formatted-code-block-internal-container ng-tns-c2555737016-22"&gt;&lt;div _ngcontent-ng-c2555737016="" class="animated-opacity ng-tns-c2555737016-22"&gt;&lt;div _ngcontent-ng-c2555737016="" class="code-block-decoration header-formatted gds-emphasized-body-m ng-tns-c2555737016-22 ng-star-inserted"&gt;&lt;span style="color: red;"&gt;docker compose down&lt;/span&gt;&lt;/div&gt;&lt;!----&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;/code-block&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;/response-element&gt;&lt;/li&gt;&lt;li&gt;&lt;p data-path-to-node="10,1,0"&gt;&lt;b data-index-in-node="0" data-path-to-node="10,1,0"&gt;สั่ง Build และเริ่มทำงานใหม่:&lt;/b&gt;&lt;/p&gt;&lt;response-element class="no-md" ng-version="0.0.0-PLACEHOLDER"&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;code-block _nghost-ng-c2555737016="" class="ng-tns-c2555737016-23 enable-luminous-code-block ng-star-inserted"&gt;&lt;!----&gt;&lt;!----&gt;&lt;div _ngcontent-ng-c2555737016="" class="code-block ng-tns-c2555737016-23 ng-animate-disabled ng-trigger ng-trigger-codeBlockRevealAnimation" data-hveid="0" data-ved="0CAAQhtANahgKEwisg42kgcWXAxUAAAAAHQAAAAAQuwE" decode-data-ved="1" jslog="223238;track:impression,attention;BardVeMetadataKey:W1sicl9mZWZkNDZiM2QzNTNkMzhiIiwiY19jNmY1NDNhZjg1MDY1M2Y0IixudWxsLCJyY185ZmRkZWViMjNiZWVjYjczIixudWxsLG51bGwsInRoIixudWxsLDEsbnVsbCxudWxsLDEsMF1d"&gt;&lt;!----&gt;&lt;div _ngcontent-ng-c2555737016="" class="formatted-code-block-internal-container ng-tns-c2555737016-23"&gt;&lt;div _ngcontent-ng-c2555737016="" class="animated-opacity ng-tns-c2555737016-23"&gt;&lt;div _ngcontent-ng-c2555737016="" class="code-block-decoration header-formatted gds-emphasized-body-m ng-tns-c2555737016-23 ng-star-inserted"&gt;&lt;span style="color: red;"&gt;docker compose up -d --build&lt;/span&gt;&lt;/div&gt;&lt;!----&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;/code-block&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;/response-element&gt;&lt;/li&gt;&lt;li&gt;&lt;p data-path-to-node="10,2,0"&gt;&lt;b data-index-in-node="0" data-path-to-node="10,2,0"&gt;ตรวจสอบ Log การทำงาน:&lt;/b&gt;&lt;/p&gt;&lt;response-element class="no-md" ng-version="0.0.0-PLACEHOLDER"&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;code-block _nghost-ng-c2555737016="" class="ng-tns-c2555737016-24 enable-luminous-code-block ng-star-inserted"&gt;&lt;!----&gt;&lt;!----&gt;&lt;div _ngcontent-ng-c2555737016="" class="code-block ng-tns-c2555737016-24 ng-animate-disabled ng-trigger ng-trigger-codeBlockRevealAnimation" data-hveid="0" data-ved="0CAAQhtANahgKEwisg42kgcWXAxUAAAAAHQAAAAAQvAE" decode-data-ved="1" jslog="223238;track:impression,attention;BardVeMetadataKey:W1sicl9mZWZkNDZiM2QzNTNkMzhiIiwiY19jNmY1NDNhZjg1MDY1M2Y0IixudWxsLCJyY185ZmRkZWViMjNiZWVjYjczIixudWxsLG51bGwsInRoIixudWxsLDEsbnVsbCxudWxsLDEsMF1d"&gt;&lt;!----&gt;&lt;div _ngcontent-ng-c2555737016="" class="formatted-code-block-internal-container ng-tns-c2555737016-24"&gt;&lt;div _ngcontent-ng-c2555737016="" class="animated-opacity ng-tns-c2555737016-24"&gt;&lt;div _ngcontent-ng-c2555737016="" class="code-block-decoration header-formatted gds-emphasized-body-m ng-tns-c2555737016-24 ng-star-inserted"&gt;&lt;span style="color: red;"&gt;docker compose logs -f &lt;/span&gt;&lt;span style="color: #2b00fe;"&gt;&amp;lt;ชื่อ_service&amp;gt;&lt;/span&gt;&lt;/div&gt;&lt;pre _ngcontent-ng-c2555737016="" class="ng-tns-c2555737016-24"&gt;&lt;code _ngcontent-ng-c2555737016="" class="code-container formatted ng-tns-c2555737016-24" data-test-id="code-content" role="text"&gt;&lt;span class="hljs-comment"&gt;# หรือดู log ทั้งหมด&lt;/span&gt;
&lt;span style="color: red;"&gt;docker compose logs -f&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;!----&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;/code-block&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;!----&gt;&lt;/response-element&gt;&lt;/li&gt;&lt;/ol&gt;&lt;blockquote data-path-to-node="11"&gt;&lt;p data-path-to-node="11,0"&gt;&lt;b data-index-in-node="0" data-path-to-node="11,0"&gt;ข้อสังเกตเพิ่มเติม:&lt;/b&gt;&lt;/p&gt;&lt;ul data-path-to-node="11,1"&gt;&lt;li&gt;&lt;p data-path-to-node="11,1,0,0"&gt;หากไฟล์ &lt;code data-index-in-node="8" data-path-to-node="11,1,0,0"&gt;.env&lt;/code&gt; ถูกเรียกผ่าน &lt;code data-index-in-node="26" data-path-to-node="11,1,0,0"&gt;env_file:&lt;/code&gt; ใน &lt;code data-index-in-node="39" data-path-to-node="11,1,0,0"&gt;docker-compose.yml&lt;/code&gt; ค่าใหม่จะถูกโหลดเข้าคอนเทนเนอร์ทันทีที่คอนเทนเนอร์ถูก recreate ขึ้นมาใหม่&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p data-path-to-node="11,1,1,0"&gt;หากมีการใช้ Volume mount สำหรับโฟลเดอร์โค้ด (เช่น &lt;code data-index-in-node="50" data-path-to-node="11,1,1,0"&gt;./:/app&lt;/code&gt;) การเปลี่ยนแปลงโค้ดจะเห็นผลทันที แต่หากไม่ได้ทำ Volume ไว้ จำเป็นต้องใส่ &lt;code data-index-in-node="131" data-path-to-node="11,1,1,0"&gt;--build&lt;/code&gt; เสมอ&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;b&gt;เพิ่มเติม&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;เข้าไปใน container&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;span style="color: red;"&gt;docker exec -it &lt;/span&gt;&lt;span style="color: #2b00fe;"&gt;&amp;lt;container_name | id&amp;gt;&lt;/span&gt;&lt;span style="color: red;"&gt; &amp;lt;sh | bash&amp;gt;&lt;/span&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;ตัวอย่าง&amp;nbsp; node:22-alpine ด้วยคำสั่ง&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: red;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;span style="color: red;"&gt;docker exec -it &lt;/span&gt;&lt;span style="color: #2b00fe;"&gt;mynode&lt;/span&gt;&lt;span style="color: red;"&gt; sh&lt;/span&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;Are u sure?&lt;/div&gt;</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>create and grant privileges user PostgreSQL</title><link>http://juuier.blogspot.com/2026/10/create-and-grant-privileges-user.html</link><author>noreply@blogger.com (juuier)</author><pubDate>Fri, 16 Oct 2026 08:38:55 +0700</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-34115975.post-5271369847875319625</guid><description>&lt;p&gt;&lt;b&gt;วิธีที่ 1: ให้สิทธิ์ Superuser (จัดการได้ทั้งหมด เบ็ดเสร็จ)&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;&lt;span style="color: red;"&gt;sudo -u postgres psql&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #800180;"&gt;CREATE ROLE myuser WITH LOGIN SUPERUSER PASSWORD 'your_secure_password';&lt;/span&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;วิธีที่ 2: ให้สิทธิ์จัดการ Database แต่ไม่ใช่ Superuser (แนะนำด้านความปลอดภัย)&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;สร้าง User ที่มีสิทธิ์สร้าง Database (CREATEDB) และสร้าง Role อื่นได้ (CREATEROLE):&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;span style="color: #2b00fe;"&gt;CREATE USER myuser WITH CREATEDB CREATEROLE PASSWORD 'your_secure_password';&lt;/span&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;หากต้องการให้ User นี้เข้าไปจัดการข้อมูลและ Table ภายใน Database ที่มีอยู่แล้ว ต้องให้สิทธิ์เพิ่มเติมในแต่ละ Database นั้นๆ:&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;-- สิทธิ์เชื่อมต่อ Database&lt;/p&gt;&lt;p&gt;&lt;span style="color: #2b00fe;"&gt;GRANT CONNECT ON DATABASE target_db TO myuser;&lt;/span&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;-- เชื่อมต่อเข้าไปใน target_db แล้วรันสิทธิ์ใน schema&lt;/p&gt;&lt;p&gt;&lt;span style="color: #2b00fe;"&gt;\c target_db&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #2b00fe;"&gt;GRANT ALL ON SCHEMA public TO myuser;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #2b00fe;"&gt;GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA public TO myuser;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #2b00fe;"&gt;GRANT ALL PRIVILEGES ON ALL SEQUENCES IN SCHEMA public TO myuser;&lt;/span&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;กรณีต้องการเปลี่ยนสิทธิ์ User เดิมที่มีอยู่แล้ว&lt;/li&gt;&lt;li&gt;หากมี User เดิมอยู่แล้วและต้องการอัปเกรดให้เป็น Superuser ทันที:&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;span style="color: #800180;"&gt;ALTER USER myuser WITH SUPERUSER;&lt;/span&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;b&gt;Related:&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;https://juuier.blogspot.com/2026/10/shell-postgresql-dump-and-restore.html&lt;/li&gt;&lt;li&gt;https://juuier.blogspot.com/2026/10/postgresql-ubuntu-2204.html&lt;/li&gt;&lt;li&gt;https://juuier.blogspot.com/2026/10/postgresql-remote.html&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;Ref:&amp;nbsp;&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;Gemini&amp;nbsp;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;Are u sure?&lt;/div&gt;</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>ติดตั้ง PostgreSQL Ubuntu 22.04</title><link>http://juuier.blogspot.com/2026/10/postgresql-ubuntu-2204.html</link><author>noreply@blogger.com (juuier)</author><pubDate>Thu, 15 Oct 2026 16:22:08 +0700</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-34115975.post-8382018557404811020</guid><description>&lt;p&gt;&lt;/p&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;อัปเดตดัชนีแพ็กเกจระบบ&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;span style="color: red;"&gt;sudo apt update&lt;/span&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;ติดตั้ง PostgreSQL และชุดเครื่องมือเสริม (Contrib)&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;span style="color: red;"&gt;sudo apt install -y postgresql postgresql-contrib&lt;/span&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;ตรวจสอบสถานะการทำงานของ Service&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;span style="color: red;"&gt;sudo systemctl status postgresql&lt;/span&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;เข้าระบบด้วย user postgres&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;&lt;span style="color: red;"&gt;sudo -i -u postgres&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: red;"&gt;psql&lt;/span&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;/p&gt;&lt;p data-path-to-node="11,1,0"&gt;&lt;b data-index-in-node="0" data-path-to-node="11,1,0"&gt;คำสั่งพื้นฐานใน &lt;code data-index-in-node="16" data-path-to-node="11,1,0"&gt;psql&lt;/code&gt;:&lt;/b&gt;&lt;/p&gt;&lt;ul data-path-to-node="11,1,1"&gt;&lt;li&gt;&lt;p data-path-to-node="11,1,1,0,0"&gt;ตรวจสอบเวอร์ชันและสถานะการเชื่อมต่อ: &lt;code data-index-in-node="37" data-path-to-node="11,1,1,0,0"&gt;\conninfo&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p data-path-to-node="11,1,1,1,0"&gt;แสดงรายชื่อฐานข้อมูล: &lt;code data-index-in-node="22" data-path-to-node="11,1,1,1,0"&gt;\l&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p data-path-to-node="11,1,1,2,0"&gt;ออกจากโปรแกรม: &lt;code data-index-in-node="15" data-path-to-node="11,1,1,2,0"&gt;\q&lt;/code&gt; แล้วพิมพ์ &lt;code data-index-in-node="28" data-path-to-node="11,1,1,2,0"&gt;exit&lt;/code&gt; เพื่อกลับสู่ user ปกติ&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div&gt;&lt;b&gt;ตั้งรหัสผ่านให้ผู้ใช้ &lt;code data-index-in-node="22" data-path-to-node="11,2,0"&gt;postgres&lt;/code&gt; (เผื่อใช้งานจากภายนอก):&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;blockquote&gt;&lt;span style="color: #2b00fe;"&gt;ALTER USER postgres PASSWORD 'your_secure_password';&lt;/span&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;Related&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;https://juuier.blogspot.com/2026/10/shell-postgresql-dump-and-restore.html&lt;/li&gt;&lt;li&gt;https://juuier.blogspot.com/2026/10/postgresql-remote.html&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div id="gtx-trans" style="left: 38px; position: absolute; top: 542px;"&gt;&lt;div class="gtx-trans-icon"&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;Are u sure?&lt;/div&gt;</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>PostgreSQL เปิดให้ remote ได้จากเครื่อง อื่นๆ</title><link>http://juuier.blogspot.com/2026/10/postgresql-remote.html</link><author>noreply@blogger.com (juuier)</author><pubDate>Wed, 14 Oct 2026 14:49:42 +0700</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-34115975.post-7368525337342023763</guid><description>&lt;p&gt;&lt;b&gt;ขั้นตอนที่ 1: แก้ไขไฟล์ &lt;code data-index-in-node="24" data-path-to-node="3"&gt;postgresql.conf&lt;/code&gt; เพื่อเปิดรับ IP&amp;nbsp;&lt;/b&gt;&lt;/p&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;หาไฟล์คอนฟิก&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;span style="color: red;"&gt;$ sudo -u postgres psql -c "SHOW config_file;"&lt;/span&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;แก้ไขคอนฟิกตามพาธที่ได้&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;span style="color: red;"&gt;$ sudo nano /etc/postgresql/*/main/postgresql.conf&lt;/span&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;ค้นหาบรรทัด listen_address = 'localhost' ค่าเริ่มต้นจะถูก comment อยู่&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;span style="color: #2b00fe;"&gt;listen_addresses = '*'&lt;/span&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;บันทึกและปิดไฟล์&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;ขั้นตอนที่ 2: แก้ไขไฟล์ &lt;code data-index-in-node="24" data-path-to-node="6"&gt;pg_hba.conf&lt;/code&gt; เพื่ออนุญาตสิทธิ์เข้าใช้งาน&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;ค้นหาที่อยู่ไฟล์ &lt;code data-index-in-node="17" data-path-to-node="7,0,0"&gt;pg_hba.conf&lt;/code&gt;:&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;span style="color: red;"&gt;$ sudo -u postgres psql -c "SHOW hba_file;"&lt;/span&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;เปิดแก้ไข&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;span style="color: red;"&gt;$ sudo nano /etc/postgresql/*/main/pg_hba.conf&lt;/span&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;เลื่อนลงไปล่างสุดของไฟล์ แล้วเพิ่มบรรทัดนี้ลงไป&lt;/li&gt;&lt;li&gt;กรณีให้เข้าได้เฉพาะวง LAN เดียวกัน (ปลอดภัยกว่า):&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;span style="color: #2b00fe;"&gt;host&amp;nbsp; &amp;nbsp; all&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;all&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;192.168.100.0/24&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; scram-sha-256&lt;/span&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;หรือกรณีต้องการเปิดให้ทุก IP เข้ามาได้:&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;span style="color: #2b00fe;"&gt;host&amp;nbsp; &amp;nbsp; all&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;all&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.0.0.0/0&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;scram-sha-256&lt;/span&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;(หมายเหตุ: หากเวอร์ชันเดิมใช้รหัสผ่านแบบ &lt;code data-index-in-node="41" data-path-to-node="7,2,1,1,2"&gt;md5&lt;/code&gt; สามารถเปลี่ยนคำว่า &lt;code data-index-in-node="64" data-path-to-node="7,2,1,1,2"&gt;scram-sha-256&lt;/code&gt; ด้านหลังเป็น &lt;code data-index-in-node="91" data-path-to-node="7,2,1,1,2"&gt;md5&lt;/code&gt; ได้)&lt;/li&gt;&lt;li&gt;บันทึกและปิดไฟล์&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;ขั้นตอนที่ 3: รีสตาร์ต PostgreSQL Service&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;&lt;span style="color: red;"&gt;$ sudo systemctl restart postgresql&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: red;"&gt;$ sudo systemctl status postgresql&lt;/span&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;ทดสอบ remote connect&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;span style="color: red;"&gt;$ psql -h remote_host_ip -U user1 -d mydb&lt;/span&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;เพิ่มเติม&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;พอร์ตเค้าคือ 5432&amp;nbsp; TCP ตรวจสอบ Firewall ด้วย&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;div id="gtx-trans" style="left: 10px; position: absolute; top: 894px;"&gt;&lt;div class="gtx-trans-icon"&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;Are u sure?&lt;/div&gt;</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>เข้า shell PostgreSQL dump and restore</title><link>http://juuier.blogspot.com/2026/10/shell-postgresql-dump-and-restore.html</link><author>noreply@blogger.com (juuier)</author><pubDate>Wed, 14 Oct 2026 14:43:38 +0700</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-34115975.post-3893049115139040525</guid><description>&lt;p&gt;เข้า shell PostgreSQL&lt;/p&gt;&lt;p&gt;Linux&lt;/p&gt;&lt;p&gt;&lt;span style="color: red;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;span style="color: red;"&gt;$ sudo -u postgres psql&lt;/span&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;Windows&lt;/p&gt;&lt;p&gt;&lt;span style="color: red;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;span style="color: red;"&gt;&amp;gt; psql -U postgres&lt;/span&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;เราจะได้ shell แบบนี้&lt;/p&gt;&lt;p&gt;&lt;span style="color: #800180;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;span style="color: #800180;"&gt;postgres=#&amp;nbsp;&lt;/span&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;ออกจาก shell&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #800180;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;span style="color: #800180;"&gt;postgres=# \q&lt;/span&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;-- สร้าง user&lt;/p&gt;&lt;p&gt;&lt;span style="color: #800180;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;span style="color: #800180;"&gt;CREATE USER user1 WITH PASSWORD 'your_password';&lt;/span&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;-- สร้างฐานข้อมูลใหม่ชื่อ mydb&lt;/p&gt;&lt;p&gt;&lt;span style="color: #800180;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;span style="color: #800180;"&gt;CREATE DATABASE mydb OWNER user1;&lt;/span&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;-- หรือหากมีฐานข้อมูลเดิมอยู่แล้ว ให้มอบสิทธิ์เข้าถึงทั้งหมด&lt;/p&gt;&lt;p&gt;&lt;span style="color: #800180;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;span style="color: #800180;"&gt;GRANT ALL PRIVILEGES ON DATABASE mydb TO user1;&lt;/span&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;เข้าระบบระบุ db&lt;/p&gt;&lt;p&gt;&lt;span style="color: red;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;span style="color: red;"&gt;$ psql -U user1 -h localhost -d mydb&lt;/span&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;Export data&amp;nbsp; จาก remote Server 1 (สั่ง dump ที่ client server 2&amp;nbsp; เลย)&lt;/p&gt;&lt;p&gt;&lt;span style="color: red;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;&lt;span style="color: red;"&gt;$ pg_dump -U &amp;lt;postgres_user&amp;gt; -h localhost -d &amp;lt;dbname&amp;gt; -F c -b -v -f &amp;lt;backup_file&amp;gt;.dump&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: red;"&gt;$ pg_dump -U user1 -h remote_host -d mydb -F c -b -b -f mydb.dump&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;span style="color: red;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;Restore to server 2&lt;/p&gt;&lt;p&gt;# สร้างฐานข้อมูลเปล่า&lt;/p&gt;&lt;p&gt;&lt;span style="color: red;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;span style="color: red;"&gt;$ createdb -U &amp;lt;postgres_user&amp;gt; -h localhost &amp;lt;dbname&amp;gt;&lt;/span&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;# ทำการ restore ข้อมูล&lt;/p&gt;&lt;p&gt;&lt;span style="color: red;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;&lt;span style="color: red;"&gt;$ pg_restore -U &amp;lt;postgres_user&amp;gt; -h localhost -d &amp;lt;dbname&amp;gt; -v &amp;lt;backup_file&amp;gt;.dump&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: red;"&gt;$ pg_restore -U user1 -h localhost -d mydb -v mydb.dump&lt;/span&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;h2&gt;อธิบายแต่ละ Option dump&lt;/h2&gt;&lt;div&gt;&lt;table&gt;&lt;tbody&gt;&lt;tr&gt;&lt;th&gt;&lt;p&gt;Option&lt;/p&gt;&lt;/th&gt;&lt;th&gt;&lt;p&gt;ชื่อเต็ม&lt;/p&gt;&lt;/th&gt;&lt;th&gt;&lt;p&gt;ทำหน้าที่&lt;/p&gt;&lt;/th&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;p&gt;&lt;code&gt;pg_dump&lt;/code&gt;&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;PostgreSQL Dump&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;คำสั่งสำหรับ Backup ฐานข้อมูล PostgreSQL&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;p&gt;&lt;code&gt;-U&lt;/code&gt;&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;&lt;code&gt;--username&lt;/code&gt;&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;ระบุ Username ที่ใช้เชื่อมต่อ PostgreSQL&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;p&gt;&lt;code&gt;&amp;lt;postgres_user&amp;gt;&lt;/code&gt;&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;—&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;ชื่อ User เช่น &lt;code&gt;postgres&lt;/code&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;p&gt;&lt;code&gt;-h&lt;/code&gt;&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;&lt;code&gt;--host&lt;/code&gt;&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;ระบุ Hostname หรือ IP Address ของ PostgreSQL Server&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;p&gt;&lt;code&gt;localhost&lt;/code&gt;&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;—&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;เชื่อมต่อ PostgreSQL ที่เครื่องตัวเอง&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;p&gt;&lt;code&gt;-d&lt;/code&gt;&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;&lt;code&gt;--dbname&lt;/code&gt;&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;ระบุชื่อ Database ที่ต้องการ Backup&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;p&gt;&lt;code&gt;&amp;lt;dbname&amp;gt;&lt;/code&gt;&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;—&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;ชื่อ Database เช่น &lt;code&gt;mydb&lt;/code&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;p&gt;&lt;code&gt;-F c&lt;/code&gt;&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;&lt;code&gt;--format=custom&lt;/code&gt;&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;กำหนดรูปแบบไฟล์ Backup เป็น Custom Format ซึ่งใช้กับ &lt;code&gt;pg_restore&lt;/code&gt; ได้&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;p&gt;&lt;code&gt;-b&lt;/code&gt;&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;&lt;code&gt;--blobs&lt;/code&gt;&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;รวม Large Objects (BLOBs) ไว้ใน Backup&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;p&gt;&lt;code&gt;-v&lt;/code&gt;&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;&lt;code&gt;--verbose&lt;/code&gt;&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;แสดงรายละเอียดขั้นตอนการ Backup ระหว่างทำงาน&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;p&gt;&lt;code&gt;-f&lt;/code&gt;&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;&lt;code&gt;--file&lt;/code&gt;&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;ระบุชื่อและตำแหน่งไฟล์ Backup ที่ต้องการบันทึก&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;p&gt;&lt;code&gt;&amp;lt;backup_file&amp;gt;.dump&lt;/code&gt;&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;—&lt;/p&gt;&lt;/td&gt;&lt;td&gt;&lt;p&gt;ชื่อไฟล์ Backup เช่น &lt;code&gt;mydb_backup.dump&lt;/code&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;p&gt;Ref: by Gemini&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;span style="color: red;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;Are u sure?&lt;/div&gt;</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item><item><title>ssh แล้ว WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED server ใหม่ใช้ ip เดิม</title><link>http://juuier.blogspot.com/2026/09/ssh-warning-remote-host-identification.html</link><author>noreply@blogger.com (juuier)</author><pubDate>Tue, 29 Sep 2026 13:16:36 +0700</pubDate><guid isPermaLink="false">tag:blogger.com,1999:blog-34115975.post-4592243238872880897</guid><description>&lt;p&gt;&lt;span style="color: red;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;&lt;span style="color: red;"&gt;&amp;nbsp;$ ssh user@remote_host&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #800180;"&gt;@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #800180;"&gt;@&amp;nbsp; &amp;nbsp; WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!&amp;nbsp; &amp;nbsp; &amp;nbsp;@&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #800180;"&gt;@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #800180;"&gt;IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #800180;"&gt;Someone could be eavesdropping on you right now (man-in-the-middle attack)!&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #800180;"&gt;It is also possible that a host key has just been changed.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #800180;"&gt;The fingerprint for the ED25519 key sent by the remote host is&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #800180;"&gt;SHA256:xxxxxxxxx7RxS+v+7D/cS380Gp2k42xxxxxxxxxxxxx&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #800180;"&gt;Please contact your system administrator.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #800180;"&gt;Add correct host key in /home/user/.ssh/known_hosts to get rid of this message.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #800180;"&gt;Offending ECDSA key in /home/user/.ssh/known_hosts:14&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #800180;"&gt;&amp;nbsp; remove with:&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #800180;"&gt;&amp;nbsp; ssh-keygen -f '/home/user/.ssh/known_hosts' -R 'remote_host'&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #800180;"&gt;Host key for remote_host has changed and you have requested strict checking.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: #800180;"&gt;Host key verification failed.&lt;/span&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;span style="color: #800180;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;ปัญหาคือ server ใหม่ แต่ใช้ ip เดิม key เปลี่ยน สร้าง key ใหม่&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;Solved&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;span style="color: red;"&gt;$ ssh-keygen -R &amp;lt;remote_host&amp;gt;&lt;/span&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;Add&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;ทำการตั้งค่า private key authen&amp;nbsp; ใหม่ กรณี client มี public key อยู่แล้ว และ มี username เดียวกันระหว่าง client กับ remote host นะคับใช้คำสั่งเดียวเลย&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;blockquote&gt;&lt;span style="color: red;"&gt;$ ssh-copy-id username@remote_host&lt;/span&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;b&gt;Related&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;ul style="text-align: left;"&gt;&lt;li&gt;https://juuier.blogspot.com/2021/06/set-remote-ssh-by-public-key.html&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;div id="gtx-trans" style="left: -115px; position: absolute; top: 917px;"&gt;&lt;div class="gtx-trans-icon"&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;Are u sure?&lt;/div&gt;</description><thr:total xmlns:thr="http://purl.org/syndication/thread/1.0">0</thr:total></item></channel></rss>