{"id":314,"date":"2025-08-10T08:04:51","date_gmt":"2025-08-10T08:04:51","guid":{"rendered":"https:\/\/blog.chaiyakul.com\/?p=314"},"modified":"2025-08-10T08:04:51","modified_gmt":"2025-08-10T08:04:51","slug":"centos-9-reboot-auto-multi-time","status":"publish","type":"post","link":"https:\/\/blog.chaiyakul.com\/index.php\/2025\/08\/10\/centos-9-reboot-auto-multi-time\/","title":{"rendered":"\u0e15\u0e31\u0e49\u0e07 CentOS 9 Reboot \u0e40\u0e04\u0e23\u0e37\u0e48\u0e2d\u0e07\u0e2b\u0e25\u0e32\u0e22\u0e40\u0e27\u0e25\u0e32\u0e43\u0e19\u0e27\u0e31\u0e19\u0e40\u0e14\u0e35\u0e22\u0e27"},"content":{"rendered":"\n<p>\u0e16\u0e49\u0e32\u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23\u0e43\u0e2b\u0e49 <strong>CentOS 9<\/strong> restart \u0e40\u0e04\u0e23\u0e37\u0e48\u0e2d\u0e07\u0e2b\u0e25\u0e32\u0e22\u0e40\u0e27\u0e25\u0e32\u0e43\u0e19\u0e27\u0e31\u0e19\u0e40\u0e14\u0e35\u0e22\u0e27 \u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e43\u0e0a\u0e49 <strong>cron<\/strong> \u0e44\u0e14\u0e49\u0e40\u0e2b\u0e21\u0e37\u0e2d\u0e19\u0e15\u0e31\u0e49\u0e07 restart service \u0e40\u0e25\u0e22 \u0e40\u0e1e\u0e35\u0e22\u0e07\u0e40\u0e1b\u0e25\u0e35\u0e48\u0e22\u0e19\u0e04\u0e33\u0e2a\u0e31\u0e48\u0e07\u0e40\u0e1b\u0e47\u0e19 <code>reboot<\/code> \u0e2b\u0e23\u0e37\u0e2d <code>shutdown -r now<\/code><\/p>\n\n\n\n<p>\u0e15\u0e31\u0e27\u0e2d\u0e22\u0e48\u0e32\u0e07\u0e40\u0e0a\u0e48\u0e19 \u0e16\u0e49\u0e32\u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23\u0e43\u0e2b\u0e49\u0e40\u0e04\u0e23\u0e37\u0e48\u0e2d\u0e07 restart \u0e40\u0e27\u0e25\u0e32 <strong>08:00, 12:00, 18:00<\/strong> \u0e17\u0e38\u0e01\u0e27\u0e31\u0e19<\/p>\n\n\n\n<p>1. \u0e41\u0e01\u0e49\u0e44\u0e02 crontab \u0e02\u0e2d\u0e07 root<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nsudo crontab -e\n<\/pre><\/div>\n\n\n<p>2. \u0e43\u0e2a\u0e48\u0e42\u0e04\u0e49\u0e14<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n0 8,12,18 * * * \/usr\/sbin\/reboot\n<\/pre><\/div>\n\n\n<p>\u0e15\u0e31\u0e27\u0e2d\u0e22\u0e48\u0e32\u0e07\u0e2b\u0e25\u0e32\u0e22\u0e40\u0e27\u0e25\u0e32\u0e40\u0e1e\u0e34\u0e48\u0e21<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n0 1,5,9,13,17,21 * * * \/usr\/sbin\/reboot\n<\/pre><\/div>\n\n\n<p>\u0e08\u0e30 restart \u0e15\u0e2d\u0e19 <strong>01:00, 05:00, 09:00, 13:00, 17:00, 21:00<\/strong><\/p>\n\n\n\n<p>\ud83d\udca1 \u0e16\u0e49\u0e32\u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23 restart \u0e17\u0e38\u0e01 \u0e46 x \u0e0a\u0e31\u0e48\u0e27\u0e42\u0e21\u0e07 (\u0e40\u0e0a\u0e48\u0e19 \u0e17\u0e38\u0e01 4 \u0e0a\u0e31\u0e48\u0e27\u0e42\u0e21\u0e07)<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n0 *\/4 * * * \/usr\/sbin\/reboot\n<\/pre><\/div>\n\n\n<p>\u0e08\u0e30 restart \u0e15\u0e2d\u0e19 00:00, 04:00, 08:00, 12:00, 16:00, 20:00<\/p>\n\n\n\n<p>\u0e16\u0e49\u0e32\u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23\u0e43\u0e2b\u0e49 CentOS 9 restart \u0e40\u0e27\u0e25\u0e32 <strong>03:30<\/strong>, <strong>11:40<\/strong>, \u0e41\u0e25\u0e30 <strong>18:50<\/strong> \u0e17\u0e38\u0e01\u0e27\u0e31\u0e19<br>\u0e43\u0e2b\u0e49\u0e15\u0e31\u0e49\u0e07\u0e04\u0e48\u0e32 crontab \u0e41\u0e1a\u0e1a\u0e19\u0e35\u0e49<\/p>\n\n\n\n<p>1. \u0e40\u0e1b\u0e34\u0e14 crontab \u0e02\u0e2d\u0e07 root<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nsudo crontab -e\n<\/pre><\/div>\n\n\n<p>2. \u0e43\u0e2a\u0e48\u0e1a\u0e23\u0e23\u0e17\u0e31\u0e14\u0e19\u0e35\u0e49<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n30 3 * * * \/usr\/sbin\/reboot\n40 11 * * * \/usr\/sbin\/reboot\n50 18 * * * \/usr\/sbin\/reboot\n<\/pre><\/div>\n\n\n<ul class=\"wp-block-list\">\n<li><code>30 3<\/code> \u2192 \u0e40\u0e27\u0e25\u0e32 03:30<\/li>\n\n\n\n<li><code>40 11<\/code> \u2192 \u0e40\u0e27\u0e25\u0e32 11:40<\/li>\n\n\n\n<li><code>50 18<\/code> \u2192 \u0e40\u0e27\u0e25\u0e32 18:50<\/li>\n\n\n\n<li><code>\/sbin\/reboot<\/code> \u2192 \u0e04\u0e33\u0e2a\u0e31\u0e48\u0e07 restart \u0e40\u0e04\u0e23\u0e37\u0e48\u0e2d\u0e07<\/li>\n<\/ul>\n\n\n\n<p>\u0e16\u0e49\u0e32\u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23\u0e23\u0e27\u0e21\u0e40\u0e1b\u0e47\u0e19\u0e1a\u0e23\u0e23\u0e17\u0e31\u0e14\u0e40\u0e14\u0e35\u0e22\u0e27\u0e01\u0e47\u0e44\u0e14\u0e49 \u0e41\u0e15\u0e48\u0e41\u0e22\u0e01\u0e1a\u0e23\u0e23\u0e17\u0e31\u0e14\u0e08\u0e30\u0e2d\u0e48\u0e32\u0e19\u0e07\u0e48\u0e32\u0e22\u0e01\u0e27\u0e48\u0e32<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n30 3,11,18 * * * \/usr\/sbin\/reboot\n<\/pre><\/div>\n\n\n<p>\u26a0 \u0e41\u0e15\u0e48\u0e1a\u0e23\u0e23\u0e17\u0e31\u0e14\u0e40\u0e14\u0e35\u0e22\u0e27\u0e19\u0e35\u0e49\u0e43\u0e0a\u0e49\u0e44\u0e21\u0e48\u0e44\u0e14\u0e49\u0e16\u0e49\u0e32\u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23 <strong>\u0e19\u0e32\u0e17\u0e35\u0e44\u0e21\u0e48\u0e40\u0e17\u0e48\u0e32\u0e01\u0e31\u0e19<\/strong><br>\u0e40\u0e1e\u0e23\u0e32\u0e30 cron \u0e41\u0e1a\u0e1a\u0e23\u0e27\u0e21\u0e08\u0e30\u0e43\u0e0a\u0e49 &#8220;\u0e19\u0e32\u0e17\u0e35\u0e40\u0e14\u0e35\u0e22\u0e27\u0e01\u0e31\u0e19&#8221; \u0e17\u0e38\u0e01\u0e40\u0e27\u0e25\u0e32<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0e16\u0e49\u0e32\u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23\u0e43\u0e2b\u0e49 CentOS 9 restart \u0e40\u0e04\u0e23\u0e37\u0e48\u0e2d\u0e07\u0e2b\u0e25\u0e32\u0e22\u0e40\u0e27\u0e25\u0e32\u0e43\u0e19\u0e27\u0e31\u0e19\u0e40\u0e14\u0e35\u0e22 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_editorskit_title_hidden":false,"_editorskit_reading_time":0,"_editorskit_is_block_options_detached":false,"_editorskit_block_options_position":"{}","footnotes":""},"categories":[105,9],"tags":[],"class_list":["post-314","post","type-post","status-publish","format-standard","hentry","category-centos","category-linux"],"_links":{"self":[{"href":"https:\/\/blog.chaiyakul.com\/index.php\/wp-json\/wp\/v2\/posts\/314","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.chaiyakul.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.chaiyakul.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.chaiyakul.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.chaiyakul.com\/index.php\/wp-json\/wp\/v2\/comments?post=314"}],"version-history":[{"count":1,"href":"https:\/\/blog.chaiyakul.com\/index.php\/wp-json\/wp\/v2\/posts\/314\/revisions"}],"predecessor-version":[{"id":315,"href":"https:\/\/blog.chaiyakul.com\/index.php\/wp-json\/wp\/v2\/posts\/314\/revisions\/315"}],"wp:attachment":[{"href":"https:\/\/blog.chaiyakul.com\/index.php\/wp-json\/wp\/v2\/media?parent=314"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.chaiyakul.com\/index.php\/wp-json\/wp\/v2\/categories?post=314"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.chaiyakul.com\/index.php\/wp-json\/wp\/v2\/tags?post=314"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}