{"id":47233,"date":"2026-06-27T17:57:53","date_gmt":"2026-06-27T08:57:53","guid":{"rendered":"https:\/\/raybeam.jp\/docs\/initial-server-setup\/"},"modified":"2026-06-28T08:15:35","modified_gmt":"2026-06-27T23:15:35","slug":"%e0%b8%81%e0%b8%b2%e0%b8%a3%e0%b8%95%e0%b8%b1%e0%b9%89%e0%b8%87%e0%b8%84%e0%b9%88%e0%b8%b2%e0%b9%80%e0%b8%8b%e0%b8%b4%e0%b8%a3%e0%b9%8c%e0%b8%9f%e0%b9%80%e0%b8%a7%e0%b8%ad%e0%b8%a3%e0%b9%8c%e0%b9%80","status":"publish","type":"docs","link":"https:\/\/raybeam.jp\/th\/docs\/initial-server-setup\/","title":{"rendered":"\u0e01\u0e32\u0e23\u0e15\u0e31\u0e49\u0e07\u0e04\u0e48\u0e32\u0e40\u0e0b\u0e34\u0e23\u0e4c\u0e1f\u0e40\u0e27\u0e2d\u0e23\u0e4c\u0e40\u0e1a\u0e37\u0e49\u0e2d\u0e07\u0e15\u0e49\u0e19"},"content":{"rendered":"<h2 id=\"ubuntu-server-lts-setup-guide-2004--2404\" class=\"wp-block-heading\">\u0e04\u0e39\u0e48\u0e21\u0e37\u0e2d\u0e01\u0e32\u0e23\u0e15\u0e34\u0e14\u0e15\u0e31\u0e49\u0e07\u0e40\u0e0b\u0e34\u0e23\u0e4c\u0e1f\u0e40\u0e27\u0e2d\u0e23\u0e4c Ubuntu LTS (20.04 \/ 24.04)<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u0e04\u0e39\u0e48\u0e21\u0e37\u0e2d\u0e19\u0e35\u0e49\u0e2a\u0e21\u0e21\u0e15\u0e34\u0e27\u0e48\u0e32\u0e04\u0e38\u0e13\u0e01\u0e33\u0e25\u0e31\u0e07\u0e15\u0e31\u0e49\u0e07\u0e04\u0e48\u0e32\u0e23\u0e30\u0e1a\u0e1a\u0e43\u0e2b\u0e21\u0e48 <strong>Ubuntu Server LTS<\/strong> \u0e2d\u0e34\u0e19\u0e2a\u0e41\u0e15\u0e19\u0e0b\u0e4c (20.04 \u0e2b\u0e23\u0e37\u0e2d 24.04) \u0e1a\u0e19 VPS \u0e2b\u0e23\u0e37\u0e2d\u0e1c\u0e39\u0e49\u0e43\u0e2b\u0e49\u0e1a\u0e23\u0e34\u0e01\u0e32\u0e23\u0e04\u0e25\u0e32\u0e27\u0e14\u0e4c.<\/p>\n\n\n\n<h2 id=\"1-create-a-nonroot-sudo-user\" class=\"wp-block-heading\">1. \u0e2a\u0e23\u0e49\u0e32\u0e07\u0e1c\u0e39\u0e49\u0e43\u0e0a\u0e49 sudo \u0e17\u0e35\u0e48\u0e44\u0e21\u0e48\u0e43\u0e0a\u0e48\u0e1c\u0e39\u0e49\u0e43\u0e0a\u0e49 root<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code><code>adduser yourUserName\nusermod -aG sudo yourUserName<\/code><\/code><\/pre>\n\n\n\n<h2 id=\"2-get-ssh-key-access-to-the-new-user\" class=\"wp-block-heading\">2. \u0e23\u0e31\u0e1a\u0e2a\u0e34\u0e17\u0e18\u0e34\u0e4c\u0e40\u0e02\u0e49\u0e32\u0e16\u0e36\u0e07\u0e14\u0e49\u0e27\u0e22\u0e01\u0e38\u0e0d\u0e41\u0e08 SSH \u0e2a\u0e33\u0e2b\u0e23\u0e31\u0e1a\u0e1c\u0e39\u0e49\u0e43\u0e0a\u0e49\u0e43\u0e2b\u0e21\u0e48<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u0e2b\u0e32\u0e01\u0e1c\u0e39\u0e49\u0e43\u0e2b\u0e49\u0e1a\u0e23\u0e34\u0e01\u0e32\u0e23\u0e42\u0e2e\u0e2a\u0e15\u0e4c\u0e02\u0e2d\u0e07\u0e04\u0e38\u0e13\u0e44\u0e21\u0e48\u0e2a\u0e19\u0e31\u0e1a\u0e2a\u0e19\u0e38\u0e19\u0e01\u0e32\u0e23\u0e43\u0e2a\u0e48\u0e01\u0e38\u0e0d\u0e41\u0e08 SSH \u0e2a\u0e32\u0e18\u0e32\u0e23\u0e13\u0e30\u0e02\u0e13\u0e30\u0e2a\u0e23\u0e49\u0e32\u0e07\u0e1a\u0e31\u0e0d\u0e0a\u0e35 \u0e43\u0e2b\u0e49\u0e04\u0e31\u0e14\u0e25\u0e2d\u0e01\u0e01\u0e38\u0e0d\u0e41\u0e08\u0e02\u0e2d\u0e07\u0e04\u0e38\u0e13\u0e08\u0e32\u0e01\u0e40\u0e04\u0e23\u0e37\u0e48\u0e2d\u0e07\u0e17\u0e49\u0e2d\u0e07\u0e16\u0e34\u0e48\u0e19\u0e44\u0e1b\u0e22\u0e31\u0e07\u0e42\u0e1f\u0e25\u0e40\u0e14\u0e2d\u0e23\u0e4c\u0e0a\u0e31\u0e48\u0e27\u0e04\u0e23\u0e32\u0e27 <code>\u0e23\u0e32\u0e01<\/code> \u0e40\u0e02\u0e49\u0e32\u0e2a\u0e39\u0e48\u0e23\u0e30\u0e1a\u0e1a:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><code>ssh-copy-id <span \n                data-original-string='wkYI0+eP6FNzwKkMDMAa\/g==a665O1u8veBycqAMKq7IddnzYMCXklNv8qvVDKYmkHOoDQ='\n                class='apbct-email-encoder'\n                title='This contact has been encoded by Anti-Spam by CleanTalk. Click to decode. To finish the decoding make sure that JavaScript is enabled in your browser.'>ro<span class=\"apbct-blur\">**<\/span>@<span class=\"apbct-blur\">**********<\/span>ne.ip<\/span>.000<\/code><\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u0e40\u0e21\u0e37\u0e48\u0e2d\u0e40\u0e02\u0e49\u0e32\u0e2a\u0e39\u0e48\u0e23\u0e30\u0e1a\u0e1a\u0e14\u0e49\u0e27\u0e22\u0e1a\u0e31\u0e0d\u0e0a\u0e35 <code>\u0e23\u0e32\u0e01<\/code>, \u0e2a\u0e48\u0e07\u0e01\u0e38\u0e0d\u0e41\u0e08 SSH \u0e44\u0e1b\u0e22\u0e31\u0e07\u0e1c\u0e39\u0e49\u0e43\u0e0a\u0e49\u0e43\u0e2b\u0e21\u0e48:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><code>rsync --archive --chown=yourUserName:yourUserName \/root\/.ssh \/home\/yourUserName<\/code><\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u0e2d\u0e2d\u0e01\u0e08\u0e32\u0e01\u0e23\u0e30\u0e1a\u0e1a\u0e41\u0e25\u0e30\u0e40\u0e02\u0e49\u0e32\u0e2a\u0e39\u0e48\u0e23\u0e30\u0e1a\u0e1a\u0e43\u0e2b\u0e21\u0e48\u0e14\u0e49\u0e27\u0e22\u0e1a\u0e31\u0e0d\u0e0a\u0e35\u0e1c\u0e39\u0e49\u0e43\u0e0a\u0e49\u0e43\u0e2b\u0e21\u0e48:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><code>\u0e2d\u0e2d\u0e01\nssh <span \n                data-original-string='xwjoCzVgvt2yXms\/VxiU2A==a66gIpdMcnxLgR3UlDe9Ti4IWHGlJbtTFb0zfNXM6KOWk0='\n                class='apbct-email-encoder'\n                title='This contact has been encoded by Anti-Spam by CleanTalk. Click to decode. To finish the decoding make sure that JavaScript is enabled in your browser.'>\u0e40\u0e2e\u0e49<span class=\"apbct-blur\">**********<\/span>@<span class=\"apbct-blur\">**********<\/span>ne.ip<\/span>.000<\/code><\/code><\/pre>\n\n\n\n<h2 id=\"3-harden-ssh\" class=\"wp-block-heading\">3. \u0e40\u0e2a\u0e23\u0e34\u0e21\u0e04\u0e27\u0e32\u0e21\u0e1b\u0e25\u0e2d\u0e14\u0e20\u0e31\u0e22\u0e02\u0e2d\u0e07 SSH<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u0e2b\u0e25\u0e31\u0e07\u0e08\u0e32\u0e01\u0e22\u0e37\u0e19\u0e22\u0e31\u0e19\u0e27\u0e48\u0e32\u0e04\u0e38\u0e13\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e40\u0e02\u0e49\u0e32\u0e2a\u0e39\u0e48\u0e23\u0e30\u0e1a\u0e1a\u0e44\u0e14\u0e49\u0e43\u0e19\u0e10\u0e32\u0e19\u0e30 <code>yourUserName<\/code>, \u0e1b\u0e34\u0e14\u0e01\u0e32\u0e23\u0e40\u0e02\u0e49\u0e32\u0e16\u0e36\u0e07 SSH \u0e14\u0e49\u0e27\u0e22\u0e2a\u0e34\u0e17\u0e18\u0e34\u0e4c root:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u0e41\u0e01\u0e49\u0e44\u0e02\u0e44\u0e1f\u0e25\u0e4c\u0e01\u0e33\u0e2b\u0e19\u0e14\u0e04\u0e48\u0e32\u0e02\u0e2d\u0e07 SSH daemon: <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><code>sudo nano \/etc\/ssh\/sshd_config<\/code><\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u0e15\u0e23\u0e27\u0e08\u0e2a\u0e2d\u0e1a\u0e43\u0e2b\u0e49\u0e41\u0e19\u0e48\u0e43\u0e08\u0e27\u0e48\u0e32\u0e02\u0e49\u0e2d\u0e04\u0e27\u0e32\u0e21\u0e43\u0e19\u0e1a\u0e23\u0e23\u0e17\u0e31\u0e14\u0e19\u0e31\u0e49\u0e19\u0e2d\u0e48\u0e32\u0e19\u0e44\u0e14\u0e49\u0e14\u0e31\u0e07\u0e19\u0e35\u0e49: <code>PermitRootLogin no<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u0e40\u0e23\u0e34\u0e48\u0e21\u0e15\u0e49\u0e19 SSH \u0e43\u0e2b\u0e21\u0e48: <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><code>sudo service ssh restart<\/code><\/code><\/pre>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\"><strong>\u0e2a\u0e33\u0e04\u0e31\u0e0d:<\/strong> \u0e43\u0e2b\u0e49\u0e44\u0e27\u0e49\u0e40\u0e1b\u0e34\u0e14\u0e40\u0e0b\u0e2a\u0e0a\u0e31\u0e19 SSH \u0e17\u0e35\u0e48\u0e01\u0e33\u0e25\u0e31\u0e07\u0e17\u0e33\u0e07\u0e32\u0e19\u0e2d\u0e22\u0e39\u0e48\u0e2b\u0e19\u0e36\u0e48\u0e07\u0e40\u0e0b\u0e2a\u0e0a\u0e31\u0e19 \u0e08\u0e19\u0e01\u0e27\u0e48\u0e32\u0e04\u0e38\u0e13\u0e08\u0e30\u0e22\u0e37\u0e19\u0e22\u0e31\u0e19\u0e44\u0e14\u0e49\u0e27\u0e48\u0e32\u0e01\u0e32\u0e23\u0e40\u0e02\u0e49\u0e32\u0e2a\u0e39\u0e48\u0e23\u0e30\u0e1a\u0e1a\u0e42\u0e14\u0e22\u0e44\u0e21\u0e48\u0e15\u0e49\u0e2d\u0e07\u0e43\u0e0a\u0e49\u0e23\u0e2b\u0e31\u0e2a\u0e1c\u0e48\u0e32\u0e19\u0e17\u0e33\u0e07\u0e32\u0e19\u0e44\u0e14\u0e49\u0e2a\u0e33\u0e2b\u0e23\u0e31\u0e1a\u0e1c\u0e39\u0e49\u0e43\u0e0a\u0e49\u0e43\u0e2b\u0e21\u0e48\u0e02\u0e2d\u0e07\u0e04\u0e38\u0e13 \u0e41\u0e25\u0e49\u0e27\u0e25\u0e2d\u0e07\u0e40\u0e0a\u0e37\u0e48\u0e2d\u0e21\u0e15\u0e48\u0e2d\u0e43\u0e2b\u0e21\u0e48\u0e08\u0e32\u0e01\u0e40\u0e17\u0e2d\u0e23\u0e4c\u0e21\u0e34\u0e19\u0e31\u0e25\u0e2d\u0e37\u0e48\u0e19\u0e01\u0e48\u0e2d\u0e19\u0e17\u0e35\u0e48\u0e08\u0e30\u0e1b\u0e34\u0e14\u0e40\u0e0b\u0e2a\u0e0a\u0e31\u0e19 root.<\/p>\n<\/blockquote>\n\n\n\n<h2 id=\"4-set-the-timezone\" class=\"wp-block-heading\">4. \u0e15\u0e31\u0e49\u0e07\u0e40\u0e02\u0e15\u0e40\u0e27\u0e25\u0e32<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code><code>sudo timedatectl set-timezone Continent\/City\n<em># \u0e15\u0e31\u0e27\u0e2d\u0e22\u0e48\u0e32\u0e07: sudo timedatectl set-timezone Asia\/Tokyo<\/em><\/code><\/code><\/pre>\n\n\n\n<h2 id=\"5-configure-the-fqdn\" class=\"wp-block-heading\">5. \u0e15\u0e31\u0e49\u0e07\u0e04\u0e48\u0e32 FQDN<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u0e41\u0e01\u0e49\u0e44\u0e02 <code>\/etc\/hosts<\/code> \u0e41\u0e25\u0e30\u0e41\u0e17\u0e19\u0e17\u0e35\u0e48\u0e1a\u0e23\u0e23\u0e17\u0e31\u0e14\u0e04\u0e48\u0e32\u0e40\u0e23\u0e34\u0e48\u0e21\u0e15\u0e49\u0e19\u0e14\u0e49\u0e27\u0e22\u0e17\u0e35\u0e48\u0e2d\u0e22\u0e39\u0e48 IP \u0e2a\u0e32\u0e18\u0e32\u0e23\u0e13\u0e30\u0e02\u0e2d\u0e07\u0e04\u0e38\u0e13:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><code>127.0.1.1 machinename.example.com\nyour.machine.ip.000    machinename.example.com machinename<\/code><\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u0e08\u0e32\u0e01\u0e19\u0e31\u0e49\u0e19\u0e01\u0e33\u0e2b\u0e19\u0e14\u0e0a\u0e37\u0e48\u0e2d\u0e42\u0e2e\u0e2a\u0e15\u0e4c\u0e02\u0e2d\u0e07\u0e23\u0e30\u0e1a\u0e1a:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><code>sudo hostnamectl set-hostname machinename.example.com<\/code><\/code><\/pre>\n\n\n\n<h2 id=\"6-install-wordops\" class=\"wp-block-heading\">6. \u0e15\u0e34\u0e14\u0e15\u0e31\u0e49\u0e07 WordOps<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code><code>wget -qO wo wops.cc &amp;&amp; sudo bash wo\nsource \/etc\/bash_completion.d\/wo_auto.rc\necho -e \"alias wo='sudo -E wo'\" &gt;&gt; $HOME\/.bashrc<\/code><\/code><\/pre>\n\n\n\n<h2 id=\"7-install-and-configure-ufw-firewall\" class=\"wp-block-heading\">7. \u0e15\u0e34\u0e14\u0e15\u0e31\u0e49\u0e07\u0e41\u0e25\u0e30\u0e15\u0e31\u0e49\u0e07\u0e04\u0e48\u0e32 UFW (\u0e44\u0e1f\u0e23\u0e4c\u0e27\u0e2d\u0e25\u0e25\u0e4c)<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code><code>wo stack install --ufw\nwo secure --ssh<\/code><\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e1b\u0e34\u0e14\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19 UFW \u0e43\u0e2b\u0e49\u0e41\u0e19\u0e48\u0e43\u0e08\u0e27\u0e48\u0e32\u0e04\u0e38\u0e13\u0e44\u0e14\u0e49\u0e2d\u0e19\u0e38\u0e0d\u0e32\u0e15 SSH \u0e41\u0e25\u0e49\u0e27 (\u0e0b\u0e36\u0e48\u0e07\u0e44\u0e14\u0e49\u0e23\u0e31\u0e1a\u0e01\u0e32\u0e23\u0e08\u0e31\u0e14\u0e01\u0e32\u0e23\u0e44\u0e27\u0e49\u0e41\u0e25\u0e49\u0e27\u0e42\u0e14\u0e22 <code>wo secure --ssh<\/code>), \u0e41\u0e25\u0e49\u0e27\u0e40\u0e1b\u0e34\u0e14\u0e44\u0e1f\u0e23\u0e4c\u0e27\u0e2d\u0e25\u0e25\u0e4c:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><code>sudo ufw allow 22\/tcp\nsudo ufw allow 80\/tcp\nsudo ufw allow 443\/tcp\nsudo ufw enable<\/code><\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u0e2a\u0e33\u0e2b\u0e23\u0e31\u0e1a\u0e01\u0e32\u0e23\u0e40\u0e1e\u0e34\u0e48\u0e21 IP \u0e40\u0e02\u0e49\u0e32\u0e2a\u0e39\u0e48\u0e23\u0e32\u0e22\u0e0a\u0e37\u0e48\u0e2d\u0e2d\u0e19\u0e38\u0e0d\u0e32\u0e15\u0e17\u0e35\u0e48\u0e23\u0e2d\u0e07\u0e23\u0e31\u0e1a Cloudflare \u0e42\u0e1b\u0e23\u0e14\u0e17\u0e33\u0e15\u0e32\u0e21\u0e1a\u0e17\u0e04\u0e27\u0e32\u0e21\u0e19\u0e35\u0e49:<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-wp-embed is-provider-raybeam wp-block-embed-raybeam\"><div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"wp-embedded-content\" data-secret=\"22Us8SmqGN\"><a href=\"https:\/\/raybeam.jp\/th\/%e0%b9%80%e0%b8%ad%e0%b8%81%e0%b8%aa%e0%b8%b2%e0%b8%a3-2\/%e0%b8%81%e0%b8%b2%e0%b8%a3%e0%b8%95%e0%b8%b1%e0%b9%89%e0%b8%87%e0%b8%84%e0%b9%88%e0%b8%b2%e0%b9%80%e0%b8%8b%e0%b8%b4%e0%b8%a3%e0%b9%8c%e0%b8%9f%e0%b9%80%e0%b8%a7%e0%b8%ad%e0%b8%a3%e0%b9%8c%e0%b9%80\/%e0%b8%a7%e0%b8%b4%e0%b8%98%e0%b8%b5%e0%b8%ad%e0%b8%b1%e0%b8%9b%e0%b9%80%e0%b8%94%e0%b8%95%e0%b8%81%e0%b8%8e-ufw-%e0%b8%ad%e0%b8%b1%e0%b8%95%e0%b9%82%e0%b8%99%e0%b8%a1%e0%b8%b1%e0%b8%95%e0%b8%b4\/\">\u0e27\u0e34\u0e18\u0e35\u0e2d\u0e31\u0e1b\u0e40\u0e14\u0e15\u0e01\u0e0e UFW \u0e2d\u0e31\u0e15\u0e42\u0e19\u0e21\u0e31\u0e15\u0e34\u0e14\u0e49\u0e27\u0e22 IP \u0e41\u0e1a\u0e1a Cloudflare<\/a><\/blockquote><iframe class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; visibility: hidden;\" title=\"\u201c\u0e27\u0e34\u0e18\u0e35\u0e2d\u0e31\u0e1b\u0e40\u0e14\u0e15\u0e01\u0e0e UFW \u0e41\u0e1a\u0e1a\u0e2d\u0e31\u0e15\u0e42\u0e19\u0e21\u0e31\u0e15\u0e34\u0e14\u0e49\u0e27\u0e22\u0e17\u0e35\u0e48\u0e2d\u0e22\u0e39\u0e48 IP Cloudflare\u201d \u2014 Raybeam\" src=\"https:\/\/raybeam.jp\/docs\/initial-server-setup\/how-to-auto-update-ufw-rules-with-cloudflare-ips\/embed\/#?secret=wG57cXpQh0#?secret=22Us8SmqGN\" data-secret=\"22Us8SmqGN\" width=\"500\" height=\"282\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n<\/div><\/figure>\n\n\n\n<h2 id=\"8-cloudflare-api-variables-for-automation-scripts\" class=\"wp-block-heading\">8. \u0e15\u0e31\u0e27\u0e41\u0e1b\u0e23 API Cloudflare (\u0e2a\u0e33\u0e2b\u0e23\u0e31\u0e1a\u0e2a\u0e04\u0e23\u0e34\u0e1b\u0e15\u0e4c\u0e2d\u0e31\u0e15\u0e42\u0e19\u0e21\u0e31\u0e15\u0e34)<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code><code>export CF_Key=\"yourCloudflareAPIKey\"\nexport CF_Email=\"<span \n                data-original-string='bAX967x1N90RVKQHiiMw3A==a66ZzzLOIIskVxQyPMjCMPVtIYhxTpOrel6ONls6r2Fzrk='\n                class='apbct-email-encoder'\n                title='This contact has been encoded by Anti-Spam by CleanTalk. Click to decode. To finish the decoding make sure that JavaScript is enabled in your browser.'>\u0e40\u0e2e\u0e49<span class=\"apbct-blur\">*****************<\/span>@<span class=\"apbct-blur\">*****<\/span>le.com<\/span>\"<\/code><\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u0e40\u0e01\u0e47\u0e1a\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e40\u0e2b\u0e25\u0e48\u0e32\u0e19\u0e35\u0e49\u0e44\u0e27\u0e49\u0e43\u0e19 <code>~\/.bashrc<\/code> \u0e2b\u0e23\u0e37\u0e2d\u0e44\u0e1f\u0e25\u0e4c env \u0e40\u0e09\u0e1e\u0e32\u0e30 \u0e2b\u0e32\u0e01\u0e23\u0e30\u0e1a\u0e1a\u0e2d\u0e31\u0e15\u0e42\u0e19\u0e21\u0e31\u0e15\u0e34\u0e02\u0e2d\u0e07\u0e04\u0e38\u0e13\u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23\u0e44\u0e1f\u0e25\u0e4c\u0e14\u0e31\u0e07\u0e01\u0e25\u0e48\u0e32\u0e27\u0e17\u0e38\u0e01\u0e04\u0e23\u0e31\u0e49\u0e07\u0e17\u0e35\u0e48\u0e40\u0e02\u0e49\u0e32\u0e2a\u0e39\u0e48\u0e23\u0e30\u0e1a\u0e1a.<\/p>\n\n\n\n<h2 id=\"9-enable-wordpress-cron-via-system-cron\" class=\"wp-block-heading\">9. \u0e40\u0e1b\u0e34\u0e14\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19 cron \u0e02\u0e2d\u0e07 WordPress \u0e1c\u0e48\u0e32\u0e19 cron \u0e02\u0e2d\u0e07\u0e23\u0e30\u0e1a\u0e1a<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u0e41\u0e01\u0e49\u0e44\u0e02 crontab \u0e2b\u0e25\u0e31\u0e01:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><code>sudo crontab -e<\/code><\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u0e40\u0e1e\u0e34\u0e48\u0e21:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><code>*\/2 * * * * find \/var\/www -type f -name \"wp-cron.php\" -path \"*\/htdocs\/wp-cron.php\" -execdir sudo -u www-data php {} \\; &gt; \/dev\/null 2&gt;&amp;1<\/code><\/code><\/pre>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\">\u0e15\u0e23\u0e27\u0e08\u0e2a\u0e2d\u0e1a\u0e43\u0e2b\u0e49\u0e41\u0e19\u0e48\u0e43\u0e08\u0e27\u0e48\u0e32 <code>cron<\/code> \u0e1a\u0e23\u0e34\u0e01\u0e32\u0e23\u0e01\u0e33\u0e25\u0e31\u0e07\u0e17\u0e33\u0e07\u0e32\u0e19:<br><code>sudo systemctl enable --now cron<\/code><\/p>\n<\/blockquote>\n\n\n\n<h2 id=\"10-miscellaneous-tools\" class=\"wp-block-heading\">10. \u0e40\u0e04\u0e23\u0e37\u0e48\u0e2d\u0e07\u0e21\u0e37\u0e2d\u0e2d\u0e37\u0e48\u0e19 \u0e46<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code><code><em># \u0e40\u0e04\u0e23\u0e37\u0e48\u0e2d\u0e07\u0e21\u0e37\u0e2d\u0e1a\u0e23\u0e23\u0e17\u0e31\u0e14\u0e04\u0e33\u0e2a\u0e31\u0e48\u0e07 S3<\/em>\nsudo apt update\nsudo apt install -y s3cmd\n<em># \u0e15\u0e31\u0e49\u0e07\u0e04\u0e48\u0e32\u0e14\u0e49\u0e27\u0e22: s3cmd --configure<\/em>\n\n<em># \u0e40\u0e04\u0e23\u0e37\u0e48\u0e2d\u0e07\u0e27\u0e34\u0e40\u0e04\u0e23\u0e32\u0e30\u0e2b\u0e4c\u0e01\u0e32\u0e23\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19\u0e1e\u0e37\u0e49\u0e19\u0e17\u0e35\u0e48\u0e14\u0e34\u0e2a\u0e01\u0e4c<\/em>\nsudo apt install -y ncdu<\/code><\/code><\/pre>\n\n\n\n<h2 id=\"11-redis-object-cache\" class=\"wp-block-heading\">11. Redis (\u0e41\u0e04\u0e0a\u0e27\u0e31\u0e15\u0e16\u0e38)<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u0e40\u0e1b\u0e34\u0e14\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19\u0e41\u0e25\u0e30\u0e40\u0e23\u0e34\u0e48\u0e21 Redis \u0e43\u0e19\u0e10\u0e32\u0e19\u0e30\u0e1a\u0e23\u0e34\u0e01\u0e32\u0e23\u0e23\u0e30\u0e1a\u0e1a:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><code>sudo systemctl enable redis-server.service\nsudo systemctl start redis-server.service<\/code><\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u0e15\u0e23\u0e27\u0e08\u0e2a\u0e2d\u0e1a\u0e01\u0e31\u0e1a:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><code>sudo systemctl status redis-server.service<\/code><\/code><\/pre>\n\n\n\n<h2 id=\"12-wordops-modules-we-skip-by-default\" class=\"wp-block-heading\">12. \u0e42\u0e21\u0e14\u0e39\u0e25 WordOps \u0e17\u0e35\u0e48\u0e16\u0e39\u0e01\u0e02\u0e49\u0e32\u0e21\u0e44\u0e1b\u0e42\u0e14\u0e22\u0e04\u0e48\u0e32\u0e40\u0e23\u0e34\u0e48\u0e21\u0e15\u0e49\u0e19<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Nginx Ultimate Bad Bot Blocker<\/strong>: \u0e40\u0e1b\u0e47\u0e19\u0e40\u0e04\u0e23\u0e37\u0e48\u0e2d\u0e07\u0e21\u0e37\u0e2d\u0e17\u0e35\u0e48\u0e14\u0e35\u0e21\u0e32\u0e01 \u0e41\u0e15\u0e48\u0e44\u0e21\u0e48\u0e08\u0e33\u0e40\u0e1b\u0e47\u0e19\u0e2b\u0e32\u0e01\u0e04\u0e38\u0e13\u0e01\u0e33\u0e25\u0e31\u0e07\u0e43\u0e0a\u0e49 WAF \u0e41\u0e25\u0e30\u0e23\u0e30\u0e1a\u0e1a\u0e08\u0e33\u0e01\u0e31\u0e14\u0e04\u0e27\u0e32\u0e21\u0e40\u0e23\u0e47\u0e27\u0e02\u0e2d\u0e07 Cloudflare \u0e2d\u0e22\u0e39\u0e48\u0e41\u0e25\u0e49\u0e27.<\/li>\n<\/ul>\n\n\n\n<h2 id=\"13-final-steps--next-guides\" class=\"wp-block-heading\">13. \u0e02\u0e31\u0e49\u0e19\u0e15\u0e2d\u0e19\u0e2a\u0e38\u0e14\u0e17\u0e49\u0e32\u0e22\u0e41\u0e25\u0e30\u0e04\u0e39\u0e48\u0e21\u0e37\u0e2d\u0e15\u0e48\u0e2d\u0e44\u0e1b<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u0e17\u0e33\u0e15\u0e32\u0e21\u0e04\u0e39\u0e48\u0e21\u0e37\u0e2d\u0e17\u0e35\u0e48\u0e08\u0e31\u0e14\u0e44\u0e27\u0e49\u0e42\u0e14\u0e22\u0e40\u0e09\u0e1e\u0e32\u0e30\u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e15\u0e34\u0e14\u0e15\u0e31\u0e49\u0e07\u0e23\u0e30\u0e1a\u0e1a\u0e43\u0e2b\u0e49\u0e04\u0e23\u0e1a\u0e16\u0e49\u0e27\u0e19 (\u0e40\u0e2b\u0e15\u0e38\u0e1c\u0e25\u0e02\u0e2d\u0e07\u0e01\u0e32\u0e23\u0e40\u0e25\u0e37\u0e2d\u0e01\u0e41\u0e15\u0e48\u0e25\u0e30\u0e2d\u0e22\u0e48\u0e32\u0e07\u0e41\u0e25\u0e30\u0e15\u0e31\u0e27\u0e40\u0e25\u0e37\u0e2d\u0e01\u0e2d\u0e37\u0e48\u0e19 \u0e46 \u0e44\u0e14\u0e49\u0e2d\u0e18\u0e34\u0e1a\u0e32\u0e22\u0e44\u0e27\u0e49\u0e43\u0e19\u0e1a\u0e17\u0e04\u0e27\u0e32\u0e21\u0e40\u0e2b\u0e25\u0e48\u0e32\u0e19\u0e31\u0e49\u0e19).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u0e2b\u0e25\u0e31\u0e07\u0e08\u0e32\u0e01\u0e17\u0e33\u0e15\u0e32\u0e21\u0e02\u0e31\u0e49\u0e19\u0e15\u0e2d\u0e19\u0e40\u0e2b\u0e25\u0e48\u0e32\u0e19\u0e35\u0e49\u0e41\u0e25\u0e49\u0e27 \u0e40\u0e04\u0e23\u0e37\u0e48\u0e2d\u0e07\u0e40\u0e0b\u0e34\u0e23\u0e4c\u0e1f\u0e40\u0e27\u0e2d\u0e23\u0e4c Ubuntu LTS \u0e02\u0e2d\u0e07\u0e04\u0e38\u0e13\u0e08\u0e30\u0e21\u0e35:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u0e1c\u0e39\u0e49\u0e43\u0e0a\u0e49 sudo \u0e17\u0e35\u0e48\u0e1b\u0e25\u0e2d\u0e14\u0e20\u0e31\u0e22\u0e41\u0e25\u0e30\u0e44\u0e21\u0e48\u0e43\u0e0a\u0e48\u0e1c\u0e39\u0e49\u0e43\u0e0a\u0e49 root \u0e0b\u0e36\u0e48\u0e07\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e40\u0e02\u0e49\u0e32\u0e16\u0e36\u0e07\u0e44\u0e14\u0e49\u0e1c\u0e48\u0e32\u0e19\u0e01\u0e38\u0e0d\u0e41\u0e08 SSH<\/li>\n\n\n\n<li>\u0e01\u0e32\u0e23\u0e40\u0e02\u0e49\u0e32\u0e2a\u0e39\u0e48\u0e23\u0e30\u0e1a\u0e1a\u0e14\u0e49\u0e27\u0e22\u0e1a\u0e31\u0e0d\u0e0a\u0e35 root \u0e1c\u0e48\u0e32\u0e19 SSH \u0e16\u0e39\u0e01\u0e1b\u0e34\u0e14\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19<\/li>\n\n\n\n<li>\u0e0a\u0e37\u0e48\u0e2d\u0e42\u0e14\u0e40\u0e21\u0e19\u0e40\u0e15\u0e47\u0e21 (FQDN) \u0e41\u0e25\u0e30\u0e40\u0e02\u0e15\u0e40\u0e27\u0e25\u0e32\u0e17\u0e35\u0e48\u0e16\u0e39\u0e01\u0e15\u0e49\u0e2d\u0e07<\/li>\n\n\n\n<li>\u0e01\u0e32\u0e23\u0e1c\u0e2a\u0e32\u0e19\u0e23\u0e27\u0e21 WordOps + UFW + Cloudflare<\/li>\n\n\n\n<li>WP-Cron, Redis \u0e41\u0e25\u0e30\u0e40\u0e04\u0e23\u0e37\u0e48\u0e2d\u0e07\u0e21\u0e37\u0e2d\u0e1a\u0e23\u0e34\u0e2b\u0e32\u0e23\u0e08\u0e31\u0e14\u0e01\u0e32\u0e23\u0e17\u0e31\u0e48\u0e27\u0e44\u0e1b\u0e23\u0e30\u0e14\u0e31\u0e1a\u0e23\u0e30\u0e1a\u0e1a<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">\u0e15\u0e2d\u0e19\u0e19\u0e35\u0e49\u0e04\u0e38\u0e13\u0e1e\u0e23\u0e49\u0e2d\u0e21\u0e41\u0e25\u0e49\u0e27\u0e17\u0e35\u0e48\u0e08\u0e30\u0e2a\u0e23\u0e49\u0e32\u0e07\u0e40\u0e27\u0e47\u0e1a\u0e44\u0e0b\u0e15\u0e4c WordPress \u0e14\u0e49\u0e27\u0e22 <code>wo site create example.com --wpfc<\/code> (\u0e2b\u0e23\u0e37\u0e2d\u0e15\u0e31\u0e27\u0e40\u0e25\u0e37\u0e2d\u0e01\u0e2a\u0e41\u0e15\u0e47\u0e01\u0e2d\u0e37\u0e48\u0e19 \u0e46) \u0e41\u0e25\u0e30\u0e40\u0e2a\u0e23\u0e34\u0e21\u0e04\u0e27\u0e32\u0e21\u0e1b\u0e25\u0e2d\u0e14\u0e20\u0e31\u0e22\u0e43\u0e2b\u0e49\u0e41\u0e15\u0e48\u0e25\u0e30\u0e40\u0e27\u0e47\u0e1a\u0e44\u0e0b\u0e15\u0e4c\u0e2d\u0e22\u0e48\u0e32\u0e07\u0e41\u0e22\u0e01\u0e01\u0e31\u0e19.<\/p>","protected":false},"featured_media":0,"parent":0,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"_seopress_titles_title":"","_seopress_titles_desc":"","_seopress_robots_index":"","_seopress_robots_follow":"","_seopress_robots_imageindex":"","_seopress_robots_snippet":"","_seopress_robots_primary_cat":"","_seopress_robots_breadcrumbs":"","_seopress_robots_freeze_modified_date":"","_seopress_robots_custom_modified_date":"","_seopress_robots_canonical":"","_seopress_social_fb_title":"","_seopress_social_fb_desc":"","_seopress_social_fb_img":"","_seopress_social_fb_img_attachment_id":0,"_seopress_social_fb_img_width":0,"_seopress_social_fb_img_height":0,"_seopress_social_twitter_title":"","_seopress_social_twitter_desc":"","_seopress_social_twitter_img":"","_seopress_social_twitter_img_attachment_id":0,"_seopress_social_twitter_img_width":0,"_seopress_social_twitter_img_height":0,"_seopress_redirections_value":"","_seopress_redirections_enabled":"","_seopress_redirections_enabled_regex":"","_seopress_redirections_logged_status":"","_seopress_redirections_param":"","_seopress_redirections_type":0,"_seopress_analysis_target_kw":"","pmpro_default_level":"","nav_title":"","positive":"1","negative":"","footnotes":""},"docs_category":[],"class_list":["post-47233","docs","type-docs","status-publish","hentry","pmpro-has-access"],"_links":{"self":[{"href":"https:\/\/raybeam.jp\/th\/wp-json\/wp\/v2\/docs\/47233","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/raybeam.jp\/th\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/raybeam.jp\/th\/wp-json\/wp\/v2\/types\/docs"}],"replies":[{"embeddable":true,"href":"https:\/\/raybeam.jp\/th\/wp-json\/wp\/v2\/comments?post=47233"}],"version-history":[{"count":8,"href":"https:\/\/raybeam.jp\/th\/wp-json\/wp\/v2\/docs\/47233\/revisions"}],"predecessor-version":[{"id":47292,"href":"https:\/\/raybeam.jp\/th\/wp-json\/wp\/v2\/docs\/47233\/revisions\/47292"}],"wp:attachment":[{"href":"https:\/\/raybeam.jp\/th\/wp-json\/wp\/v2\/media?parent=47233"}],"wp:term":[{"taxonomy":"docs_category","embeddable":true,"href":"https:\/\/raybeam.jp\/th\/wp-json\/wp\/v2\/docs_category?post=47233"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}