{"id":42318,"date":"2026-06-27T13:57:53","date_gmt":"2026-06-27T06:57:53","guid":{"rendered":"https:\/\/interdata.vn\/blog\/?p=42318"},"modified":"2026-06-27T13:57:53","modified_gmt":"2026-06-27T06:57:53","slug":"crontab-la-gi","status":"publish","type":"post","link":"https:\/\/interdata.vn\/blog\/crontab-la-gi\/","title":{"rendered":"Crontab L\u00e0 G\u00ec? H\u01b0\u1edbng D\u1eabn L\u1eadp L\u1ecbch T\u1ef1 \u0110\u1ed9ng Tr\u00ean Linux \u0110\u01a1n Gi\u1ea3n 2026"},"content":{"rendered":"\n\n<style>\n.interdata-plan-carousel,.interdata-plan-carousel *{box-sizing:border-box}\n.interdata-plan-carousel{--blue:#005bea;--blue-dark:#004dcc;--text:#071832;--muted:#516173;--border:#d8e6fb;--bg:#f3f8ff;--shadow:0 5px 14px rgba(0,62,145,.08);container-type:inline-size;background:var(--bg);padding:14px 40px 18px;position:relative;overflow:hidden}\n.interdata-carousel-heading{color:#f00;font-family:Roboto,sans-serif;font-size:18px;line-height:1.35;font-weight:800;text-align:center;margin:0 0 14px}\n.interdata-plan-viewport{overflow:hidden;width:100%}\n.interdata-plan-track{display:flex;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;scroll-behavior:smooth;-webkit-overflow-scrolling:touch;scrollbar-width:none;padding:0 0 4px}\n.interdata-plan-track::-webkit-scrollbar{display:none}\n.interdata-plan-card{flex:0 0 calc((100% - 36px)\/4);min-width:0;background:#fff;border:1px solid var(--border);border-radius:8px;padding:15px 10px 13px;min-height:370px;display:flex;flex-direction:column;scroll-snap-align:start;box-shadow:var(--shadow)}\n.interdata-plan-title{color:var(--blue-dark);font-size:16px;line-height:1.22;font-weight:800;text-align:center;margin:0 0 7px;text-transform:uppercase;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}\n.interdata-plan-price{color:var(--blue-dark);font-size:24px;line-height:1;font-weight:900;text-align:center;margin-bottom:12px;white-space:nowrap;letter-spacing:0}\n.interdata-plan-price span{font-size:10px;font-weight:800;margin-left:2px}\n.interdata-plan-badge{align-self:center;display:inline-flex;align-items:center;justify-content:center;background:#ff3934;color:#fff;border-radius:5px;padding:7px 8px;font-size:9px;line-height:1;font-weight:800;margin-bottom:15px;white-space:nowrap;max-width:100%}\n.interdata-plan-features{list-style:none!important;padding:0!important;margin:0!important}\n.interdata-plan-features li{display:flex;gap:7px;align-items:flex-start;color:var(--text);font-size:12px;line-height:1.35;font-weight:700;text-align:left;margin:0 0 10px!important;padding:0!important}\n.interdata-plan-icon{width:14px;min-width:14px;height:14px;color:#0069ff;margin-top:2px}\n.interdata-plan-icon svg{display:block;width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}\n.interdata-plan-spacer{flex:1;min-height:16px}\n.interdata-plan-button{display:flex;align-items:center;justify-content:center;min-height:42px;width:100%;background:var(--blue);color:#fff!important;border-radius:5px;font-size:13px;font-weight:800;text-decoration:none!important;box-shadow:0 7px 14px rgba(0,91,234,.24);transition:transform .2s ease,background .2s ease}\n.interdata-plan-button:hover{background:var(--blue-dark);color:#fff!important;transform:translateY(-1px)}\n.interdata-carousel-arrow{position:absolute;top:50%;z-index:5;width:44px;height:54px;border:2px solid #fff!important;border-radius:999px;background:var(--blue)!important;color:#fff!important;box-shadow:0 8px 22px rgba(0,62,145,.32);display:flex!important;align-items:center;justify-content:center;cursor:pointer;transform:translateY(-35%);transition:background .2s ease,color .2s ease,opacity .2s ease,transform .2s ease}\n.interdata-carousel-arrow:hover{background:var(--blue-dark)!important;color:#fff!important;transform:translateY(-35%) scale(1.04)}\n.interdata-carousel-arrow:disabled{opacity:.78;cursor:not-allowed;background:#8aa6cf!important;color:#fff!important}\n.interdata-carousel-arrow:disabled:hover{background:#8aa6cf!important;color:#fff!important;transform:translateY(-35%)}\n.interdata-carousel-arrow svg{display:none!important}\n.interdata-carousel-arrow:before{content:none!important;display:none!important}\n.interdata-carousel-mark{display:block!important;color:#fff!important;font-family:Arial,Helvetica,sans-serif!important;font-size:38px!important;font-weight:900!important;line-height:1!important;text-align:center!important;pointer-events:none!important;transform:translateY(-2px)}\n.interdata-carousel-prev{left:14px}\n.interdata-carousel-prev .interdata-carousel-mark{margin-left:-2px}\n.interdata-carousel-next{right:14px}\n.interdata-carousel-next .interdata-carousel-mark{margin-right:-2px}\n@container (max-width:640px){.interdata-plan-carousel{padding:12px 38px 16px}.interdata-plan-card{flex-basis:calc((100% - 12px)\/2);min-height:370px}.interdata-carousel-heading{font-size:16px}}\n@container (max-width:480px){.interdata-plan-carousel{padding:12px 34px 16px}.interdata-plan-card{flex-basis:100%;min-height:360px}.interdata-plan-price{font-size:25px}.interdata-carousel-arrow{width:34px;height:44px}.interdata-carousel-mark{font-size:32px!important}.interdata-carousel-prev{left:5px}.interdata-carousel-next{right:5px}}\n<\/style>\n\n<div class=\"interdata-plan-carousel\" data-interdata-carousel>\n  <div class=\"interdata-carousel-heading\">Si\u00eau \u01afu \u0110\u00e3i VPS \/ CLOUD SERVER - Ti\u1ebft Ki\u1ec7m \u0110\u1ebfn 70%<\/div>\n\n  <svg width=\"0\" height=\"0\" style=\"position:absolute;visibility:hidden\" aria-hidden=\"true\">\n    <symbol id=\"id-icon-cpu\" viewBox=\"0 0 24 24\"><rect x=\"7\" y=\"7\" width=\"10\" height=\"10\" rx=\"2\"><\/rect><path d=\"M4 9h3M4 15h3M17 9h3M17 15h3M9 4v3M15 4v3M9 17v3M15 17v3\"><\/path><path d=\"M10 10h4v4h-4z\"><\/path><\/symbol>\n    <symbol id=\"id-icon-ram\" viewBox=\"0 0 24 24\"><rect x=\"4\" y=\"8\" width=\"16\" height=\"8\" rx=\"2\"><\/rect><path d=\"M7 16v2M11 16v2M15 16v2M19 16v2M7 11h1M11 11h1M15 11h1\"><\/path><\/symbol>\n    <symbol id=\"id-icon-storage\" viewBox=\"0 0 24 24\"><rect x=\"6\" y=\"3\" width=\"12\" height=\"18\" rx=\"2\"><\/rect><path d=\"M9 7h6\"><\/path><circle cx=\"12\" cy=\"16\" r=\"1.5\"><\/circle><\/symbol>\n    <symbol id=\"id-icon-network\" viewBox=\"0 0 24 24\"><path d=\"M5 12.5a10 10 0 0 1 14 0\"><\/path><path d=\"M8.5 16a5 5 0 0 1 7 0\"><\/path><path d=\"M12 19h.01\"><\/path><\/symbol>\n    <symbol id=\"id-icon-gift\" viewBox=\"0 0 24 24\"><rect x=\"3\" y=\"8\" width=\"18\" height=\"13\" rx=\"2\"><\/rect><path d=\"M12 8v13M3 12h18\"><\/path><path d=\"M7.5 8C6.1 8 5 6.9 5 5.5S6.1 3 7.5 3C10 3 12 8 12 8\"><\/path><path d=\"M16.5 8C17.9 8 19 6.9 19 5.5S17.9 3 16.5 3C14 3 12 8 12 8\"><\/path><\/symbol>\n  <\/svg>\n\n  <button class=\"interdata-carousel-arrow interdata-carousel-prev\" type=\"button\" aria-label=\"Xem 4 g\u00f3i tr\u01b0\u1edbc\">\n    <svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><path d=\"M15 18l-6-6 6-6\"><\/path><\/svg>\n    <span class=\"interdata-carousel-mark\" aria-hidden=\"true\">&#8249;<\/span>\n  <\/button>\n\n  <div class=\"interdata-plan-viewport\">\n    <div class=\"interdata-plan-track\">\n      <article class=\"interdata-plan-card\">\n        <h3 class=\"interdata-plan-title\">Premium Base<\/h3>\n        <div class=\"interdata-plan-price\">299K<span>\/3 th\u00e1ng<\/span><\/div>\n        <div class=\"interdata-plan-badge\">GIA H\u1ea0N KH\u00d4NG \u0110\u1ed4I GI\u00c1<\/div>\n        <ul class=\"interdata-plan-features\">\n          <li><span class=\"interdata-plan-icon\"><svg><use href=\"#id-icon-cpu\"><\/use><\/svg><\/span>2 vCore Intel<\/li>\n          <li><span class=\"interdata-plan-icon\"><svg><use href=\"#id-icon-ram\"><\/use><\/svg><\/span>2GB RAM<\/li>\n          <li><span class=\"interdata-plan-icon\"><svg><use href=\"#id-icon-storage\"><\/use><\/svg><\/span>30GB SSD NVMe<\/li>\n          <li><span class=\"interdata-plan-icon\"><svg><use href=\"#id-icon-network\"><\/use><\/svg><\/span>Network: 300Mbps<\/li>\n        <\/ul>\n        <div class=\"interdata-plan-spacer\"><\/div>\n        <a class=\"interdata-plan-button\" href=\"https:\/\/support.interdata.vn\/index.php?rp=\/store\/best-value-plans-2026\/best-value-plans-premium-base\" target=\"_blank\" rel=\"nofollow sponsored noopener\">\u0110\u0103ng k\u00fd ngay<\/a>\n      <\/article>\n\n      <article class=\"interdata-plan-card\">\n        <h3 class=\"interdata-plan-title\">Premium Base<\/h3>\n        <div class=\"interdata-plan-price\">999K<span>\/n\u0103m<\/span><\/div>\n        <div class=\"interdata-plan-badge\">GIA H\u1ea0N KH\u00d4NG \u0110\u1ed4I GI\u00c1<\/div>\n        <ul class=\"interdata-plan-features\">\n          <li><span class=\"interdata-plan-icon\"><svg><use href=\"#id-icon-cpu\"><\/use><\/svg><\/span>3 vCore Intel<\/li>\n          <li><span class=\"interdata-plan-icon\"><svg><use href=\"#id-icon-ram\"><\/use><\/svg><\/span>3GB RAM<\/li>\n          <li><span class=\"interdata-plan-icon\"><svg><use href=\"#id-icon-storage\"><\/use><\/svg><\/span>30GB SSD NVMe<\/li>\n          <li><span class=\"interdata-plan-icon\"><svg><use href=\"#id-icon-network\"><\/use><\/svg><\/span>Network: 300Mbps<\/li>\n        <\/ul>\n        <div class=\"interdata-plan-spacer\"><\/div>\n        <a class=\"interdata-plan-button\" href=\"https:\/\/support.interdata.vn\/index.php?rp=\/store\/cyber-week-2026\/premium-base\" target=\"_blank\" rel=\"nofollow sponsored noopener\">\u0110\u0103ng k\u00fd ngay<\/a>\n      <\/article>\n\n      <article class=\"interdata-plan-card\">\n        <h3 class=\"interdata-plan-title\">Premium Pro<\/h3>\n        <div class=\"interdata-plan-price\">2.599K<span>\/n\u0103m<\/span><\/div>\n        <div class=\"interdata-plan-badge\">GIA H\u1ea0N KH\u00d4NG \u0110\u1ed4I GI\u00c1<\/div>\n        <ul class=\"interdata-plan-features\">\n          <li><span class=\"interdata-plan-icon\"><svg><use href=\"#id-icon-cpu\"><\/use><\/svg><\/span>6 vCore Intel<\/li>\n          <li><span class=\"interdata-plan-icon\"><svg><use href=\"#id-icon-ram\"><\/use><\/svg><\/span>8GB RAM<\/li>\n          <li><span class=\"interdata-plan-icon\"><svg><use href=\"#id-icon-storage\"><\/use><\/svg><\/span>80GB SSD NVMe<\/li>\n          <li><span class=\"interdata-plan-icon\"><svg><use href=\"#id-icon-network\"><\/use><\/svg><\/span>Network: 350Mbps<\/li>\n        <\/ul>\n        <div class=\"interdata-plan-spacer\"><\/div>\n        <a class=\"interdata-plan-button\" href=\"https:\/\/support.interdata.vn\/index.php?rp=\/store\/cyber-week-2026\/premium-pro\" target=\"_blank\" rel=\"nofollow sponsored noopener\">\u0110\u0103ng k\u00fd ngay<\/a>\n      <\/article>\n\n      <article class=\"interdata-plan-card\">\n        <h3 class=\"interdata-plan-title\">Premium Ultra<\/h3>\n        <div class=\"interdata-plan-price\">5.679K<span>\/n\u0103m<\/span><\/div>\n        <div class=\"interdata-plan-badge\">GIA H\u1ea0N KH\u00d4NG \u0110\u1ed4I GI\u00c1<\/div>\n        <ul class=\"interdata-plan-features\">\n          <li><span class=\"interdata-plan-icon\"><svg><use href=\"#id-icon-cpu\"><\/use><\/svg><\/span>12 vCore Intel<\/li>\n          <li><span class=\"interdata-plan-icon\"><svg><use href=\"#id-icon-ram\"><\/use><\/svg><\/span>16GB RAM<\/li>\n          <li><span class=\"interdata-plan-icon\"><svg><use href=\"#id-icon-storage\"><\/use><\/svg><\/span>180GB SSD NVMe<\/li>\n          <li><span class=\"interdata-plan-icon\"><svg><use href=\"#id-icon-network\"><\/use><\/svg><\/span>Network: 450Mbps<\/li>\n        <\/ul>\n        <div class=\"interdata-plan-spacer\"><\/div>\n        <a class=\"interdata-plan-button\" href=\"https:\/\/support.interdata.vn\/index.php?rp=\/store\/cyber-week-2026\/premium-ultra\" target=\"_blank\" rel=\"nofollow sponsored noopener\">\u0110\u0103ng k\u00fd ngay<\/a>\n      <\/article>\n\n      <article class=\"interdata-plan-card\">\n        <h3 class=\"interdata-plan-title\">BD-CLOUD 1<\/h3>\n        <div class=\"interdata-plan-price\">988K<span>\/n\u0103m<\/span><\/div>\n        <div class=\"interdata-plan-badge\">GIA H\u1ea0N KH\u00d4NG \u0110\u1ed4I GI\u00c1<\/div>\n        <ul class=\"interdata-plan-features\">\n          <li><span class=\"interdata-plan-icon\"><svg><use href=\"#id-icon-cpu\"><\/use><\/svg><\/span>2 vCPU<\/li>\n          <li><span class=\"interdata-plan-icon\"><svg><use href=\"#id-icon-ram\"><\/use><\/svg><\/span>2 GB RAM<\/li>\n          <li><span class=\"interdata-plan-icon\"><svg><use href=\"#id-icon-storage\"><\/use><\/svg><\/span>30 GB SSD NVMe<\/li>\n          <li><span class=\"interdata-plan-icon\"><svg><use href=\"#id-icon-network\"><\/use><\/svg><\/span>Network: 300 Mbps<\/li>\n        <\/ul>\n        <div class=\"interdata-plan-spacer\"><\/div>\n        <a class=\"interdata-plan-button\" href=\"https:\/\/support.interdata.vn\/index.php?rp=\/store\/bd-cloud-performance-2026\/bd-cloud-1\" target=\"_blank\" rel=\"nofollow sponsored noopener\">\u0110\u0103ng k\u00fd ngay<\/a>\n      <\/article>\n\n      <article class=\"interdata-plan-card\">\n        <h3 class=\"interdata-plan-title\">BD-CLOUD 2<\/h3>\n        <div class=\"interdata-plan-price\">2.988K<span>\/n\u0103m<\/span><\/div>\n        <div class=\"interdata-plan-badge\">GIA H\u1ea0N KH\u00d4NG \u0110\u1ed4I GI\u00c1<\/div>\n        <ul class=\"interdata-plan-features\">\n          <li><span class=\"interdata-plan-icon\"><svg><use href=\"#id-icon-cpu\"><\/use><\/svg><\/span>4 vCPU<\/li>\n          <li><span class=\"interdata-plan-icon\"><svg><use href=\"#id-icon-ram\"><\/use><\/svg><\/span>8 GB RAM<\/li>\n          <li><span class=\"interdata-plan-icon\"><svg><use href=\"#id-icon-storage\"><\/use><\/svg><\/span>80 GB SSD NVMe<\/li>\n          <li><span class=\"interdata-plan-icon\"><svg><use href=\"#id-icon-network\"><\/use><\/svg><\/span>Network: 300 Mbps<\/li>\n        <\/ul>\n        <div class=\"interdata-plan-spacer\"><\/div>\n        <a class=\"interdata-plan-button\" href=\"https:\/\/support.interdata.vn\/index.php?rp=\/store\/bd-cloud-performance-2026\/bd-cloud-2\" target=\"_blank\" rel=\"nofollow sponsored noopener\">\u0110\u0103ng k\u00fd ngay<\/a>\n      <\/article>\n\n      <article class=\"interdata-plan-card\">\n        <h3 class=\"interdata-plan-title\">Cloud-Day - Base<\/h3>\n        <div class=\"interdata-plan-price\">2.666K<span>\/n\u0103m<\/span><\/div>\n        <div class=\"interdata-plan-badge\">GIA H\u1ea0N KH\u00d4NG \u0110\u1ed4I GI\u00c1<\/div>\n        <ul class=\"interdata-plan-features\">\n          <li><span class=\"interdata-plan-icon\"><svg><use href=\"#id-icon-gift\"><\/use><\/svg><\/span>T\u1eb7ng 80GB S3 v\u00e0 1 n\u0103m s\u1eed d\u1ee5ng khi mua 2 n\u0103m tr\u1edf l\u00ean<\/li>\n          <li><span class=\"interdata-plan-icon\"><svg><use href=\"#id-icon-cpu\"><\/use><\/svg><\/span>4 vCPU AMD G3<\/li>\n          <li><span class=\"interdata-plan-icon\"><svg><use href=\"#id-icon-ram\"><\/use><\/svg><\/span>6GB RAM<\/li>\n          <li><span class=\"interdata-plan-icon\"><svg><use href=\"#id-icon-storage\"><\/use><\/svg><\/span>60GB SSD NVMe<\/li>\n          <li><span class=\"interdata-plan-icon\"><svg><use href=\"#id-icon-network\"><\/use><\/svg><\/span>Network: 10Gbps<\/li>\n        <\/ul>\n        <div class=\"interdata-plan-spacer\"><\/div>\n        <a class=\"interdata-plan-button\" href=\"https:\/\/support.interdata.vn\/index.php?rp=\/store\/cloud-day-by-interdata-2026\/cloud-day-base\" target=\"_blank\" rel=\"nofollow sponsored noopener\">\u0110\u0103ng k\u00fd ngay<\/a>\n      <\/article>\n\n      <article class=\"interdata-plan-card\">\n        <h3 class=\"interdata-plan-title\">Cloud-Day - Pro<\/h3>\n        <div class=\"interdata-plan-price\">5.666K<span>\/n\u0103m<\/span><\/div>\n        <div class=\"interdata-plan-badge\">GIA H\u1ea0N KH\u00d4NG \u0110\u1ed4I GI\u00c1<\/div>\n        <ul class=\"interdata-plan-features\">\n          <li><span class=\"interdata-plan-icon\"><svg><use href=\"#id-icon-gift\"><\/use><\/svg><\/span>T\u1eb7ng 200GB S3 v\u00e0 1 n\u0103m s\u1eed d\u1ee5ng khi mua 2 n\u0103m tr\u1edf l\u00ean<\/li>\n          <li><span class=\"interdata-plan-icon\"><svg><use href=\"#id-icon-cpu\"><\/use><\/svg><\/span>8 vCPU AMD G3<\/li>\n          <li><span class=\"interdata-plan-icon\"><svg><use href=\"#id-icon-ram\"><\/use><\/svg><\/span>12GB RAM<\/li>\n          <li><span class=\"interdata-plan-icon\"><svg><use href=\"#id-icon-storage\"><\/use><\/svg><\/span>160GB SSD NVMe<\/li>\n          <li><span class=\"interdata-plan-icon\"><svg><use href=\"#id-icon-network\"><\/use><\/svg><\/span>Network: 10Gbps<\/li>\n        <\/ul>\n        <div class=\"interdata-plan-spacer\"><\/div>\n        <a class=\"interdata-plan-button\" href=\"https:\/\/support.interdata.vn\/index.php?rp=\/store\/cloud-day-by-interdata-2026\/cloud-day-pro\" target=\"_blank\" rel=\"nofollow sponsored noopener\">\u0110\u0103ng k\u00fd ngay<\/a>\n      <\/article>\n    <\/div>\n  <\/div>\n\n  <button class=\"interdata-carousel-arrow interdata-carousel-next\" type=\"button\" aria-label=\"Xem 4 g\u00f3i ti\u1ebfp theo\">\n    <svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><path d=\"M9 18l6-6-6-6\"><\/path><\/svg>\n    <span class=\"interdata-carousel-mark\" aria-hidden=\"true\">&#8250;<\/span>\n  <\/button>\n<\/div>\n\n<script>\n(function(){\n  function setupInterDataCarousel(root){\n    var track=root.querySelector('.interdata-plan-track');\n    var prev=root.querySelector('.interdata-carousel-prev');\n    var next=root.querySelector('.interdata-carousel-next');\n    if(!track||!prev||!next||track.dataset.ready==='1')return;\n    track.dataset.ready='1';\n\n    function pageWidth(){\n      return track.clientWidth;\n    }\n\n    function updateButtons(){\n      var maxScroll=track.scrollWidth-track.clientWidth-2;\n      prev.disabled=track.scrollLeft<=2;\n      next.disabled=track.scrollLeft>=maxScroll;\n    }\n\n    prev.addEventListener('click',function(){\n      track.scrollBy({left:-pageWidth(),behavior:'smooth'});\n    });\n\n    next.addEventListener('click',function(){\n      track.scrollBy({left:pageWidth(),behavior:'smooth'});\n    });\n\n    track.addEventListener('scroll',function(){\n      window.requestAnimationFrame(updateButtons);\n    });\n\n    window.addEventListener('resize',updateButtons);\n    updateButtons();\n  }\n\n  function initInterDataCarousels(){\n    document.querySelectorAll('[data-interdata-carousel]').forEach(setupInterDataCarousel);\n  }\n\n  if(document.readyState==='loading'){\n    document.addEventListener('DOMContentLoaded',initInterDataCarousels);\n  }else{\n    initInterDataCarousels();\n  }\n})();\n<\/script>\n\n\t<div id=\"gap-1287804094\" class=\"gap-element clearfix\" style=\"display:block; height:auto;\">\n\t\t\n<style>\n#gap-1287804094 {\n  padding-top: 30px;\n}\n<\/style>\n\t<\/div>\n\t\n<p style=\"text-align: justify;\"><span style=\"font-size: 100%;\"><br \/>\n<strong>Crontab<\/strong> l\u00e0 c\u00f4ng c\u1ee5 d\u00f2ng l\u1ec7nh m\u1ea1nh m\u1ebd tr\u00ean h\u1ec7 \u0111i\u1ec1u h\u00e0nh Linux, cho ph\u00e9p qu\u1ea3n tr\u1ecb vi\u00ean l\u1eadp l\u1ecbch v\u00e0 t\u1ef1 \u0111\u1ed9ng h\u00f3a c\u00e1c t\u00e1c v\u1ee5 l\u1eb7p \u0111i l\u1eb7p l\u1ea1i. Thay v\u00ec ph\u1ea3i th\u1ee9c d\u1eady l\u00fac n\u1eeda \u0111\u00eam \u0111\u1ec3 ch\u1ea1y script backup d\u1eef li\u1ec7u hay t\u1ef1 tay x\u00f3a file log h\u1ec7 th\u1ed1ng h\u00e0ng tu\u1ea7n, b\u1ea1n ch\u1ec9 c\u1ea7n c\u1ea5u h\u00ecnh m\u1ed9t d\u00f2ng l\u1ec7nh ng\u1eafn g\u1ecdn \u0111\u1ec3 h\u1ec7 th\u1ed1ng t\u1ef1 \u0111\u1ed9ng x\u1eed l\u00fd. Vi\u1ec7c n\u1eafm v\u1eefng c\u00e1ch thi\u1ebft l\u1eadp ti\u1ebfn tr\u00ecnh n\u00e0y s\u1ebd gi\u00fap gi\u1ea3m thi\u1ec3u sai s\u00f3t do thao t\u00e1c th\u1ee7 c\u00f4ng, t\u1ed1i \u01b0u h\u00f3a c\u00f4ng t\u00e1c v\u1eadn h\u00e0nh h\u1ec7 th\u1ed1ng tr\u00ean c\u00e1c m\u00e1y ch\u1ee7 \u1ea3o c\u1ee7a InterData.<br \/>\n<\/span><\/p>\n<div style=\"background-color: #eff6ff; padding: 20px; border: 1.5px solid #BFDBFE; border-radius: 12px; margin-bottom: 40px; box-shadow: 0 8px 20px rgba(37, 99, 235, 0.05);\">\n<p style=\"font-family: 'Be Vietnam Pro', sans-serif; font-weight: bold; font-size: 18px; margin-top: 0; margin-bottom: 15px; color: #1e3a8a;\">N\u1ed8I DUNG B\u00c0I VI\u1ebeT<\/p>\n<ul style=\"list-style-type: none; padding-left: 0; margin: 0;\">\n<li style=\"margin-bottom: 10px;\"><a style=\"text-decoration: none; color: #2563eb; font-weight: bold;\" href=\"#section1\">1. B\u1ea3n ch\u1ea5t c\u1ee7a crontab v\u00e0 c\u01a1 ch\u1ebf ho\u1ea1t \u0111\u1ed9ng c\u1ee7a cron daemon<\/a><\/li>\n<li style=\"margin-bottom: 10px;\"><a style=\"text-decoration: none; color: #2563eb; font-weight: bold;\" href=\"#section2\">2. H\u01b0\u1edbng d\u1eabn \u0111\u1ecdc hi\u1ec3u c\u00fa ph\u00e1p crontab chu\u1ea9n x\u00e1c<\/a><\/li>\n<li style=\"margin-bottom: 10px;\"><a style=\"text-decoration: none; color: #2563eb; font-weight: bold;\" href=\"#section3\">3. C\u00e1c l\u1ec7nh crontab c\u01a1 b\u1ea3n \u0111\u1ec3 qu\u1ea3n tr\u1ecb server Linux<\/a><\/li>\n<li style=\"margin-bottom: 10px;\"><a style=\"text-decoration: none; color: #2563eb; font-weight: bold;\" href=\"#section4\">4. C\u1ea5u h\u00ecnh crontab th\u1ef1c t\u1ebf: H\u1eb9n gi\u1edd backup v\u00e0 ch\u1ea1y script t\u1ef1 \u0111\u1ed9ng<\/a><\/li>\n<li style=\"margin-bottom: 10px;\"><a style=\"text-decoration: none; color: #2563eb; font-weight: bold;\" href=\"#section5\">5. Kh\u1eafc ph\u1ee5c l\u1ed7i t\u1ea1i sao cron job linux kh\u00f4ng t\u1ef1 ch\u1ea1y<\/a><\/li>\n<li style=\"margin-bottom: 10px;\"><a style=\"text-decoration: none; color: #2563eb; font-weight: bold;\" href=\"#section6\">6. C\u00e2u h\u1ecfi th\u01b0\u1eddng g\u1eb7p khi c\u1ea5u h\u00ecnh crontab h\u1eb9n gi\u1edd Linux<\/a><\/li>\n<\/ul>\n<\/div>\n<h2 id=\"section1\" style=\"color: #1e3a8a; font-size: 24px; font-weight: bold; text-align: left; border-left: 5px solid #2563EB; padding-left: 15px; margin-top: 40px; margin-bottom: 20px; line-height: 1.4;\">1. B\u1ea3n ch\u1ea5t c\u1ee7a crontab v\u00e0 c\u01a1 ch\u1ebf ho\u1ea1t \u0111\u1ed9ng c\u1ee7a cron daemon<\/h2>\n<p style=\"text-align: justify;\">Crontab (Cron Table) l\u00e0 m\u1ed9t t\u1ec7p c\u1ea5u h\u00ecnh h\u1ec7 th\u1ed1ng ch\u1ee9a danh s\u00e1ch c\u00e1c l\u1ec7nh \u0111\u01b0\u1ee3c l\u1eadp l\u1ecbch \u0111\u1ec3 ch\u1ea1y t\u1ef1 \u0111\u1ed9ng v\u00e0o nh\u1eefng kho\u1ea3ng th\u1eddi gian c\u1ee5 th\u1ec3. N\u00f3 ho\u1ea1t \u0111\u1ed9ng d\u1ef1a tr\u00ean Cron Daemon (crond) &#8211; m\u1ed9t ti\u1ebfn tr\u00ecnh ch\u1ea1y ng\u1ea7m li\u00ean t\u1ee5c trong h\u1ec7 \u0111i\u1ec1u h\u00e0nh Linux \u0111\u1ec3 qu\u00e9t v\u00e0 th\u1ef1c thi c\u00e1c t\u00e1c v\u1ee5 \u0111\u01b0\u1ee3c h\u1eb9n gi\u1edd n\u00e0y.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-42319\" src=\"https:\/\/interdata.vn\/blog\/wp-content\/uploads\/2026\/06\/Crontab-Cron-Table-1024x683.jpg\" alt=\"Crontab (Cron Table)\" width=\"1020\" height=\"680\" title=\"\" srcset=\"https:\/\/interdata.vn\/blog\/wp-content\/uploads\/2026\/06\/Crontab-Cron-Table-1024x683.jpg 1024w, https:\/\/interdata.vn\/blog\/wp-content\/uploads\/2026\/06\/Crontab-Cron-Table-300x200.jpg 300w, https:\/\/interdata.vn\/blog\/wp-content\/uploads\/2026\/06\/Crontab-Cron-Table-768x512.jpg 768w, https:\/\/interdata.vn\/blog\/wp-content\/uploads\/2026\/06\/Crontab-Cron-Table.jpg 1536w\" sizes=\"auto, (max-width: 1020px) 100vw, 1020px\" \/><\/p>\n<p style=\"text-align: justify;\">C\u01a1 ch\u1ebf v\u1eadn h\u00e0nh c\u1ee7a c\u00f4ng c\u1ee5 n\u00e0y r\u1ea5t \u0111\u01a1n gi\u1ea3n. M\u1ed7i ph\u00fat m\u1ed9t l\u1ea7n, d\u1ecbch v\u1ee5 <code>crond<\/code> s\u1ebd ch\u1ee7 \u0111\u1ed9ng th\u1ee9c d\u1eady, qu\u00e9t qua c\u00e1c t\u1ec7p c\u1ea5u h\u00ecnh h\u1ec7 th\u1ed1ng t\u1ea1i th\u01b0 m\u1ee5c <code>\/var\/spool\/cron\/<\/code> v\u00e0 c\u00e1c th\u01b0 m\u1ee5c c\u1ea5u h\u00ecnh chung nh\u01b0 <code>\/etc\/cron.d\/<\/code>. N\u1ebfu ph\u00e1t hi\u1ec7n th\u1ea5y c\u00f3 t\u00e1c v\u1ee5 n\u00e0o tr\u00f9ng kh\u1edbp v\u1edbi th\u1eddi gian hi\u1ec7n t\u1ea1i c\u1ee7a h\u1ec7 th\u1ed1ng, daemon s\u1ebd l\u1eadp t\u1ee9c g\u1ecdi ti\u1ebfn tr\u00ecnh con \u0111\u1ec3 th\u1ef1c thi l\u1ec7nh \u0111\u00f3 trong n\u1ec1n (background).<\/p>\n<ul style=\"list-style-type: disc; padding-left: 20px; margin-bottom: 25px; color: #1f2937;\">\n<li style=\"margin-bottom: 10px;\"><strong>\u0110\u1ed9c l\u1eadp theo User:<\/strong> M\u1ed7i t\u00e0i kho\u1ea3n ng\u01b0\u1eddi d\u00f9ng (bao g\u1ed3m c\u1ea3 root) tr\u00ean h\u1ec7 th\u1ed1ng Linux \u0111\u1ec1u s\u1edf h\u1eefu m\u1ed9t t\u1ec7p c\u1ea5u h\u00ecnh l\u1eadp l\u1ecbch ri\u00eang bi\u1ec7t.<\/li>\n<li style=\"margin-bottom: 10px;\"><strong>T\u00ednh li\u00ean t\u1ee5c:<\/strong> D\u1ecbch v\u1ee5 t\u1ef1 \u0111\u1ed9ng ch\u1ea1y ng\u1ea7m t\u1eeb l\u00fac m\u00e1y ch\u1ee7 kh\u1edfi \u0111\u1ed9ng cho \u0111\u1ebfn khi t\u1eaft m\u00e1y, kh\u00f4ng y\u00eau c\u1ea7u ng\u01b0\u1eddi d\u00f9ng ph\u1ea3i duy tr\u00ec phi\u00ean \u0111\u0103ng nh\u1eadp SSH.<\/li>\n<\/ul>\n<h2 id=\"section2\" style=\"color: #1e3a8a; font-size: 24px; font-weight: bold; text-align: left; border-left: 5px solid #2563EB; padding-left: 15px; margin-top: 40px; margin-bottom: 20px; line-height: 1.4;\">2. H\u01b0\u1edbng d\u1eabn \u0111\u1ecdc hi\u1ec3u c\u00fa ph\u00e1p crontab chu\u1ea9n x\u00e1c<\/h2>\n<p style=\"text-align: justify;\">\u0110\u1ec3 c\u1ea5u h\u00ecnh c\u00f4ng c\u1ee5 l\u1eadp l\u1ecbch th\u00e0nh c\u00f4ng, b\u1ea1n b\u1eaft bu\u1ed9c ph\u1ea3i hi\u1ec3u r\u00f5 \u00fd ngh\u0129a c\u1ee7a chu\u1ed7i 5 d\u1ea5u sao n\u1eb1m \u1edf \u0111\u1ea7u m\u1ed7i d\u00f2ng c\u1ea5u h\u00ecnh. M\u1ed7i v\u1ecb tr\u00ed \u0111\u1ea1i di\u1ec7n cho m\u1ed9t \u0111\u01a1n v\u1ecb th\u1eddi gian kh\u00e1c nhau, t\u00ednh t\u1eeb tr\u00e1i sang ph\u1ea3i.<\/p>\n<p style=\"text-align: justify;\">C\u1ea5u tr\u00fac chu\u1ea9n c\u1ee7a m\u1ed9t d\u00f2ng l\u1ec7nh h\u1eb9n gi\u1edd Linux \u0111\u01b0\u1ee3c thi\u1ebft l\u1eadp nh\u01b0 sau:<\/p>\n<div style=\"background-color: #1f2937; color: #e5e7eb; padding: 15px; border-radius: 8px; font-family: monospace; font-size: 14px; margin-bottom: 25px; overflow-x: auto; white-space: pre;\">* * * * * \/\u0111\u01b0\u1eddng_d\u1eabn\/\u0111\u1ebfn\/l\u1ec7nh_ho\u1eb7c_script.sh<br \/>\n\u2502 \u2502 \u2502 \u2502 \u2502<br \/>\n\u2502 \u2502 \u2502 \u2502 \u2514\u2500 Ng\u00e0y trong tu\u1ea7n (0 &#8211; 6) (Ch\u1ee7 Nh\u1eadt = 0 ho\u1eb7c 7)<br \/>\n\u2502 \u2502 \u2502 \u2514\u2500\u2500\u2500\u2500\u2500 Th\u00e1ng (1 &#8211; 12)<br \/>\n\u2502 \u2502 \u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 Ng\u00e0y trong th\u00e1ng (1 &#8211; 31)<br \/>\n\u2502 \u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 Gi\u1edd (0 &#8211; 23)<br \/>\n\u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 Ph\u00fat (0 &#8211; 59)<\/div>\n<p style=\"text-align: justify;\">B\u1ea3ng d\u01b0\u1edbi \u0111\u00e2y m\u00f4 t\u1ea3 chi ti\u1ebft ph\u1ea1m vi gi\u00e1 tr\u1ecb v\u00e0 c\u00e1c k\u00fd t\u1ef1 \u0111\u1eb7c bi\u1ec7t \u0111\u01b0\u1ee3c ch\u1ea5p nh\u1eadn t\u1ea1i t\u1eebng v\u1ecb tr\u00ed:<\/p>\n<table style=\"width: 100%; border-collapse: collapse; margin-bottom: 25px; font-family: 'Be Vietnam Pro', sans-serif; font-size: 14px;\">\n<thead>\n<tr style=\"background-color: #1e3a8a; color: white;\">\n<th style=\"padding: 12px; border: 1px solid #ddd; text-align: left;\">Tr\u01b0\u1eddng th\u1eddi gian<\/th>\n<th style=\"padding: 12px; border: 1px solid #ddd; text-align: left;\">Ph\u1ea1m vi gi\u00e1 tr\u1ecb<\/th>\n<th style=\"padding: 12px; border: 1px solid #ddd; text-align: left;\">\u00dd ngh\u0129a c\u00e1c k\u00fd t\u1ef1 \u0111\u1eb7c bi\u1ec7t<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"padding: 12px; border: 1px solid #ddd; font-weight: bold;\">Ph\u00fat (Minute)<\/td>\n<td style=\"padding: 12px; border: 1px solid #ddd;\">0 &#8211; 59<\/td>\n<td style=\"padding: 12px; border: 1px solid #ddd;\"><code>*<\/code> (m\u1ecdi ph\u00fat), <code>,<\/code> (nhi\u1ec1u gi\u00e1 tr\u1ecb), <code>-<\/code> (kho\u1ea3ng), <code>\/<\/code> (chu k\u1ef3)<\/td>\n<\/tr>\n<tr style=\"background-color: #f9f9f9;\">\n<td style=\"padding: 12px; border: 1px solid #ddd; font-weight: bold;\">Gi\u1edd (Hour)<\/td>\n<td style=\"padding: 12px; border: 1px solid #ddd;\">0 &#8211; 23<\/td>\n<td style=\"padding: 12px; border: 1px solid #ddd;\">X\u00e1c \u0111\u1ecbnh m\u1ed1c gi\u1edd ch\u1ea1y trong ng\u00e0y (0 l\u00e0 n\u1eeda \u0111\u00eam)<\/td>\n<\/tr>\n<tr>\n<td style=\"padding: 12px; border: 1px solid #ddd; font-weight: bold;\">Ng\u00e0y trong th\u00e1ng (Day of Month)<\/td>\n<td style=\"padding: 12px; border: 1px solid #ddd;\">1 &#8211; 31<\/td>\n<td style=\"padding: 12px; border: 1px solid #ddd;\">Quy\u1ebft \u0111\u1ecbnh ng\u00e0y c\u1ee5 th\u1ec3 s\u1ebd ch\u1ea1y script trong th\u00e1ng<\/td>\n<\/tr>\n<tr style=\"background-color: #f9f9f9;\">\n<td style=\"padding: 12px; border: 1px solid #ddd; font-weight: bold;\">Th\u00e1ng (Month)<\/td>\n<td style=\"padding: 12px; border: 1px solid #ddd;\">1 &#8211; 12<\/td>\n<td style=\"padding: 12px; border: 1px solid #ddd;\">Thi\u1ebft l\u1eadp th\u00e1ng c\u1ee5 th\u1ec3 ch\u1ea1y t\u00e1c v\u1ee5 trong n\u0103m<\/td>\n<\/tr>\n<tr>\n<td style=\"padding: 12px; border: 1px solid #ddd; font-weight: bold;\">Ng\u00e0y trong tu\u1ea7n (Day of Week)<\/td>\n<td style=\"padding: 12px; border: 1px solid #ddd;\">0 &#8211; 6 (0 ho\u1eb7c 7 l\u00e0 Ch\u1ee7 Nh\u1eadt)<\/td>\n<td style=\"padding: 12px; border: 1px solid #ddd;\">H\u1eb9n gi\u1edd ch\u1ea1y theo c\u00e1c th\u1ee9 trong tu\u1ea7n (Th\u1ee9 Hai = 1)<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3 style=\"color: #1e3a8a; font-size: 20px; font-weight: bold; margin-top: 25px; margin-bottom: 15px;\">C\u00e1c k\u00fd t\u1ef1 \u0111\u1eb7c bi\u1ec7t trong c\u00fa ph\u00e1p crontab<\/h3>\n<p style=\"text-align: justify;\">Vi\u1ec7c k\u1ebft h\u1ee3p c\u00e1c k\u00fd t\u1ef1 \u0111\u1eb7c bi\u1ec7t gi\u00fap b\u1ea1n linh ho\u1ea1t thi\u1ebft l\u1eadp c\u00e1c chu k\u1ef3 th\u1eddi gian ph\u1ee9c t\u1ea1p m\u00e0 kh\u00f4ng c\u1ea7n ph\u1ea3i vi\u1ebft nhi\u1ec1u d\u00f2ng c\u1ea5u h\u00ecnh l\u1eb7p l\u1ea1i.<\/p>\n<ul style=\"list-style-type: disc; padding-left: 20px; margin-bottom: 25px; color: #1f2937;\">\n<li style=\"margin-bottom: 10px;\"><strong>D\u1ea5u ph\u1ea9y (<code>,<\/code>):<\/strong> Cho ph\u00e9p khai b\u00e1o danh s\u00e1ch nhi\u1ec1u m\u1ed1c th\u1eddi gian c\u1ee5 th\u1ec3. V\u00ed d\u1ee5: c\u1ea5u h\u00ecnh <code>15,30,45<\/code> \u1edf v\u1ecb tr\u00ed ph\u00fat ngh\u0129a l\u00e0 t\u00e1c v\u1ee5 s\u1ebd ch\u1ea1y v\u00e0o ph\u00fat th\u1ee9 15, ph\u00fat 30 v\u00e0 ph\u00fat 45 c\u1ee7a m\u1ed7i gi\u1edd.<\/li>\n<li style=\"margin-bottom: 10px;\"><strong>D\u1ea5u g\u1ea1ch ngang (<code>-<\/code>):<\/strong> X\u00e1c \u0111\u1ecbnh m\u1ed9t kho\u1ea3ng th\u1eddi gian li\u00ean t\u1ee5c. V\u00ed d\u1ee5: c\u1ea5u h\u00ecnh <code>9-17<\/code> \u1edf v\u1ecb tr\u00ed gi\u1edd ngh\u0129a l\u00e0 t\u00e1c v\u1ee5 s\u1ebd t\u1ef1 \u0111\u1ed9ng k\u00edch ho\u1ea1t h\u00e0ng gi\u1edd, b\u1eaft \u0111\u1ea7u t\u1eeb 9 gi\u1edd s\u00e1ng \u0111\u1ebfn 5 gi\u1edd chi\u1ec1u.<\/li>\n<li style=\"margin-bottom: 10px;\"><strong>D\u1ea5u g\u1ea1ch ch\u00e9o (<code>\/<\/code>):<\/strong> D\u00f9ng \u0111\u1ec3 thi\u1ebft l\u1eadp kho\u1ea3ng th\u1eddi gian l\u1eb7p \u0111\u1ec1u \u0111\u1eb7n. V\u00ed d\u1ee5: c\u1ea5u h\u00ecnh <code>*\/10<\/code> \u1edf v\u1ecb tr\u00ed ph\u00fat ngh\u0129a l\u00e0 t\u00e1c v\u1ee5 s\u1ebd l\u1eb7p l\u1ea1i li\u00ean t\u1ee5c sau m\u1ed7i 10 ph\u00fat.<\/li>\n<li style=\"margin-bottom: 10px;\"><strong>T\u1eeb kh\u00f3a \u0111\u1eb7c bi\u1ec7t (<code>@reboot<\/code>):<\/strong> \u0110\u00e2y l\u00e0 c\u00fa ph\u00e1p m\u1edf r\u1ed9ng h\u1eefu \u00edch gi\u00fap ra l\u1ec7nh cho h\u1ec7 \u0111i\u1ec1u h\u00e0nh ch\u1ea1y ngay script ho\u1eb7c kh\u1edfi \u0111\u1ed9ng c\u00f4ng c\u1ee5, bot ngay sau khi m\u00e1y ch\u1ee7 v\u1eeba reboot xong.<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-42320\" src=\"https:\/\/interdata.vn\/blog\/wp-content\/uploads\/2026\/06\/Crontab-1024x683.jpg\" alt=\"Crontab\" width=\"1020\" height=\"680\" title=\"\" srcset=\"https:\/\/interdata.vn\/blog\/wp-content\/uploads\/2026\/06\/Crontab-1024x683.jpg 1024w, https:\/\/interdata.vn\/blog\/wp-content\/uploads\/2026\/06\/Crontab-300x200.jpg 300w, https:\/\/interdata.vn\/blog\/wp-content\/uploads\/2026\/06\/Crontab-768x512.jpg 768w, https:\/\/interdata.vn\/blog\/wp-content\/uploads\/2026\/06\/Crontab.jpg 1536w\" sizes=\"auto, (max-width: 1020px) 100vw, 1020px\" \/><\/p>\n<h2 id=\"section3\" style=\"color: #1e3a8a; font-size: 24px; font-weight: bold; text-align: left; border-left: 5px solid #2563EB; padding-left: 15px; margin-top: 40px; margin-bottom: 20px; line-height: 1.4;\">3. C\u00e1c l\u1ec7nh crontab c\u01a1 b\u1ea3n \u0111\u1ec3 qu\u1ea3n tr\u1ecb server Linux<\/h2>\n<p style=\"text-align: justify;\">\u0110\u1ec3 t\u01b0\u01a1ng t\u00e1c v\u1edbi t\u1ec7p c\u1ea5u h\u00ecnh l\u1eadp l\u1ecbch c\u1ee7a t\u00e0i kho\u1ea3n ng\u01b0\u1eddi d\u00f9ng, Linux cung c\u1ea5p c\u00e1c t\u00f9y ch\u1ecdn d\u00f2ng l\u1ec7nh c\u01a1 b\u1ea3n. B\u1ea1n tuy\u1ec7t \u0111\u1ed1i kh\u00f4ng n\u00ean can thi\u1ec7p th\u1ee7 c\u00f4ng v\u00e0o c\u00e1c file trong spool h\u1ec7 th\u1ed1ng \u0111\u1ec3 tr\u00e1nh l\u00e0m h\u1ecfng c\u1ea5u tr\u00fac ph\u00e2n quy\u1ec1n.<\/p>\n<p style=\"text-align: justify;\">C\u00e1c c\u00e2u l\u1ec7nh thao t\u00e1c chu\u1ea9n bao g\u1ed3m:<\/p>\n<ul style=\"list-style-type: disc; padding-left: 20px; margin-bottom: 25px; color: #1f2937;\">\n<li style=\"margin-bottom: 10px;\"><strong><code>crontab -e<\/code> (Edit):<\/strong> M\u1edf t\u1ec7p c\u1ea5u h\u00ecnh l\u1eadp l\u1ecbch c\u1ee7a user hi\u1ec7n t\u1ea1i b\u1eb1ng tr\u00ecnh so\u1ea1n th\u1ea3o v\u0103n b\u1ea3n m\u1eb7c \u0111\u1ecbnh (th\u01b0\u1eddng l\u00e0 Vi ho\u1eb7c Nano). \u0110\u00e2y l\u00e0 l\u1ec7nh b\u1ea1n s\u1ebd s\u1eed d\u1ee5ng nhi\u1ec1u nh\u1ea5t \u0111\u1ec3 th\u00eam, b\u1edbt ho\u1eb7c ch\u1ec9nh s\u1eeda c\u00e1c t\u00e1c v\u1ee5 h\u1eb9n gi\u1edd.<\/li>\n<li style=\"margin-bottom: 10px;\"><strong><code>crontab -l<\/code> (List):<\/strong> Hi\u1ec3n th\u1ecb to\u00e0n b\u1ed9 n\u1ed9i dung t\u1ec7p c\u1ea5u h\u00ecnh l\u1eadp l\u1ecbch c\u1ee7a b\u1ea1n ra m\u00e0n h\u00ecnh Terminal. L\u1ec7nh n\u00e0y h\u1eefu \u00edch khi b\u1ea1n ch\u1ec9 c\u1ea7n xem nhanh danh s\u00e1ch t\u00e1c v\u1ee5 m\u00e0 kh\u00f4ng c\u00f3 nhu c\u1ea7u ch\u1ec9nh s\u1eeda, tr\u00e1nh r\u1ee7i ro g\u00f5 nh\u1ea7m k\u00fd t\u1ef1.<\/li>\n<li style=\"margin-bottom: 10px;\"><strong><code>crontab -r<\/code> (Remove):<\/strong> X\u00f3a s\u1ea1ch to\u00e0n b\u1ed9 t\u1ec7p c\u1ea5u h\u00ecnh l\u1eadp l\u1ecbch c\u1ee7a ng\u01b0\u1eddi d\u00f9ng hi\u1ec7n t\u1ea1i. <strong>C\u1ea3nh b\u00e1o c\u1ef1c k\u1ef3 nguy hi\u1ec3m:<\/strong> L\u1ec7nh n\u00e0y s\u1ebd x\u00f3a b\u1ecf m\u1ecdi ti\u1ebfn tr\u00ecnh t\u1ef1 \u0111\u1ed9ng m\u00e0 kh\u00f4ng hi\u1ec3n th\u1ecb th\u00f4ng b\u00e1o x\u00e1c nh\u1eadn \u1edf m\u1ed9t s\u1ed1 h\u1ec7 \u0111i\u1ec1u h\u00e0nh c\u0169. Lu\u00f4n backup c\u1ea5u h\u00ecnh tr\u01b0\u1edbc khi ch\u1ea1y l\u1ec7nh n\u00e0y.<\/li>\n<\/ul>\n<div style=\"display: flex; flex-wrap: wrap; background-color: #fff; border: 1.5px solid #BFDBFE; box-shadow: 0 8px 20px rgba(37,99,235,0.08); border-radius: 12px; overflow: hidden; margin: 35px 0;\">\n<div style=\"flex: 1; min-width: 250px; background: linear-gradient(135deg, #1E3A8A 0%, #2563EB 100%); display: flex; align-items: center; justify-content: center; padding: 30px; text-align: center;\">\n<div>\n<p style=\"color: white; font-size: 34px; font-family: 'Be Vietnam Pro', sans-serif; font-weight: bold; margin: 0; line-height: 1.1;\">Thu\u00ea VPS<\/p>\n<p style=\"color: #dbeafe; font-size: 15px; font-weight: 600; margin-top: 12px;\">Quy\u1ec1n Root cao nh\u1ea5t<br \/>\nT\u1ef1 do ch\u1ea1y script ng\u1ea7m<br \/>\nL\u1eadp l\u1ecbch kh\u00f4ng gi\u1edbi h\u1ea1n<\/p>\n<\/div>\n<\/div>\n<div style=\"flex: 2; padding: 25px; min-width: 300px;\">\n<h3 style=\"font-family: 'Be Vietnam Pro', sans-serif; color: #1e3a8a; margin-top: 0; font-size: 20px;\">M\u00f4i tr\u01b0\u1eddng m\u00e1y ch\u1ee7 \u0111\u1ed9c l\u1eadp cho c\u00e1c t\u00e1c v\u1ee5 Cron li\u00ean t\u1ee5c<\/h3>\n<p style=\"text-align: justify; font-size: 15px; margin-bottom: 15px;\">C\u00e1c g\u00f3i hosting th\u00f4ng th\u01b0\u1eddng th\u01b0\u1eddng gi\u1edbi h\u1ea1n kh\u1eaft khe quy\u1ec1n truy c\u1eadp SSH v\u00e0 gi\u1edbi h\u1ea1n th\u1eddi gian ch\u1ea1y c\u1ee7a ti\u1ebfn tr\u00ecnh (Time Limit). Khi b\u1ea1n c\u1ea7n ch\u1ea1y c\u00e1c cron job linux n\u1eb7ng nh\u01b0 qu\u00e9t database quy m\u00f4 l\u1edbn, ch\u1ea1y bot t\u1ef1 \u0111\u1ed9ng g\u1eedi tin nh\u1eafn 24\/7 ho\u1eb7c \u0111\u1ed3ng b\u1ed9 API li\u00ean t\u1ee5c, vi\u1ec7c s\u1edf h\u1eefu m\u1ed9t VPS ri\u00eang bi\u1ec7t l\u00e0 l\u1ef1a ch\u1ecdn t\u1ed1i \u01b0u. V\u1edbi quy\u1ec1n root tuy\u1ec7t \u0111\u1ed1i, b\u1ea1n t\u1ef1 do c\u00e0i \u0111\u1eb7t th\u01b0 vi\u1ec7n, c\u1ea5u h\u00ecnh d\u1ecbch v\u1ee5 cron v\u00e0 ch\u1ea1y c\u00e1c ti\u1ebfn tr\u00ecnh ng\u1ea7m d\u00e0i h\u1ea1n m\u00e0 kh\u00f4ng lo b\u1ecb h\u1ec7 th\u1ed1ng t\u1ef1 \u0111\u1ed9ng t\u1eaft.<\/p>\n<p><a style=\"background: linear-gradient(90deg, #2563EB 0%, #1E3A8A 100%); color: white; padding: 12px 25px; text-decoration: none; font-weight: 600; border-radius: 8px; font-size: 15px; display: inline-block; box-shadow: 0 5px 15px rgba(37,99,235,0.3);\" href=\"https:\/\/interdata.vn\/thue-vps\/\" target=\"_blank\" rel=\"noopener\">Xem b\u1ea3ng gi\u00e1 VPS \u27f6<\/a><\/p>\n<\/div>\n<\/div>\n<h2 id=\"section4\" style=\"color: #1e3a8a; font-size: 24px; font-weight: bold; text-align: left; border-left: 5px solid #2563EB; padding-left: 15px; margin-top: 40px; margin-bottom: 20px; line-height: 1.4;\">4. C\u1ea5u h\u00ecnh crontab th\u1ef1c t\u1ebf: H\u1eb9n gi\u1edd backup v\u00e0 ch\u1ea1y script t\u1ef1 \u0111\u1ed9ng<\/h2>\n<p style=\"text-align: justify;\">\u0110\u1ec3 gi\u00fap b\u1ea1n d\u1ec5 d\u00e0ng h\u00ecnh dung c\u00e1ch \u00e1p d\u1ee5ng c\u00f4ng c\u1ee5 l\u1eadp l\u1ecbch v\u00e0o qu\u1ea3n tr\u1ecb server th\u1ef1c t\u1ebf, d\u01b0\u1edbi \u0111\u00e2y l\u00e0 ba k\u1ecbch b\u1ea3n th\u1ef1c chi\u1ebfn k\u00e8m c\u1ea5u h\u00ecnh chi ti\u1ebft m\u00e0 m\u1ecdi qu\u1ea3n tr\u1ecb vi\u00ean h\u1ec7 th\u1ed1ng th\u01b0\u1eddng xuy\u00ean s\u1eed d\u1ee5ng.<\/p>\n<h3 style=\"color: #1e3a8a; font-size: 20px; font-weight: bold; margin-top: 25px; margin-bottom: 15px;\">K\u1ecbch b\u1ea3n 1: H\u1eb9n gi\u1edd backup d\u1eef li\u1ec7u m\u00e3 ngu\u1ed3n v\u00e0 database l\u00fac 2 gi\u1edd s\u00e1ng h\u00e0ng ng\u00e0y<\/h3>\n<p style=\"text-align: justify;\">Th\u1eddi \u0111i\u1ec3m 2 gi\u1edd s\u00e1ng l\u00e0 l\u00fac l\u01b0u l\u01b0\u1ee3ng truy c\u1eadp website th\u1ea5p nh\u1ea5t, r\u1ea5t ph\u00f9 h\u1ee3p \u0111\u1ec3 ch\u1ea1y t\u00e1c v\u1ee5 n\u00e9n file v\u00e0 xu\u1ea5t c\u01a1 s\u1edf d\u1eef li\u1ec7u MySQL nh\u1eb1m tr\u00e1nh g\u00e2y \u1ea3nh h\u01b0\u1edfng \u0111\u1ebfn ng\u01b0\u1eddi d\u00f9ng th\u1ef1c t\u1ebf.<\/p>\n<p style=\"text-align: justify;\">Tr\u01b0\u1edbc ti\u00ean, b\u1ea1n t\u1ea1o m\u1ed9t file script t\u1ea1i \u0111\u01b0\u1eddng d\u1eabn <code>\/backup\/backup_site.sh<\/code> v\u1edbi n\u1ed9i dung m\u1eabu nh\u01b0 sau:<\/p>\n<div style=\"background-color: #1f2937; color: #e5e7eb; padding: 15px; border-radius: 8px; font-family: monospace; font-size: 14px; margin-bottom: 20px; overflow-x: auto;\">#!\/bin\/bash<br \/>\n# Th\u01b0 m\u1ee5c ch\u1ee9a file backup<br \/>\nBACKUP_DIR=&#8221;\/backup\/data&#8221;<br \/>\nDATE=$(date +%Y-%m-%d)<br \/>\n# Xu\u1ea5t d\u1eef li\u1ec7u Database MySQL<br \/>\nmysqldump -u root -p&#8217;mat_khau_database&#8217; db_name &gt; $BACKUP_DIR\/db_$DATE.sql<br \/>\n# N\u00e9n m\u00e3 ngu\u1ed3n website<br \/>\ntar -czf $BACKUP_DIR\/source_$DATE.tar.gz \/var\/www\/html<\/div>\n<p style=\"text-align: justify;\">Sau \u0111\u00f3, b\u1ea1n ch\u1ea1y l\u1ec7nh <code>chmod +x \/backup\/backup_site.sh<\/code> \u0111\u1ec3 c\u1ea5p quy\u1ec1n th\u1ef1c thi cho file. Ti\u1ebfp theo, m\u1edf tr\u00ecnh so\u1ea1n th\u1ea3o c\u1ea5u h\u00ecnh h\u1eb9n gi\u1edd b\u1eb1ng l\u1ec7nh <code>crontab -e<\/code> v\u00e0 th\u00eam d\u00f2ng c\u1ea5u h\u00ecnh sau xu\u1ed1ng cu\u1ed1i file:<\/p>\n<div style=\"background-color: #1f2937; color: #e5e7eb; padding: 15px; border-radius: 8px; font-family: monospace; font-size: 14px; margin-bottom: 25px; overflow-x: auto;\">0 2 * * * \/bin\/bash \/backup\/backup_site.sh &gt;&gt; \/backup\/backup.log 2&gt;&amp;1<\/div>\n<p style=\"text-align: justify;\">D\u00f2ng l\u1ec7nh tr\u00ean quy \u0111\u1ecbnh t\u00e1c v\u1ee5 t\u1ef1 \u0111\u1ed9ng ch\u1ea1y \u0111\u00fang v\u00e0o ph\u00fat 0, gi\u1edd th\u1ee9 2 h\u00e0ng ng\u00e0y. To\u00e0n b\u1ed9 th\u00f4ng tin log v\u00e0 l\u1ed7i ph\u00e1t sinh (n\u1ebfu c\u00f3) s\u1ebd \u0111\u01b0\u1ee3c chuy\u1ec3n h\u01b0\u1edbng (redirect) ghi v\u00e0o file <code>backup.log<\/code> \u0111\u1ec3 b\u1ea1n ti\u1ec7n theo d\u00f5i sau n\u00e0y.<\/p>\n<h3 style=\"color: #1e3a8a; font-size: 20px; font-weight: bold; margin-top: 25px; margin-bottom: 15px;\">K\u1ecbch b\u1ea3n 2: Treo c\u00f4ng c\u1ee5 t\u1ef1 \u0111\u1ed9ng, kh\u1edfi \u0111\u1ed9ng l\u1ea1i script Python ngay sau khi reboot m\u00e1y ch\u1ee7<\/h3>\n<p style=\"text-align: justify;\">N\u1ebfu b\u1ea1n \u0111ang v\u1eadn h\u00e0nh m\u1ed9t chatbot (Telegram, Discord) ho\u1eb7c m\u1ed9t c\u00f4ng c\u1ee5 c\u00e0o d\u1eef li\u1ec7u vi\u1ebft b\u1eb1ng Python, b\u1ea1n c\u1ea7n \u0111\u1ea3m b\u1ea3o ch\u01b0\u01a1ng tr\u00ecnh ph\u1ea3i t\u1ef1 \u0111\u1ed9ng ch\u1ea1y l\u1ea1i ngay khi h\u1ec7 th\u1ed1ng kh\u1edfi \u0111\u1ed9ng l\u1ea1i (reboot) m\u00e0 kh\u00f4ng c\u1ea7n b\u1ea1n ph\u1ea3i can thi\u1ec7p th\u1ee7 c\u00f4ng.<\/p>\n<p style=\"text-align: justify;\">M\u1edf tr\u00ecnh so\u1ea1n th\u1ea3o l\u1eadp l\u1ecbch v\u00e0 th\u00eam c\u1ea5u h\u00ecnh s\u1eed d\u1ee5ng c\u00fa ph\u00e1p \u0111\u1eb7c bi\u1ec7t:<\/p>\n<div style=\"background-color: #1f2937; color: #e5e7eb; padding: 15px; border-radius: 8px; font-family: monospace; font-size: 14px; margin-bottom: 25px; overflow-x: auto;\">@reboot \/usr\/bin\/python3 \/home\/user\/my_bot.py &gt;&gt; \/home\/user\/bot_error.log 2&gt;&amp;1<\/div>\n<p style=\"text-align: justify;\"><strong>L\u01b0u \u00fd k\u1ef9 thu\u1eadt quan tr\u1ecdng:<\/strong> Khi l\u1eadp l\u1ecbch kh\u1edfi \u0111\u1ed9ng, b\u1ea1n b\u1eaft bu\u1ed9c ph\u1ea3i d\u00f9ng \u0111\u01b0\u1eddng d\u1eabn tuy\u1ec7t \u0111\u1ed1i d\u1eabn \u0111\u1ebfn tr\u00ecnh th\u1ef1c thi Python (v\u00ed d\u1ee5: <code>\/usr\/bin\/python3<\/code> thay v\u00ec ch\u1ec9 g\u00f5 <code>python3<\/code>) v\u00ec l\u00fac h\u1ec7 th\u1ed1ng v\u1eeba boot, bi\u1ebfn m\u00f4i tr\u01b0\u1eddng PATH c\u00f3 th\u1ec3 ch\u01b0a \u0111\u01b0\u1ee3c t\u1ea3i \u0111\u1ea7y \u0111\u1ee7.<\/p>\n<h3 style=\"color: #1e3a8a; font-size: 20px; font-weight: bold; margin-top: 25px; margin-bottom: 15px;\">K\u1ecbch b\u1ea3n 3: T\u1ef1 \u0111\u1ed9ng d\u1ecdn d\u1eb9p dung l\u01b0\u1ee3ng l\u00e0m r\u1ed7ng file log h\u1ec7 th\u1ed1ng v\u00e0o l\u00fac 0h ng\u00e0y Ch\u1ee7 Nh\u1eadt h\u00e0ng tu\u1ea7n<\/h3>\n<p style=\"text-align: justify;\">C\u00e1c file nh\u1eadt k\u00fd ho\u1ea1t \u0111\u1ed9ng (log files) c\u1ee7a c\u00e1c \u1ee9ng d\u1ee5ng ch\u1ea1y li\u00ean t\u1ee5c s\u1ebd ph\u00ecnh to theo th\u1eddi gian, d\u1ec5 g\u00e2y ra t\u00ecnh tr\u1ea1ng \u0111\u1ea7y \u1ed5 c\u1ee9ng m\u00e1y ch\u1ee7 d\u1eabn \u0111\u1ebfn s\u1eadp h\u1ec7 th\u1ed1ng d\u1ecbch v\u1ee5.<\/p>\n<p style=\"text-align: justify;\">B\u1ea1n c\u1ea5u h\u00ecnh d\u00f2ng l\u1ec7nh sau \u0111\u1ec3 t\u1ef1 \u0111\u1ed9ng l\u00e0m s\u1ea1ch file log \u0111\u1ecbnh k\u1ef3 h\u00e0ng tu\u1ea7n:<\/p>\n<div style=\"background-color: #1f2937; color: #e5e7eb; padding: 15px; border-radius: 8px; font-family: monospace; font-size: 14px; margin-bottom: 25px; overflow-x: auto;\">0 0 * * 0 &gt; \/var\/log\/my_app.log<\/div>\n<p style=\"text-align: justify;\">C\u1ea5u ph\u00e1p tr\u00ean quy \u0111\u1ecbnh: V\u00e0o ph\u00fat 0, gi\u1edd 0 (n\u1eeda \u0111\u00eam) c\u1ee7a ng\u00e0y th\u1ee9 0 trong tu\u1ea7n (Ch\u1ee7 Nh\u1eadt), h\u1ec7 th\u1ed1ng th\u1ef1c hi\u1ec7n l\u1ec7nh ghi \u0111\u00e8 r\u1ed7ng v\u00e0o file log, gi\u00fap gi\u1ea3i ph\u00f3ng dung l\u01b0\u1ee3ng \u1ed5 c\u1ee9ng t\u1ee9c th\u00ec m\u00e0 kh\u00f4ng c\u1ea7n ph\u1ea3i x\u00f3a hay t\u1ea1o m\u1edbi file.<\/p>\n<h2 id=\"section5\" style=\"color: #1e3a8a; font-size: 24px; font-weight: bold; text-align: left; border-left: 5px solid #2563EB; padding-left: 15px; margin-top: 40px; margin-bottom: 20px; line-height: 1.4;\">5. Kh\u1eafc ph\u1ee5c l\u1ed7i t\u1ea1i sao cron job linux kh\u00f4ng t\u1ef1 ch\u1ea1y<\/h2>\n<p style=\"text-align: justify;\">S\u1ef1 c\u1ed1 h\u1eb9n gi\u1edd c\u1ea5u h\u00ecnh xong nh\u01b0ng kh\u00f4ng t\u1ef1 \u0111\u1ed9ng k\u00edch ho\u1ea1t l\u00e0 l\u1ed7i c\u1ef1c k\u1ef3 ph\u1ed5 bi\u1ebfn \u0111\u1ed1i v\u1edbi nh\u1eefng ng\u01b0\u1eddi m\u1edbi ti\u1ebfp c\u1eadn h\u1ec7 \u0111i\u1ec1u h\u00e0nh Linux. D\u01b0\u1edbi g\u00f3c \u0111\u1ed9 c\u1ee7a m\u1ed9t k\u1ef9 s\u01b0 h\u1ec7 th\u1ed1ng, d\u01b0\u1edbi \u0111\u00e2y l\u00e0 quy tr\u00ecnh 4 b\u01b0\u1edbc \u0111\u1ec3 b\u1ea1n t\u1ef1 ch\u1ea9n \u0111o\u00e1n v\u00e0 kh\u1eafc ph\u1ee5c nhanh l\u1ed7i n\u00e0y.<\/p>\n<h3 style=\"color: #1e3a8a; font-size: 20px; font-weight: bold; margin-top: 25px; margin-bottom: 15px;\">B\u01b0\u1edbc 1: Ki\u1ec3m tra tr\u1ea1ng th\u00e1i ho\u1ea1t \u0111\u1ed9ng c\u1ee7a Cron Daemon<\/h3>\n<p style=\"text-align: justify;\">Tr\u01b0\u1edbc ti\u00ean, b\u1ea1n ph\u1ea3i \u0111\u1ea3m b\u1ea3o d\u1ecbch v\u1ee5 cron daemon v\u1eabn \u0111ang ch\u1ea1y ng\u1ea7m tr\u00ean h\u1ec7 \u0111i\u1ec1u h\u00e0nh. Ch\u1ea1y c\u00e2u l\u1ec7nh ki\u1ec3m tra sau:<\/p>\n<div style=\"background-color: #1f2937; color: #e5e7eb; padding: 15px; border-radius: 8px; font-family: monospace; font-size: 14px; margin-bottom: 20px; overflow-x: auto;\"># \u0110\u1ed1i v\u1edbi h\u1ec7 \u0111i\u1ec1u h\u00e0nh Ubuntu\/Debian<br \/>\nsystemctl status cron<br \/>\n# \u0110\u1ed1i v\u1edbi h\u1ec7 \u0111i\u1ec1u h\u00e0nh CentOS\/RHEL\/Rocky Linux<br \/>\nsystemctl status crond<\/div>\n<p style=\"text-align: justify;\">N\u1ebfu tr\u1ea1ng th\u00e1i hi\u1ec3n th\u1ecb l\u00e0 <code>inactive (dead)<\/code>, b\u1ea1n h\u00e3y kh\u1edfi ch\u1ea1y d\u1ecbch v\u1ee5 v\u00e0 k\u00edch ho\u1ea1t t\u1ef1 \u0111\u1ed9ng ch\u1ea1y c\u00f9ng h\u1ec7 th\u1ed1ng b\u1eb1ng l\u1ec7nh:<\/p>\n<div style=\"background-color: #1f2937; color: #e5e7eb; padding: 15px; border-radius: 8px; font-family: monospace; font-size: 14px; margin-bottom: 20px; overflow-x: auto;\">systemctl enable &#8211;now cron # Ho\u1eb7c crond<\/div>\n<h3 style=\"color: #1e3a8a; font-size: 20px; font-weight: bold; margin-top: 25px; margin-bottom: 15px;\">B\u01b0\u1edbc 2: S\u1eeda l\u1ed7i s\u1eed d\u1ee5ng \u0111\u01b0\u1eddng d\u1eabn t\u01b0\u01a1ng \u0111\u1ed1i (Relative Path)<\/h3>\n<p style=\"text-align: justify;\">L\u1ed7i ph\u1ed5 bi\u1ebfn nh\u1ea5t khi\u1ebfn cron job linux th\u1ea5t b\u1ea1i l\u00e0 do l\u1eadp tr\u00ecnh vi\u00ean khai b\u00e1o l\u1ec7nh d\u1ea1ng t\u01b0\u01a1ng \u0111\u1ed1i. Cron v\u1eadn h\u00e0nh tr\u00ean m\u1ed9t m\u00f4i tr\u01b0\u1eddng shell t\u1ed1i gi\u1ea3n, n\u00f3 kh\u00f4ng bi\u1ebft \u0111\u01b0\u1eddng d\u1eabn c\u1ee7a <code>node<\/code>, <code>python3<\/code> hay c\u00e1c file n\u1eb1m \u1edf \u0111\u00e2u n\u1ebfu b\u1ea1n kh\u00f4ng ch\u1ec9 \u0111\u1ecbnh r\u00f5 r\u00e0ng.<\/p>\n<p style=\"text-align: justify;\"><strong>C\u00e1ch kh\u1eafc ph\u1ee5c:<\/strong> Lu\u00f4n lu\u00f4n s\u1eed d\u1ee5ng \u0111\u01b0\u1eddng d\u1eabn tuy\u1ec7t \u0111\u1ed1i. \u0110\u1ec3 t\u00ecm \u0111\u01b0\u1eddng d\u1eabn tuy\u1ec7t \u0111\u1ed1i c\u1ee7a m\u1ed9t tr\u00ecnh th\u1ef1c thi tr\u00ean m\u00e1y ch\u1ee7, b\u1ea1n ch\u1ea1y l\u1ec7nh <code>which<\/code>, v\u00ed d\u1ee5:<\/p>\n<div style=\"background-color: #1f2937; color: #e5e7eb; padding: 15px; border-radius: 8px; font-family: monospace; font-size: 14px; margin-bottom: 20px; overflow-x: auto;\">which node<br \/>\n# K\u1ebft qu\u1ea3 tr\u1ea3 v\u1ec1 th\u01b0\u1eddng l\u00e0: \/usr\/local\/bin\/node<\/div>\n<p style=\"text-align: justify;\">Do \u0111\u00f3, trong c\u1ea5u h\u00ecnh h\u1eb9n gi\u1edd, thay v\u00ec vi\u1ebft <code>node \/app\/index.js<\/code>, b\u1ea1n b\u1eaft bu\u1ed9c ph\u1ea3i vi\u1ebft <code>\/usr\/local\/bin\/node \/home\/user\/app\/index.js<\/code>.<\/p>\n<h3 style=\"color: #1e3a8a; font-size: 20px; font-weight: bold; margin-top: 25px; margin-bottom: 15px;\">B\u01b0\u1edbc 3: C\u1ea5p quy\u1ec1n th\u1ef1c thi cho file Script<\/h3>\n<p style=\"text-align: justify;\">N\u1ebfu b\u1ea1n h\u1eb9n gi\u1edd g\u1ecdi m\u1ed9t file shell script (\u0111u\u00f4i .sh) ho\u1eb7c file Python nh\u01b0ng qu\u00ean ch\u01b0a c\u1ea5p quy\u1ec1n th\u1ef1c thi cho t\u1ec7p tin \u0111\u00f3, cron daemon s\u1ebd ghi nh\u1eadn l\u1ed7i <em>Permission denied<\/em> trong log v\u00e0 b\u1ecf qua t\u00e1c v\u1ee5.<\/p>\n<p style=\"text-align: justify;\">B\u1ea1n gi\u1ea3i quy\u1ebft \u0111\u01a1n gi\u1ea3n b\u1eb1ng c\u00e1ch c\u1ea5p quy\u1ec1n th\u1ef1c thi tr\u1ef1c ti\u1ebfp b\u1eb1ng l\u1ec7nh:<\/p>\n<div style=\"background-color: #1f2937; color: #e5e7eb; padding: 15px; border-radius: 8px; font-family: monospace; font-size: 14px; margin-bottom: 20px; overflow-x: auto;\">chmod +x \/\u0111\u01b0\u1eddng_d\u1eabn_tuy\u1ec7t_\u0111\u1ed1i\/\u0111\u1ebfn\/file_script.sh<\/div>\n<h3 style=\"color: #1e3a8a; font-size: 20px; font-weight: bold; margin-top: 25px; margin-bottom: 15px;\">B\u01b0\u1edbc 4: S\u1eeda l\u1ed7i thi\u1ebfu k\u00fd t\u1ef1 d\u00f2ng tr\u1ed1ng cu\u1ed1i file (Newline)<\/h3>\n<p style=\"text-align: justify;\">Nhi\u1ec1u phi\u00ean b\u1ea3n cron c\u0169 h\u01a1n y\u00eau c\u1ea7u t\u1ec7p c\u1ea5u h\u00ecnh l\u1eadp l\u1ecbch ph\u1ea3i k\u1ebft th\u00fac b\u1eb1ng m\u1ed9t d\u00f2ng tr\u1ed1ng ho\u00e0n to\u00e0n (m\u1ed9t d\u1ea5u xu\u1ed1ng d\u00f2ng \u1edf cu\u1ed1i file). N\u1ebfu b\u1ea1n vi\u1ebft d\u00f2ng c\u1ea5u h\u00ecnh h\u1eb9n gi\u1edd s\u00e1t kh\u00edt v\u00e0o d\u00f2ng cu\u1ed1i c\u00f9ng v\u00e0 kh\u00f4ng nh\u1ea5n ph\u00edm Enter \u0111\u1ec3 t\u1ea1o d\u00f2ng tr\u1ed1ng m\u1edbi, cron daemon s\u1ebd b\u1ecf qua v\u00e0 kh\u00f4ng bao gi\u1edd th\u1ef1c thi d\u00f2ng c\u1ea5u h\u00ecnh cu\u1ed1i \u0111\u00f3.<\/p>\n<div style=\"display: flex; flex-wrap: wrap; background-color: #fff; border: 1.5px solid #BFDBFE; box-shadow: 0 8px 20px rgba(37,99,235,0.08); border-radius: 12px; overflow: hidden; margin: 35px 0;\">\n<div style=\"flex: 1; min-width: 250px; background: linear-gradient(135deg, #1E3A8A 0%, #2563EB 100%); display: flex; align-items: center; justify-content: center; padding: 30px; text-align: center;\">\n<div>\n<p style=\"color: white; font-size: 34px; font-family: 'Be Vietnam Pro', sans-serif; font-weight: bold; margin: 0; line-height: 1.1;\">Cloud Server<\/p>\n<p style=\"color: #dbeafe; font-size: 15px; font-weight: 600; margin-top: 12px;\">H\u1ea1 t\u1ea7ng Enterprise<br \/>\nX\u1eed l\u00fd \u0111a lu\u1ed3ng m\u1ea1nh m\u1ebd<br \/>\nBackup t\u1ef1 \u0111\u1ed9ng t\u00edch h\u1ee3p<\/p>\n<\/div>\n<\/div>\n<div style=\"flex: 2; padding: 25px; min-width: 300px;\">\n<h3 style=\"font-family: 'Be Vietnam Pro', sans-serif; color: #1e3a8a; margin-top: 0; font-size: 20px;\">N\u1ec1n t\u1ea3ng v\u1eefng ch\u1eafc cho c\u00e1c h\u1ec7 th\u1ed1ng \u0111\u1ed3ng b\u1ed9 d\u1eef li\u1ec7u l\u1edbn<\/h3>\n<p style=\"text-align: justify; font-size: 15px; margin-bottom: 15px;\">Khi doanh nghi\u1ec7p v\u1eadn h\u00e0nh c\u00e1c t\u00e1c v\u1ee5 x\u1eed l\u00fd s\u1ed1 li\u1ec7u l\u1edbn, \u0111\u1ed3ng b\u1ed9 h\u00f3a kho b\u00e3i ERP ho\u1eb7c ph\u00e2n t\u00edch log h\u1ec7 th\u1ed1ng \u0111\u1ecbnh k\u1ef3, c\u00e1c ti\u1ebfn tr\u00ecnh n\u00e0y th\u01b0\u1eddng ti\u00eau t\u1ed1n l\u01b0\u1ee3ng CPU v\u00e0 RAM \u0111\u1ed9t bi\u1ebfn khi k\u00edch ho\u1ea1t. Vi\u1ec7c ch\u1ea1y c\u00e1c cron job n\u1eb7ng n\u00e0y tr\u00ean m\u1ed9t m\u00f4i tr\u01b0\u1eddng m\u00e1y ch\u1ee7 y\u1ebfu s\u1ebd d\u1ec5 d\u00e0ng g\u00e2y ngh\u1ebdn c\u1ed5 chai, l\u00e0m \u1ea3nh h\u01b0\u1edfng \u0111\u1ebfn hi\u1ec7u n\u0103ng ho\u1ea1t \u0111\u1ed9ng c\u1ee7a website ch\u00ednh. Cloud Server c\u1ee7a InterData cung c\u1ea5p t\u00e0i nguy\u00ean ph\u1ea7n c\u1ee9ng m\u1ea1nh m\u1ebd, s\u1eed d\u1ee5ng CPU th\u1ebf h\u1ec7 m\u1edbi gi\u00fap c\u00e1c t\u00e1c v\u1ee5 t\u1ef1 \u0111\u1ed9ng h\u00f3a x\u1eed l\u00fd nhanh ch\u00f3ng m\u00e0 kh\u00f4ng g\u00e2y \u1ea3nh h\u01b0\u1edfng \u0111\u1ebfn tr\u1ea3i nghi\u1ec7m c\u1ee7a kh\u00e1ch truy c\u1eadp.<\/p>\n<p><a style=\"background: linear-gradient(90deg, #2563EB 0%, #1E3A8A 100%); color: white; padding: 12px 25px; text-decoration: none; font-weight: 600; border-radius: 8px; font-size: 15px; display: inline-block; box-shadow: 0 5px 15px rgba(37,99,235,0.3);\" href=\"https:\/\/interdata.vn\/cloud-server\/\" target=\"_blank\" rel=\"noopener\">Xem gi\u1ea3i ph\u00e1p Cloud Server \u27f6<\/a><\/p>\n<\/div>\n<\/div>\n<h2 id=\"section6\" style=\"color: #1e3a8a; font-size: 24px; font-weight: bold; text-align: left; border-left: 5px solid #2563EB; padding-left: 15px; margin-top: 40px; margin-bottom: 20px; line-height: 1.4;\">6. C\u00e2u h\u1ecfi th\u01b0\u1eddng g\u1eb7p khi c\u1ea5u h\u00ecnh crontab h\u1eb9n gi\u1edd Linux<\/h2>\n<h3 style=\"color: #1e3a8a; font-size: 18px; font-weight: bold; margin-top: 20px; margin-bottom: 10px;\">L\u00e0m th\u1ebf n\u00e0o \u0111\u1ec3 ki\u1ec3m tra l\u1ecbch s\u1eed ho\u1ea1t \u0111\u1ed9ng c\u1ee7a c\u00e1c cron job?<\/h3>\n<p style=\"text-align: justify; margin-bottom: 20px;\">B\u1ea1n c\u00f3 th\u1ec3 ki\u1ec3m tra nh\u1eadt k\u00fd ch\u1ea1y c\u1ee7a h\u1ec7 th\u1ed1ng th\u00f4ng qua file syslog ho\u1eb7c cron log c\u1ee7a h\u1ec7 \u0111i\u1ec1u h\u00e0nh. Tr\u00ean h\u1ec7 th\u1ed1ng Ubuntu\/Debian, b\u1ea1n ch\u1ea1y l\u1ec7nh <code>grep CRON \/var\/log\/syslog<\/code>. Tr\u00ean CentOS\/RHEL, b\u1ea1n ki\u1ec3m tra tr\u1ef1c ti\u1ebfp qua file <code>tail -f \/var\/log\/cron<\/code> \u0111\u1ec3 bi\u1ebft ch\u00ednh x\u00e1c t\u00e1c v\u1ee5 n\u00e0o \u0111\u00e3 \u0111\u01b0\u1ee3c k\u00edch ho\u1ea1t.<\/p>\n<h3 style=\"color: #1e3a8a; font-size: 18px; font-weight: bold; margin-top: 20px; margin-bottom: 10px;\">C\u00f3 th\u1ec3 h\u1eb9n gi\u1edd ch\u1ea1y m\u1ed9t t\u00e1c v\u1ee5 l\u1eb7p l\u1ea1i theo \u0111\u01a1n v\u1ecb gi\u00e2y kh\u00f4ng?<\/h3>\n<p style=\"text-align: justify; margin-bottom: 20px;\">Kh\u00f4ng. C\u00fa ph\u00e1p c\u01a1 b\u1ea3n c\u1ee7a c\u00f4ng c\u1ee5 l\u1eadp l\u1ecbch Linux ch\u1ec9 h\u1ed7 tr\u1ee3 \u0111\u01a1n v\u1ecb th\u1eddi gian nh\u1ecf nh\u1ea5t l\u00e0 Ph\u00fat (Minute). N\u1ebfu b\u1ea1n b\u1eaft bu\u1ed9c ph\u1ea3i c\u1ea5u h\u00ecnh ch\u1ea1y m\u1ed9t script l\u1eb7p l\u1ea1i m\u1ed7i 5 gi\u00e2y, gi\u1ea3i ph\u00e1p l\u00e0 vi\u1ebft m\u1ed9t shell script c\u00f3 ch\u1ee9a v\u00f2ng l\u1eb7p v\u00f4 h\u1ea1n k\u1ebft h\u1ee3p l\u1ec7nh t\u1ea1m d\u1eebng <code>sleep 5<\/code> \u0111\u1ec3 treo ti\u1ebfn tr\u00ecnh ch\u1ea1y li\u00ean t\u1ee5c.<\/p>\n<h3 style=\"color: #1e3a8a; font-size: 18px; font-weight: bold; margin-top: 20px; margin-bottom: 10px;\">M\u00fai gi\u1edd ho\u1ea1t \u0111\u1ed9ng c\u1ee7a crontab d\u1ef1a theo m\u00fai gi\u1edd n\u00e0o?<\/h3>\n<p style=\"text-align: justify; margin-bottom: 20px;\">T\u1ea5t c\u1ea3 c\u00e1c t\u00e1c v\u1ee5 l\u1eadp l\u1ecbch \u0111\u1ec1u ho\u1ea1t \u0111\u1ed9ng d\u1ef1a tr\u00ean m\u00fai gi\u1edd (Timezone) hi\u1ec7n t\u1ea1i c\u1ee7a h\u1ec7 \u0111i\u1ec1u h\u00e0nh m\u00e1y ch\u1ee7. N\u1ebfu m\u00e1y ch\u1ee7 c\u1ee7a b\u1ea1n \u0111\u1eb7t t\u1ea1i n\u01b0\u1edbc ngo\u00e0i s\u1eed d\u1ee5ng m\u00fai gi\u1edd UTC, b\u1ea1n ph\u1ea3i t\u1ef1 \u0111\u1ed9ng t\u00ednh to\u00e1n tr\u1eeb \u0111i 7 ti\u1ebfng \u0111\u1ec3 kh\u1edbp v\u1edbi gi\u1edd Vi\u1ec7t Nam (ICT). B\u1ea1n ki\u1ec3m tra m\u00fai gi\u1edd hi\u1ec7n t\u1ea1i b\u1eb1ng l\u1ec7nh <code>timedatectl<\/code>.<\/p>\n<h3 style=\"color: #1e3a8a; font-size: 18px; font-weight: bold; margin-top: 20px; margin-bottom: 10px;\">L\u00e0m th\u1ebf n\u00e0o \u0111\u1ec3 sao l\u01b0u d\u1ef1 ph\u00f2ng to\u00e0n b\u1ed9 c\u1ea5u h\u00ecnh l\u1eadp l\u1ecbch?<\/h3>\n<p style=\"text-align: justify; margin-bottom: 20px;\">\u0110\u1ec3 tr\u00e1nh r\u1ee7i ro g\u00f5 nh\u1ea7m l\u1ec7nh x\u00f3a s\u1ea1ch d\u1eef li\u1ec7u l\u1eadp l\u1ecbch, b\u1ea1n n\u00ean xu\u1ea5t c\u1ea5u h\u00ecnh hi\u1ec7n t\u1ea1i ra m\u1ed9t file text \u0111\u1ec3 d\u1ef1 ph\u00f2ng. B\u1ea1n th\u1ef1c hi\u1ec7n nhanh b\u1eb1ng c\u00e2u l\u1ec7nh: <code>crontab -l &gt; my_cron_backup.txt<\/code>. Khi c\u1ea7n kh\u00f4i ph\u1ee5c l\u1ea1i c\u1ea5u h\u00ecnh, b\u1ea1n ch\u1ec9 c\u1ea7n n\u1ea1p l\u1ea1i file b\u1eb1ng l\u1ec7nh: <code>crontab my_cron_backup.txt<\/code>.<\/p>\n<h3 style=\"color: #1e3a8a; font-size: 18px; font-weight: bold; margin-top: 20px; margin-bottom: 10px;\">C\u00f3 c\u00e1ch n\u00e0o \u0111\u1ec3 t\u1eaft ch\u1ebf \u0111\u1ed9 t\u1ef1 \u0111\u1ed9ng g\u1eedi email th\u00f4ng b\u00e1o sau m\u1ed7i l\u1ea7n ch\u1ea1y kh\u00f4ng?<\/h3>\n<p style=\"text-align: justify; margin-bottom: 20px;\">Theo m\u1eb7c \u0111\u1ecbnh, m\u1ed7i khi th\u1ef1c thi xong m\u1ed9t cron job, h\u1ec7 th\u1ed1ng Linux s\u1ebd c\u1ed1 g\u1eafng g\u1eedi m\u1ed9t email th\u00f4ng b\u00e1o k\u1ebft qu\u1ea3 ch\u1ea1y \u0111\u1ebfn t\u00e0i kho\u1ea3n c\u1ee5c b\u1ed9 c\u1ee7a user. \u0110\u1ec3 t\u1eaft t\u00ednh n\u0103ng n\u00e0y, b\u1ea1n ch\u00e8n d\u00f2ng c\u1ea5u h\u00ecnh <code>MAILTO=\"\"<\/code> l\u00ean tr\u00ean c\u00f9ng c\u1ee7a t\u1ec7p c\u1ea5u h\u00ecnh l\u1eadp l\u1ecbch, ho\u1eb7c chuy\u1ec3n h\u01b0\u1edbng \u0111\u1ea7u ra c\u1ee7a l\u1ec7nh b\u1eb1ng c\u00fa ph\u00e1p <code>&gt;\/dev\/null 2&gt;&amp;1<\/code>.<\/p>\n<div style=\"border-top: 2px dashed #BFDBFE; margin-top: 50px; padding-top: 30px;\">\n<h3 style=\"font-family: 'Be Vietnam Pro', sans-serif; color: #1e3a8a; font-size: 22px; font-weight: bold; margin-bottom: 15px;\">T\u1ed5ng k\u1ebft v\u00e0 \u0111\u1ecbnh h\u01b0\u1edbng t\u1ef1 \u0111\u1ed9ng h\u00f3a h\u1ec7 th\u1ed1ng<\/h3>\n<p style=\"text-align: justify;\">L\u00e0m ch\u1ee7 c\u00f4ng c\u1ee5 l\u1eadp l\u1ecbch t\u1ef1 \u0111\u1ed9ng <strong>crontab<\/strong> l\u00e0 m\u1ed9t b\u01b0\u1edbc ti\u1ebfn quan tr\u1ecdng gi\u00fap b\u1ea1n t\u1ed1i \u01b0u h\u00f3a c\u00f4ng t\u00e1c qu\u1ea3n tr\u1ecb v\u00e0 chuy\u1ec3n \u0111\u1ed5i m\u00f4 h\u00ecnh v\u1eadn h\u00e0nh m\u00e1y ch\u1ee7 sang tr\u1ea1ng th\u00e1i t\u1ef1 \u0111\u1ed9ng h\u00f3a ho\u00e0n to\u00e0n. Vi\u1ec7c hi\u1ec3u r\u00f5 c\u00fa ph\u00e1p thi\u1ebft l\u1eadp, n\u1eafm v\u1eefng c\u00e1c l\u1ec7nh \u0111i\u1ec1u khi\u1ec3n c\u01a1 b\u1ea3n v\u00e0 bi\u1ebft c\u00e1ch ch\u1ea9n \u0111o\u00e1n l\u1ed7i \u0111\u01b0\u1eddng d\u1eabn h\u1ec7 th\u1ed1ng s\u1ebd gi\u00fap b\u1ea1n b\u1ea3o v\u1ec7 to\u00e0n v\u1eb9n d\u1eef li\u1ec7u th\u00f4ng qua c\u00e1c script backup t\u1ef1 \u0111\u1ed9ng b\u1ec1n v\u1eefng. \u0110\u1ec3 khai th\u00e1c t\u1ed1i \u0111a s\u1ee9c m\u1ea1nh c\u1ee7a c\u00e1c k\u1ecbch b\u1ea3n t\u1ef1 \u0111\u1ed9ng h\u00f3a d\u00e0i h\u1ea1n n\u00e0y, vi\u1ec7c s\u1edf h\u1eefu m\u1ed9t h\u1ea1 t\u1ea7ng m\u00e1y ch\u1ee7 \u1ed5n \u0111\u1ecbnh, hi\u1ec7u n\u0103ng cao l\u00e0 \u0111i\u1ec1u ki\u1ec7n ti\u00ean quy\u1ebft \u0111\u1ea3m b\u1ea3o h\u1ec7 th\u1ed1ng lu\u00f4n s\u1eb5n s\u00e0ng x\u1eed l\u00fd m\u1ecdi t\u00e1c v\u1ee5.<\/p>\n<div style=\"background: #EFF6FF; border: 1px solid #2563EB; padding: 30px; margin-top: 25px; border-radius: 12px; text-align: center;\">\n<p style=\"font-family: 'Be Vietnam Pro', sans-serif; font-size: 20px; font-weight: bold; color: #1e3a8a; margin-top: 0;\">Kh\u1edfi t\u1ea1o h\u1ea1 t\u1ea7ng t\u1ef1 \u0111\u1ed9ng h\u00f3a cho d\u1ef1 \u00e1n c\u1ee7a b\u1ea1n<\/p>\n<p style=\"font-size: 15px; margin-bottom: 20px; color: #4b5563;\">To\u00e0n quy\u1ec1n root, tho\u1ea3i m\u00e1i l\u1eadp l\u1ecbch t\u00e1c v\u1ee5 ng\u1ea7m v\u00e0 treo script li\u00ean t\u1ee5c 24\/7 kh\u00f4ng gi\u00e1n \u0111o\u1ea1n.<\/p>\n<p><a style=\"background: #2563EB; color: #ffffff; padding: 12px 30px; text-decoration: none; font-weight: 600; border-radius: 6px; display: inline-block;\" href=\"https:\/\/interdata.vn\/thue-vps\/\" target=\"_blank\" rel=\"noopener\">Tri\u1ec3n khai VPS Linux ngay \u27f6<\/a><\/p>\n<\/div>\n<\/div>\n<p style=\"text-align: justify; font-size: 13px; font-style: italic; color: #6b7280; margin-top: 30px; border-top: 1px solid #E5E7EB; padding-top: 15px;\"><span style=\"font-size: 100%;\"><em>L\u01b0u \u00fd k\u1ef9 thu\u1eadt: N\u1ed9i dung h\u01b0\u1edbng d\u1eabn c\u1ea5u h\u00ecnh, c\u00fa ph\u00e1p th\u1eddi gian v\u00e0 t\u1eadp l\u1ec7nh shell script trong b\u00e0i vi\u1ebft n\u00e0y \u0111\u01b0\u1ee3c x\u00e2y d\u1ef1ng d\u1ef1a tr\u00ean m\u00f4i tr\u01b0\u1eddng h\u1ec7 \u0111i\u1ec1u h\u00e0nh Linux ti\u00eau chu\u1ea9n. \u0110\u01b0\u1eddng d\u1eabn c\u1ee7a c\u00e1c tr\u00ecnh th\u00f4ng d\u1ecbch, c\u00e1ch qu\u1ea3n l\u00fd d\u1ecbch v\u1ee5 h\u1ec7 th\u1ed1ng (cron vs crond) c\u00f3 th\u1ec3 thay \u0111\u1ed5i nh\u1eb9 t\u00f9y thu\u1ed9c v\u00e0o phi\u00ean b\u1ea3n nh\u00e2n kernel v\u00e0 b\u1ea3n ph\u00e2n ph\u1ed1i h\u1ec7 \u0111i\u1ec1u h\u00e0nh (Ubuntu, Debian, CentOS, Rocky Linux) m\u00e0 m\u00e1y ch\u1ee7 c\u1ee7a b\u1ea1n \u0111ang s\u1eed d\u1ee5ng. Ng\u01b0\u1eddi qu\u1ea3n tr\u1ecb n\u00ean th\u1ef1c hi\u1ec7n ki\u1ec3m th\u1eed k\u1ef9 l\u01b0\u1ee1ng k\u1ecbch b\u1ea3n t\u1ef1 \u0111\u1ed9ng h\u00f3a tr\u00ean m\u00f4i tr\u01b0\u1eddng test tr\u01b0\u1edbc khi \u0111\u01b0a v\u00e0o v\u1eadn h\u00e0nh th\u1ef1c t\u1ebf tr\u00ean h\u1ec7 th\u1ed1ng production.<\/em><\/span><\/p>\n\n\n<style>\n.interdata-plan-carousel,.interdata-plan-carousel *{box-sizing:border-box}\n.interdata-plan-carousel{--blue:#005bea;--blue-dark:#004dcc;--text:#071832;--muted:#516173;--border:#d8e6fb;--bg:#f3f8ff;--shadow:0 5px 14px rgba(0,62,145,.08);container-type:inline-size;background:var(--bg);padding:14px 40px 18px;position:relative;overflow:hidden}\n.interdata-carousel-heading{color:#f00;font-family:Roboto,sans-serif;font-size:18px;line-height:1.35;font-weight:800;text-align:center;margin:0 0 14px}\n.interdata-plan-viewport{overflow:hidden;width:100%}\n.interdata-plan-track{display:flex;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;scroll-behavior:smooth;-webkit-overflow-scrolling:touch;scrollbar-width:none;padding:0 0 4px}\n.interdata-plan-track::-webkit-scrollbar{display:none}\n.interdata-plan-card{flex:0 0 calc((100% - 36px)\/4);min-width:0;background:#fff;border:1px solid var(--border);border-radius:8px;padding:15px 10px 13px;min-height:370px;display:flex;flex-direction:column;scroll-snap-align:start;box-shadow:var(--shadow)}\n.interdata-plan-title{color:var(--blue-dark);font-size:16px;line-height:1.22;font-weight:800;text-align:center;margin:0 0 7px;text-transform:uppercase;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}\n.interdata-plan-price{color:var(--blue-dark);font-size:24px;line-height:1;font-weight:900;text-align:center;margin-bottom:12px;white-space:nowrap;letter-spacing:0}\n.interdata-plan-price span{font-size:10px;font-weight:800;margin-left:2px}\n.interdata-plan-badge{align-self:center;display:inline-flex;align-items:center;justify-content:center;background:#ff3934;color:#fff;border-radius:5px;padding:7px 8px;font-size:9px;line-height:1;font-weight:800;margin-bottom:15px;white-space:nowrap;max-width:100%}\n.interdata-plan-features{list-style:none!important;padding:0!important;margin:0!important}\n.interdata-plan-features li{display:flex;gap:7px;align-items:flex-start;color:var(--text);font-size:12px;line-height:1.35;font-weight:700;text-align:left;margin:0 0 10px!important;padding:0!important}\n.interdata-plan-icon{width:14px;min-width:14px;height:14px;color:#0069ff;margin-top:2px}\n.interdata-plan-icon svg{display:block;width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}\n.interdata-plan-spacer{flex:1;min-height:16px}\n.interdata-plan-button{display:flex;align-items:center;justify-content:center;min-height:42px;width:100%;background:var(--blue);color:#fff!important;border-radius:5px;font-size:13px;font-weight:800;text-decoration:none!important;box-shadow:0 7px 14px rgba(0,91,234,.24);transition:transform .2s ease,background .2s ease}\n.interdata-plan-button:hover{background:var(--blue-dark);color:#fff!important;transform:translateY(-1px)}\n.interdata-carousel-arrow{position:absolute;top:50%;z-index:5;width:44px;height:54px;border:2px solid #fff!important;border-radius:999px;background:var(--blue)!important;color:#fff!important;box-shadow:0 8px 22px rgba(0,62,145,.32);display:flex!important;align-items:center;justify-content:center;cursor:pointer;transform:translateY(-35%);transition:background .2s ease,color .2s ease,opacity .2s ease,transform .2s ease}\n.interdata-carousel-arrow:hover{background:var(--blue-dark)!important;color:#fff!important;transform:translateY(-35%) scale(1.04)}\n.interdata-carousel-arrow:disabled{opacity:.78;cursor:not-allowed;background:#8aa6cf!important;color:#fff!important}\n.interdata-carousel-arrow:disabled:hover{background:#8aa6cf!important;color:#fff!important;transform:translateY(-35%)}\n.interdata-carousel-arrow svg{display:none!important}\n.interdata-carousel-arrow:before{content:none!important;display:none!important}\n.interdata-carousel-mark{display:block!important;color:#fff!important;font-family:Arial,Helvetica,sans-serif!important;font-size:38px!important;font-weight:900!important;line-height:1!important;text-align:center!important;pointer-events:none!important;transform:translateY(-2px)}\n.interdata-carousel-prev{left:14px}\n.interdata-carousel-prev .interdata-carousel-mark{margin-left:-2px}\n.interdata-carousel-next{right:14px}\n.interdata-carousel-next .interdata-carousel-mark{margin-right:-2px}\n@container (max-width:640px){.interdata-plan-carousel{padding:12px 38px 16px}.interdata-plan-card{flex-basis:calc((100% - 12px)\/2);min-height:370px}.interdata-carousel-heading{font-size:16px}}\n@container (max-width:480px){.interdata-plan-carousel{padding:12px 34px 16px}.interdata-plan-card{flex-basis:100%;min-height:360px}.interdata-plan-price{font-size:25px}.interdata-carousel-arrow{width:34px;height:44px}.interdata-carousel-mark{font-size:32px!important}.interdata-carousel-prev{left:5px}.interdata-carousel-next{right:5px}}\n<\/style>\n\n<div class=\"interdata-plan-carousel\" data-interdata-carousel>\n  <div class=\"interdata-carousel-heading\">Si\u00eau \u01afu \u0110\u00e3i VPS \/ CLOUD SERVER - Ti\u1ebft Ki\u1ec7m \u0110\u1ebfn 70%<\/div>\n\n  <svg width=\"0\" height=\"0\" style=\"position:absolute;visibility:hidden\" aria-hidden=\"true\">\n    <symbol id=\"id-icon-cpu\" viewBox=\"0 0 24 24\"><rect x=\"7\" y=\"7\" width=\"10\" height=\"10\" rx=\"2\"><\/rect><path d=\"M4 9h3M4 15h3M17 9h3M17 15h3M9 4v3M15 4v3M9 17v3M15 17v3\"><\/path><path d=\"M10 10h4v4h-4z\"><\/path><\/symbol>\n    <symbol id=\"id-icon-ram\" viewBox=\"0 0 24 24\"><rect x=\"4\" y=\"8\" width=\"16\" height=\"8\" rx=\"2\"><\/rect><path d=\"M7 16v2M11 16v2M15 16v2M19 16v2M7 11h1M11 11h1M15 11h1\"><\/path><\/symbol>\n    <symbol id=\"id-icon-storage\" viewBox=\"0 0 24 24\"><rect x=\"6\" y=\"3\" width=\"12\" height=\"18\" rx=\"2\"><\/rect><path d=\"M9 7h6\"><\/path><circle cx=\"12\" cy=\"16\" r=\"1.5\"><\/circle><\/symbol>\n    <symbol id=\"id-icon-network\" viewBox=\"0 0 24 24\"><path d=\"M5 12.5a10 10 0 0 1 14 0\"><\/path><path d=\"M8.5 16a5 5 0 0 1 7 0\"><\/path><path d=\"M12 19h.01\"><\/path><\/symbol>\n    <symbol id=\"id-icon-gift\" viewBox=\"0 0 24 24\"><rect x=\"3\" y=\"8\" width=\"18\" height=\"13\" rx=\"2\"><\/rect><path d=\"M12 8v13M3 12h18\"><\/path><path d=\"M7.5 8C6.1 8 5 6.9 5 5.5S6.1 3 7.5 3C10 3 12 8 12 8\"><\/path><path d=\"M16.5 8C17.9 8 19 6.9 19 5.5S17.9 3 16.5 3C14 3 12 8 12 8\"><\/path><\/symbol>\n  <\/svg>\n\n  <button class=\"interdata-carousel-arrow interdata-carousel-prev\" type=\"button\" aria-label=\"Xem 4 g\u00f3i tr\u01b0\u1edbc\">\n    <svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><path d=\"M15 18l-6-6 6-6\"><\/path><\/svg>\n    <span class=\"interdata-carousel-mark\" aria-hidden=\"true\">&#8249;<\/span>\n  <\/button>\n\n  <div class=\"interdata-plan-viewport\">\n    <div class=\"interdata-plan-track\">\n      <article class=\"interdata-plan-card\">\n        <h3 class=\"interdata-plan-title\">Premium Base<\/h3>\n        <div class=\"interdata-plan-price\">299K<span>\/3 th\u00e1ng<\/span><\/div>\n        <div class=\"interdata-plan-badge\">GIA H\u1ea0N KH\u00d4NG \u0110\u1ed4I GI\u00c1<\/div>\n        <ul class=\"interdata-plan-features\">\n          <li><span class=\"interdata-plan-icon\"><svg><use href=\"#id-icon-cpu\"><\/use><\/svg><\/span>2 vCore Intel<\/li>\n          <li><span class=\"interdata-plan-icon\"><svg><use href=\"#id-icon-ram\"><\/use><\/svg><\/span>2GB RAM<\/li>\n          <li><span class=\"interdata-plan-icon\"><svg><use href=\"#id-icon-storage\"><\/use><\/svg><\/span>30GB SSD NVMe<\/li>\n          <li><span class=\"interdata-plan-icon\"><svg><use href=\"#id-icon-network\"><\/use><\/svg><\/span>Network: 300Mbps<\/li>\n        <\/ul>\n        <div class=\"interdata-plan-spacer\"><\/div>\n        <a class=\"interdata-plan-button\" href=\"https:\/\/support.interdata.vn\/index.php?rp=\/store\/best-value-plans-2026\/best-value-plans-premium-base\" target=\"_blank\" rel=\"nofollow sponsored noopener\">\u0110\u0103ng k\u00fd ngay<\/a>\n      <\/article>\n\n      <article class=\"interdata-plan-card\">\n        <h3 class=\"interdata-plan-title\">Premium Base<\/h3>\n        <div class=\"interdata-plan-price\">999K<span>\/n\u0103m<\/span><\/div>\n        <div class=\"interdata-plan-badge\">GIA H\u1ea0N KH\u00d4NG \u0110\u1ed4I GI\u00c1<\/div>\n        <ul class=\"interdata-plan-features\">\n          <li><span class=\"interdata-plan-icon\"><svg><use href=\"#id-icon-cpu\"><\/use><\/svg><\/span>3 vCore Intel<\/li>\n          <li><span class=\"interdata-plan-icon\"><svg><use href=\"#id-icon-ram\"><\/use><\/svg><\/span>3GB RAM<\/li>\n          <li><span class=\"interdata-plan-icon\"><svg><use href=\"#id-icon-storage\"><\/use><\/svg><\/span>30GB SSD NVMe<\/li>\n          <li><span class=\"interdata-plan-icon\"><svg><use href=\"#id-icon-network\"><\/use><\/svg><\/span>Network: 300Mbps<\/li>\n        <\/ul>\n        <div class=\"interdata-plan-spacer\"><\/div>\n        <a class=\"interdata-plan-button\" href=\"https:\/\/support.interdata.vn\/index.php?rp=\/store\/cyber-week-2026\/premium-base\" target=\"_blank\" rel=\"nofollow sponsored noopener\">\u0110\u0103ng k\u00fd ngay<\/a>\n      <\/article>\n\n      <article class=\"interdata-plan-card\">\n        <h3 class=\"interdata-plan-title\">Premium Pro<\/h3>\n        <div class=\"interdata-plan-price\">2.599K<span>\/n\u0103m<\/span><\/div>\n        <div class=\"interdata-plan-badge\">GIA H\u1ea0N KH\u00d4NG \u0110\u1ed4I GI\u00c1<\/div>\n        <ul class=\"interdata-plan-features\">\n          <li><span class=\"interdata-plan-icon\"><svg><use href=\"#id-icon-cpu\"><\/use><\/svg><\/span>6 vCore Intel<\/li>\n          <li><span class=\"interdata-plan-icon\"><svg><use href=\"#id-icon-ram\"><\/use><\/svg><\/span>8GB RAM<\/li>\n          <li><span class=\"interdata-plan-icon\"><svg><use href=\"#id-icon-storage\"><\/use><\/svg><\/span>80GB SSD NVMe<\/li>\n          <li><span class=\"interdata-plan-icon\"><svg><use href=\"#id-icon-network\"><\/use><\/svg><\/span>Network: 350Mbps<\/li>\n        <\/ul>\n        <div class=\"interdata-plan-spacer\"><\/div>\n        <a class=\"interdata-plan-button\" href=\"https:\/\/support.interdata.vn\/index.php?rp=\/store\/cyber-week-2026\/premium-pro\" target=\"_blank\" rel=\"nofollow sponsored noopener\">\u0110\u0103ng k\u00fd ngay<\/a>\n      <\/article>\n\n      <article class=\"interdata-plan-card\">\n        <h3 class=\"interdata-plan-title\">Premium Ultra<\/h3>\n        <div class=\"interdata-plan-price\">5.679K<span>\/n\u0103m<\/span><\/div>\n        <div class=\"interdata-plan-badge\">GIA H\u1ea0N KH\u00d4NG \u0110\u1ed4I GI\u00c1<\/div>\n        <ul class=\"interdata-plan-features\">\n          <li><span class=\"interdata-plan-icon\"><svg><use href=\"#id-icon-cpu\"><\/use><\/svg><\/span>12 vCore Intel<\/li>\n          <li><span class=\"interdata-plan-icon\"><svg><use href=\"#id-icon-ram\"><\/use><\/svg><\/span>16GB RAM<\/li>\n          <li><span class=\"interdata-plan-icon\"><svg><use href=\"#id-icon-storage\"><\/use><\/svg><\/span>180GB SSD NVMe<\/li>\n          <li><span class=\"interdata-plan-icon\"><svg><use href=\"#id-icon-network\"><\/use><\/svg><\/span>Network: 450Mbps<\/li>\n        <\/ul>\n        <div class=\"interdata-plan-spacer\"><\/div>\n        <a class=\"interdata-plan-button\" href=\"https:\/\/support.interdata.vn\/index.php?rp=\/store\/cyber-week-2026\/premium-ultra\" target=\"_blank\" rel=\"nofollow sponsored noopener\">\u0110\u0103ng k\u00fd ngay<\/a>\n      <\/article>\n\n      <article class=\"interdata-plan-card\">\n        <h3 class=\"interdata-plan-title\">BD-CLOUD 1<\/h3>\n        <div class=\"interdata-plan-price\">988K<span>\/n\u0103m<\/span><\/div>\n        <div class=\"interdata-plan-badge\">GIA H\u1ea0N KH\u00d4NG \u0110\u1ed4I GI\u00c1<\/div>\n        <ul class=\"interdata-plan-features\">\n          <li><span class=\"interdata-plan-icon\"><svg><use href=\"#id-icon-cpu\"><\/use><\/svg><\/span>2 vCPU<\/li>\n          <li><span class=\"interdata-plan-icon\"><svg><use href=\"#id-icon-ram\"><\/use><\/svg><\/span>2 GB RAM<\/li>\n          <li><span class=\"interdata-plan-icon\"><svg><use href=\"#id-icon-storage\"><\/use><\/svg><\/span>30 GB SSD NVMe<\/li>\n          <li><span class=\"interdata-plan-icon\"><svg><use href=\"#id-icon-network\"><\/use><\/svg><\/span>Network: 300 Mbps<\/li>\n        <\/ul>\n        <div class=\"interdata-plan-spacer\"><\/div>\n        <a class=\"interdata-plan-button\" href=\"https:\/\/support.interdata.vn\/index.php?rp=\/store\/bd-cloud-performance-2026\/bd-cloud-1\" target=\"_blank\" rel=\"nofollow sponsored noopener\">\u0110\u0103ng k\u00fd ngay<\/a>\n      <\/article>\n\n      <article class=\"interdata-plan-card\">\n        <h3 class=\"interdata-plan-title\">BD-CLOUD 2<\/h3>\n        <div class=\"interdata-plan-price\">2.988K<span>\/n\u0103m<\/span><\/div>\n        <div class=\"interdata-plan-badge\">GIA H\u1ea0N KH\u00d4NG \u0110\u1ed4I GI\u00c1<\/div>\n        <ul class=\"interdata-plan-features\">\n          <li><span class=\"interdata-plan-icon\"><svg><use href=\"#id-icon-cpu\"><\/use><\/svg><\/span>4 vCPU<\/li>\n          <li><span class=\"interdata-plan-icon\"><svg><use href=\"#id-icon-ram\"><\/use><\/svg><\/span>8 GB RAM<\/li>\n          <li><span class=\"interdata-plan-icon\"><svg><use href=\"#id-icon-storage\"><\/use><\/svg><\/span>80 GB SSD NVMe<\/li>\n          <li><span class=\"interdata-plan-icon\"><svg><use href=\"#id-icon-network\"><\/use><\/svg><\/span>Network: 300 Mbps<\/li>\n        <\/ul>\n        <div class=\"interdata-plan-spacer\"><\/div>\n        <a class=\"interdata-plan-button\" href=\"https:\/\/support.interdata.vn\/index.php?rp=\/store\/bd-cloud-performance-2026\/bd-cloud-2\" target=\"_blank\" rel=\"nofollow sponsored noopener\">\u0110\u0103ng k\u00fd ngay<\/a>\n      <\/article>\n\n      <article class=\"interdata-plan-card\">\n        <h3 class=\"interdata-plan-title\">Cloud-Day - Base<\/h3>\n        <div class=\"interdata-plan-price\">2.666K<span>\/n\u0103m<\/span><\/div>\n        <div class=\"interdata-plan-badge\">GIA H\u1ea0N KH\u00d4NG \u0110\u1ed4I GI\u00c1<\/div>\n        <ul class=\"interdata-plan-features\">\n          <li><span class=\"interdata-plan-icon\"><svg><use href=\"#id-icon-gift\"><\/use><\/svg><\/span>T\u1eb7ng 80GB S3 v\u00e0 1 n\u0103m s\u1eed d\u1ee5ng khi mua 2 n\u0103m tr\u1edf l\u00ean<\/li>\n          <li><span class=\"interdata-plan-icon\"><svg><use href=\"#id-icon-cpu\"><\/use><\/svg><\/span>4 vCPU AMD G3<\/li>\n          <li><span class=\"interdata-plan-icon\"><svg><use href=\"#id-icon-ram\"><\/use><\/svg><\/span>6GB RAM<\/li>\n          <li><span class=\"interdata-plan-icon\"><svg><use href=\"#id-icon-storage\"><\/use><\/svg><\/span>60GB SSD NVMe<\/li>\n          <li><span class=\"interdata-plan-icon\"><svg><use href=\"#id-icon-network\"><\/use><\/svg><\/span>Network: 10Gbps<\/li>\n        <\/ul>\n        <div class=\"interdata-plan-spacer\"><\/div>\n        <a class=\"interdata-plan-button\" href=\"https:\/\/support.interdata.vn\/index.php?rp=\/store\/cloud-day-by-interdata-2026\/cloud-day-base\" target=\"_blank\" rel=\"nofollow sponsored noopener\">\u0110\u0103ng k\u00fd ngay<\/a>\n      <\/article>\n\n      <article class=\"interdata-plan-card\">\n        <h3 class=\"interdata-plan-title\">Cloud-Day - Pro<\/h3>\n        <div class=\"interdata-plan-price\">5.666K<span>\/n\u0103m<\/span><\/div>\n        <div class=\"interdata-plan-badge\">GIA H\u1ea0N KH\u00d4NG \u0110\u1ed4I GI\u00c1<\/div>\n        <ul class=\"interdata-plan-features\">\n          <li><span class=\"interdata-plan-icon\"><svg><use href=\"#id-icon-gift\"><\/use><\/svg><\/span>T\u1eb7ng 200GB S3 v\u00e0 1 n\u0103m s\u1eed d\u1ee5ng khi mua 2 n\u0103m tr\u1edf l\u00ean<\/li>\n          <li><span class=\"interdata-plan-icon\"><svg><use href=\"#id-icon-cpu\"><\/use><\/svg><\/span>8 vCPU AMD G3<\/li>\n          <li><span class=\"interdata-plan-icon\"><svg><use href=\"#id-icon-ram\"><\/use><\/svg><\/span>12GB RAM<\/li>\n          <li><span class=\"interdata-plan-icon\"><svg><use href=\"#id-icon-storage\"><\/use><\/svg><\/span>160GB SSD NVMe<\/li>\n          <li><span class=\"interdata-plan-icon\"><svg><use href=\"#id-icon-network\"><\/use><\/svg><\/span>Network: 10Gbps<\/li>\n        <\/ul>\n        <div class=\"interdata-plan-spacer\"><\/div>\n        <a class=\"interdata-plan-button\" href=\"https:\/\/support.interdata.vn\/index.php?rp=\/store\/cloud-day-by-interdata-2026\/cloud-day-pro\" target=\"_blank\" rel=\"nofollow sponsored noopener\">\u0110\u0103ng k\u00fd ngay<\/a>\n      <\/article>\n    <\/div>\n  <\/div>\n\n  <button class=\"interdata-carousel-arrow interdata-carousel-next\" type=\"button\" aria-label=\"Xem 4 g\u00f3i ti\u1ebfp theo\">\n    <svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><path d=\"M9 18l6-6-6-6\"><\/path><\/svg>\n    <span class=\"interdata-carousel-mark\" aria-hidden=\"true\">&#8250;<\/span>\n  <\/button>\n<\/div>\n\n<script>\n(function(){\n  function setupInterDataCarousel(root){\n    var track=root.querySelector('.interdata-plan-track');\n    var prev=root.querySelector('.interdata-carousel-prev');\n    var next=root.querySelector('.interdata-carousel-next');\n    if(!track||!prev||!next||track.dataset.ready==='1')return;\n    track.dataset.ready='1';\n\n    function pageWidth(){\n      return track.clientWidth;\n    }\n\n    function updateButtons(){\n      var maxScroll=track.scrollWidth-track.clientWidth-2;\n      prev.disabled=track.scrollLeft<=2;\n      next.disabled=track.scrollLeft>=maxScroll;\n    }\n\n    prev.addEventListener('click',function(){\n      track.scrollBy({left:-pageWidth(),behavior:'smooth'});\n    });\n\n    next.addEventListener('click',function(){\n      track.scrollBy({left:pageWidth(),behavior:'smooth'});\n    });\n\n    track.addEventListener('scroll',function(){\n      window.requestAnimationFrame(updateButtons);\n    });\n\n    window.addEventListener('resize',updateButtons);\n    updateButtons();\n  }\n\n  function initInterDataCarousels(){\n    document.querySelectorAll('[data-interdata-carousel]').forEach(setupInterDataCarousel);\n  }\n\n  if(document.readyState==='loading'){\n    document.addEventListener('DOMContentLoaded',initInterDataCarousels);\n  }else{\n    initInterDataCarousels();\n  }\n})();\n<\/script>\n\n\t<div id=\"gap-424137389\" class=\"gap-element clearfix\" style=\"display:block; height:auto;\">\n\t\t\n<style>\n#gap-424137389 {\n  padding-top: 30px;\n}\n<\/style>\n\t<\/div>\n\t\n","protected":false},"excerpt":{"rendered":"<p>Crontab l\u00e0 c\u00f4ng c\u1ee5 d\u00f2ng l\u1ec7nh m\u1ea1nh m\u1ebd tr\u00ean h\u1ec7 \u0111i\u1ec1u h\u00e0nh Linux, cho ph\u00e9p qu\u1ea3n tr\u1ecb vi\u00ean l\u1eadp l\u1ecbch v\u00e0 t\u1ef1 \u0111\u1ed9ng h\u00f3a c\u00e1c t\u00e1c v\u1ee5 l\u1eb7p \u0111i l\u1eb7p l\u1ea1i. Thay v\u00ec ph\u1ea3i th\u1ee9c d\u1eady l\u00fac n\u1eeda \u0111\u00eam \u0111\u1ec3 ch\u1ea1y script backup d\u1eef li\u1ec7u hay t\u1ef1 tay x\u00f3a file log h\u1ec7 th\u1ed1ng h\u00e0ng tu\u1ea7n,<\/p>\n","protected":false},"author":11,"featured_media":42321,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[58,49],"tags":[],"class_list":["post-42318","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","category-vps"],"_links":{"self":[{"href":"https:\/\/interdata.vn\/blog\/wp-json\/wp\/v2\/posts\/42318","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/interdata.vn\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/interdata.vn\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/interdata.vn\/blog\/wp-json\/wp\/v2\/users\/11"}],"replies":[{"embeddable":true,"href":"https:\/\/interdata.vn\/blog\/wp-json\/wp\/v2\/comments?post=42318"}],"version-history":[{"count":1,"href":"https:\/\/interdata.vn\/blog\/wp-json\/wp\/v2\/posts\/42318\/revisions"}],"predecessor-version":[{"id":42322,"href":"https:\/\/interdata.vn\/blog\/wp-json\/wp\/v2\/posts\/42318\/revisions\/42322"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/interdata.vn\/blog\/wp-json\/wp\/v2\/media\/42321"}],"wp:attachment":[{"href":"https:\/\/interdata.vn\/blog\/wp-json\/wp\/v2\/media?parent=42318"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/interdata.vn\/blog\/wp-json\/wp\/v2\/categories?post=42318"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/interdata.vn\/blog\/wp-json\/wp\/v2\/tags?post=42318"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}