{"id":43402,"date":"2026-09-03T15:33:10","date_gmt":"2026-09-03T08:33:10","guid":{"rendered":"https:\/\/interdata.vn\/blog\/?p=43402"},"modified":"2026-09-03T15:33:56","modified_gmt":"2026-09-03T08:33:56","slug":"cach-cai-dat-ollama-tren-linux","status":"publish","type":"post","link":"https:\/\/interdata.vn\/blog\/cach-cai-dat-ollama-tren-linux\/","title":{"rendered":"C\u00e1ch C\u00e0i \u0110\u1eb7t Ollama Tr\u00ean Linux &#8211; C\u00e0i \u0110\u1eb7t Olama Tr\u00ean VPS &#038; Cloud Server"},"content":{"rendered":"<p style=\"text-align: justify;\"><span style=\"font-size: 100%;\"><strong>C\u00e1ch c\u00e0i \u0111\u1eb7t Ollama tr\u00ean Linux<\/strong> l\u00e0 gi\u1ea3i ph\u00e1p t\u1ed1i \u01b0u gi\u00fap k\u1ef9 s\u01b0 AI, l\u1eadp tr\u00ecnh vi\u00ean v\u00e0 doanh nghi\u1ec7p tri\u1ec3n khai c\u00e1c m\u00f4 h\u00ecnh ng\u00f4n ng\u1eef l\u1edbn (LLM) c\u1ee5c b\u1ed9 tr\u00ean h\u1ea1 t\u1ea7ng ri\u00eang bi\u1ec7t. Thay v\u00ec ph\u1ee5 thu\u1ed9c v\u00e0o c\u00e1c API \u0111\u00e1m m\u00e2y \u0111\u1eaft \u0111\u1ecf, vi\u1ec7c t\u1ef1 host Ollama tr\u00ean n\u1ec1n t\u1ea3ng m\u00e1y ch\u1ee7 gi\u00fap b\u1ea3o m\u1eadt tuy\u1ec7t \u0111\u1ed1i d\u1eef li\u1ec7u n\u1ed9i b\u1ed9. B\u1ea1n c\u00f3 th\u1ec3 x\u00e2y d\u1ef1ng n\u1ec1n t\u1ea3ng h\u1ea1 t\u1ea7ng m\u00e1y ch\u1ee7 v\u1eefng ch\u1eafc cho AI t\u1ea1i <a href=\"https:\/\/interdata.vn\/\">InterData<\/a> tr\u01b0\u1edbc khi b\u1eaft tay thi\u1ebft l\u1eadp h\u1ec7 th\u1ed1ng.<\/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: 0 0 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. Ollama l\u00e0 g\u00ec v\u00e0 v\u00ec sao n\u00ean c\u00e0i \u0111\u1eb7t tr\u00ean Linux?<\/a><\/li>\n<li style=\"margin-bottom: 10px;\"><a style=\"text-decoration: none; color: #2563eb; font-weight: bold;\" href=\"#section2\">2. Y\u00eau c\u1ea7u ph\u1ea7n c\u1ee9ng tr\u01b0\u1edbc khi c\u00e0i \u0111\u1eb7t Ollama tr\u00ean Linux<\/a><\/li>\n<li style=\"margin-bottom: 10px;\"><a style=\"text-decoration: none; color: #2563eb; font-weight: bold;\" href=\"#section3\">3. C\u00e1ch c\u00e0i \u0111\u1eb7t Ollama tr\u00ean Linux b\u1eb1ng script t\u1ef1 \u0111\u1ed9ng<\/a><\/li>\n<li style=\"margin-bottom: 10px;\"><a style=\"text-decoration: none; color: #2563eb; font-weight: bold;\" href=\"#section4\">4. C\u00e1ch c\u00e0i \u0111\u1eb7t Ollama th\u1ee7 c\u00f4ng tr\u00ean Linux chu\u1ea9n Production<\/a><\/li>\n<li style=\"margin-bottom: 10px;\"><a style=\"text-decoration: none; color: #2563eb; font-weight: bold;\" href=\"#section5\">5. C\u1ea5u h\u00ecnh GPU NVIDIA CUDA v\u00e0 AMD ROCm cho Ollama<\/a><\/li>\n<li style=\"margin-bottom: 10px;\"><a style=\"text-decoration: none; color: #2563eb; font-weight: bold;\" href=\"#section6\">6. Thi\u1ebft l\u1eadp bi\u1ebfn m\u00f4i tr\u01b0\u1eddng quan tr\u1ecdng khi ch\u1ea1y Ollama tr\u00ean VPS Linux<\/a><\/li>\n<li style=\"margin-bottom: 10px;\"><a style=\"text-decoration: none; color: #2563eb; font-weight: bold;\" href=\"#section7\">7. Kh\u1edfi ch\u1ea1y model \u0111\u1ea7u ti\u00ean v\u00e0 c\u00e1c l\u1ec7nh Ollama CLI c\u1ea7n bi\u1ebft<\/a><\/li>\n<li style=\"margin-bottom: 10px;\"><a style=\"text-decoration: none; color: #2563eb; font-weight: bold;\" href=\"#section8\">8. K\u1ebft n\u1ed1i Ollama v\u1edbi Open WebUI, n8n v\u00e0 ki\u1ebfn tr\u00fac AI Agent<\/a><\/li>\n<li style=\"margin-bottom: 10px;\"><a style=\"text-decoration: none; color: #2563eb; font-weight: bold;\" href=\"#section9\">9. X\u1eed l\u00fd l\u1ed7i th\u01b0\u1eddng g\u1eb7p khi c\u00e0i \u0111\u1eb7t Ollama tr\u00ean m\u00e1y ch\u1ee7 Linux<\/a><\/li>\n<li style=\"margin-bottom: 10px;\"><a style=\"text-decoration: none; color: #2563eb; font-weight: bold;\" href=\"#section10\">10. So s\u00e1nh VPS v\u00e0 Cloud Server khi t\u1ef1 host Ollama<\/a><\/li>\n<li style=\"margin-bottom: 10px;\"><a style=\"text-decoration: none; color: #2563eb; font-weight: bold;\" href=\"#sectionFAQ\">11. C\u00e2u h\u1ecfi th\u01b0\u1eddng g\u1eb7p v\u1ec1 c\u00e1ch c\u00e0i \u0111\u1eb7t Ollama tr\u00ean Linux<\/a><\/li>\n<\/ul>\n<\/div>\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);background:var(--bg);padding:14px 56px 18px;position:relative;overflow:hidden;border-radius:20px;}\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;align-items:stretch;gap:12px;overflow:visible;padding:0 0 4px;transform:translate3d(0,0,0);transition:transform .45s ease;will-change:transform;touch-action:pan-y}\n.interdata-plan-card{flex:0 0 calc((100% - 24px)\/3);min-width:0;min-height:0!important;height:auto;background:#fff;border:1px solid var(--border);border-radius:8px;padding:15px 12px 13px;display:flex;flex-direction:column;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%;margin-top:auto!important;margin-bottom:0!important;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@media (max-width:800px){.interdata-plan-carousel{padding:12px 44px 16px}.interdata-plan-card{flex-basis:calc((100% - 12px)\/2)}.interdata-carousel-heading{font-size:16px}.interdata-carousel-prev{left:6px}.interdata-carousel-next{right:6px}}\n@media (max-width:480px){.interdata-plan-carousel{padding:12px 38px 16px}.interdata-plan-card{flex-basis:100%}.interdata-plan-price{font-size:23px}.interdata-carousel-arrow{width:34px;height:44px}.interdata-carousel-mark{font-size:32px!important}.interdata-carousel-prev{left:3px}.interdata-carousel-next{right:3px}}\n<\/style>\n\n<div class=\"interdata-plan-carousel\" data-interdata-carousel>\n  <div class=\"interdata-carousel-heading\">Si\u00eau \u01afu \u0110\u00e3i <a href=\"https:\/\/interdata.vn\/blog\/vps-la-gi\/\">VPS<\/a> \/ 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 3 g\u00f3i tr\u01b0\u1edbc\" onclick=\"var r=this.closest('[data-interdata-carousel]');if(!r)return false;var t=r.querySelector('.interdata-plan-track'),c=t?t.querySelectorAll('.interdata-plan-card'):[];if(!t||!c.length)return false;var v=window.matchMedia('(max-width:480px)').matches?1:(window.matchMedia('(max-width:800px)').matches?2:3),m=Math.max(0,c.length-Math.min(v,c.length||1)),s=[],i=0;while(i&lt;m){s.push(i);i+=v}if(!s.length||s[s.length-1]!==m)s.push(m);var p=parseInt(r.getAttribute('data-inline-page')||'0',10);p=(p-1+s.length)%s.length;r.setAttribute('data-inline-page',p);var g=parseFloat(window.getComputedStyle(t).gap)||12,w=c[0].getBoundingClientRect().width;t.style.transition='transform .45s ease';t.style.transform='translate3d('+(-(w+g)*s[p])+'px,0,0)';return false;\">\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      <!-- 7 card d\u1ef1 ph\u00f2ng: JavaScript s\u1ebd \u0111\u1ed3ng b\u1ed9 l\u1ea1i t\u1eeb API portal khi trang t\u1ea3i. -->\n      <article class=\"interdata-plan-card\" data-plan-pid=\"490\">\n        <h3 class=\"interdata-plan-title\">Premium Base<\/h3>\n        <div class=\"interdata-plan-price\">299.000 \u0111<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 Xeon Scalable<\/li>\n          <li><span class=\"interdata-plan-icon\"><svg><use href=\"#id-icon-ram\"><\/use><\/svg><\/span>2 GB <a href=\"https:\/\/interdata.vn\/blog\/ram-server\/\">RAM<\/a><\/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>1 IPv4 Private<\/li>\n          <li><span class=\"interdata-plan-icon\"><svg><use href=\"#id-icon-network\"><\/use><\/svg><\/span>300Mbps Network Port<\/li>\n          <li><span class=\"interdata-plan-icon\"><svg><use href=\"#id-icon-network\"><\/use><\/svg><\/span>Unlimited Bandwidth<\/li>\n        <\/ul>\n\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=\"noopener\">\u0110\u0103ng k\u00fd ngay<\/a>\n      <\/article>\n\n      <article class=\"interdata-plan-card\" data-plan-pid=\"529\">\n        <h3 class=\"interdata-plan-title\">INTER PLATINUM 1<\/h3>\n        <div class=\"interdata-plan-price\">998.000 \u0111<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 vCore<\/li>\n          <li><span class=\"interdata-plan-icon\"><svg><use href=\"#id-icon-ram\"><\/use><\/svg><\/span>3 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>1 IPv4 Private<\/li>\n          <li><span class=\"interdata-plan-icon\"><svg><use href=\"#id-icon-network\"><\/use><\/svg><\/span>300Mbps Network Port<\/li>\n          <li><span class=\"interdata-plan-icon\"><svg><use href=\"#id-icon-network\"><\/use><\/svg><\/span>Unlimited Bandwidth<\/li>\n        <\/ul>\n\n        <a class=\"interdata-plan-button\" href=\"https:\/\/support.interdata.vn\/index.php?rp=\/store\/inter-platinum-series-2026\/inter-platinum-1\" target=\"_blank\" rel=\"noopener\">\u0110\u0103ng k\u00fd ngay<\/a>\n      <\/article>\n\n      <article class=\"interdata-plan-card\" data-plan-pid=\"530\">\n        <h3 class=\"interdata-plan-title\">INTER PLATINUM 2<\/h3>\n        <div class=\"interdata-plan-price\">2.666.000 \u0111<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>5 vCore<\/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>70 GB SSD NVMe<\/li>\n          <li><span class=\"interdata-plan-icon\"><svg><use href=\"#id-icon-network\"><\/use><\/svg><\/span>1 IPv4 Private<\/li>\n          <li><span class=\"interdata-plan-icon\"><svg><use href=\"#id-icon-network\"><\/use><\/svg><\/span>300Mbps Network Port<\/li>\n          <li><span class=\"interdata-plan-icon\"><svg><use href=\"#id-icon-network\"><\/use><\/svg><\/span>Unlimited Bandwidth<\/li>\n        <\/ul>\n\n        <a class=\"interdata-plan-button\" href=\"https:\/\/support.interdata.vn\/index.php?rp=\/store\/inter-platinum-series-2026\/inter-platinum-2\" target=\"_blank\" rel=\"noopener\">\u0110\u0103ng k\u00fd ngay<\/a>\n      <\/article>\n\n      <article class=\"interdata-plan-card\" data-plan-pid=\"531\">\n        <h3 class=\"interdata-plan-title\">INTER PLATINUM 3<\/h3>\n        <div class=\"interdata-plan-price\">5.888.000 \u0111<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>9 vCore<\/li>\n          <li><span class=\"interdata-plan-icon\"><svg><use href=\"#id-icon-ram\"><\/use><\/svg><\/span>16 GB RAM<\/li>\n          <li><span class=\"interdata-plan-icon\"><svg><use href=\"#id-icon-storage\"><\/use><\/svg><\/span>140 GB SSD NVMe<\/li>\n          <li><span class=\"interdata-plan-icon\"><svg><use href=\"#id-icon-network\"><\/use><\/svg><\/span>1 IPv4 Private<\/li>\n          <li><span class=\"interdata-plan-icon\"><svg><use href=\"#id-icon-network\"><\/use><\/svg><\/span>300Mbps Network Port<\/li>\n          <li><span class=\"interdata-plan-icon\"><svg><use href=\"#id-icon-network\"><\/use><\/svg><\/span>Unlimited Bandwidth<\/li>\n        <\/ul>\n\n        <a class=\"interdata-plan-button\" href=\"https:\/\/support.interdata.vn\/index.php?rp=\/store\/inter-platinum-series-2026\/inter-platinum-3\" target=\"_blank\" rel=\"noopener\">\u0110\u0103ng k\u00fd ngay<\/a>\n      <\/article>\n\n      <article class=\"interdata-plan-card\" data-plan-pid=\"521\">\n        <h3 class=\"interdata-plan-title\">BD-Cloud 1<\/h3>\n        <div class=\"interdata-plan-price\">988.000 \u0111<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<\/li>\n          <li><span class=\"interdata-plan-icon\"><svg><use href=\"#id-icon-ram\"><\/use><\/svg><\/span>3 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>1 IPv4 Private<\/li>\n          <li><span class=\"interdata-plan-icon\"><svg><use href=\"#id-icon-network\"><\/use><\/svg><\/span>300Mbps Network Port<\/li>\n          <li><span class=\"interdata-plan-icon\"><svg><use href=\"#id-icon-network\"><\/use><\/svg><\/span>Unlimited Bandwidth<\/li>\n        <\/ul>\n\n        <a class=\"interdata-plan-button\" href=\"https:\/\/support.interdata.vn\/index.php?rp=\/store\/best-plan-real-cloud\/bd-cloud-1\" target=\"_blank\" rel=\"noopener\">\u0110\u0103ng k\u00fd ngay<\/a>\n      <\/article>\n\n      <article class=\"interdata-plan-card\" data-plan-pid=\"522\">\n        <h3 class=\"interdata-plan-title\">BD-Cloud 2<\/h3>\n        <div class=\"interdata-plan-price\">2.988.000 \u0111<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 vCore<\/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>1 IPv4 Private<\/li>\n          <li><span class=\"interdata-plan-icon\"><svg><use href=\"#id-icon-network\"><\/use><\/svg><\/span>300 Mbps Network Port<\/li>\n          <li><span class=\"interdata-plan-icon\"><svg><use href=\"#id-icon-network\"><\/use><\/svg><\/span>Unlimited Bandwidth<\/li>\n        <\/ul>\n\n        <a class=\"interdata-plan-button\" href=\"https:\/\/support.interdata.vn\/index.php?rp=\/store\/best-plan-real-cloud\/bd-cloud-2\" target=\"_blank\" rel=\"noopener\">\u0110\u0103ng k\u00fd ngay<\/a>\n      <\/article>\n\n      <article class=\"interdata-plan-card\" data-plan-pid=\"523\">\n        <h3 class=\"interdata-plan-title\">BD-Cloud 3<\/h3>\n        <div class=\"interdata-plan-price\">5.999.000 \u0111<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>8 vCore<\/li>\n          <li><span class=\"interdata-plan-icon\"><svg><use href=\"#id-icon-ram\"><\/use><\/svg><\/span>16 GB RAM<\/li>\n          <li><span class=\"interdata-plan-icon\"><svg><use href=\"#id-icon-storage\"><\/use><\/svg><\/span>140 GB SSD NVMe<\/li>\n          <li><span class=\"interdata-plan-icon\"><svg><use href=\"#id-icon-network\"><\/use><\/svg><\/span>1 IPv4 Private<\/li>\n          <li><span class=\"interdata-plan-icon\"><svg><use href=\"#id-icon-network\"><\/use><\/svg><\/span>400 Mbps Network Port<\/li>\n          <li><span class=\"interdata-plan-icon\"><svg><use href=\"#id-icon-network\"><\/use><\/svg><\/span>Unlimited Bandwidth<\/li>\n        <\/ul>\n\n        <a class=\"interdata-plan-button\" href=\"https:\/\/support.interdata.vn\/index.php?rp=\/store\/best-plan-real-cloud\/bd-cloud-3\" target=\"_blank\" rel=\"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 3 g\u00f3i ti\u1ebfp theo\" onclick=\"var r=this.closest('[data-interdata-carousel]');if(!r)return false;var t=r.querySelector('.interdata-plan-track'),c=t?t.querySelectorAll('.interdata-plan-card'):[];if(!t||!c.length)return false;var v=window.matchMedia('(max-width:480px)').matches?1:(window.matchMedia('(max-width:800px)').matches?2:3),m=Math.max(0,c.length-Math.min(v,c.length||1)),s=[],i=0;while(i&lt;m){s.push(i);i+=v}if(!s.length||s[s.length-1]!==m)s.push(m);var p=parseInt(r.getAttribute('data-inline-page')||'0',10);p=(p+1)%s.length;r.setAttribute('data-inline-page',p);var g=parseFloat(window.getComputedStyle(t).gap)||12,w=c[0].getBoundingClientRect().width;t.style.transition='transform .45s ease';t.style.transform='translate3d('+(-(w+g)*s[p])+'px,0,0)';return false;\">\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  var API_GROUPS=[\n    {url:'https:\/\/support.interdata.vn\/packages.php?gid=89&module',pids:[490]},\n    {url:'https:\/\/support.interdata.vn\/packages.php?gid=100&module',pids:[529,530,531]},\n    {url:'https:\/\/support.interdata.vn\/packages.php?gid=97&module',pids:[521,522,523]}\n  ];\n  var PLAN_CYCLES={\n    490:{key:'quarterly',label:'3 th\u00e1ng'},\n    529:{key:'annually',label:'n\u0103m'},\n    530:{key:'annually',label:'n\u0103m'},\n    531:{key:'annually',label:'n\u0103m'},\n    521:{key:'annually',label:'n\u0103m'},\n    522:{key:'annually',label:'n\u0103m'},\n    523:{key:'annually',label:'n\u0103m'}\n  };\n\n  function fetchPlanData(){\n    if(window.interdataPlanApiPromise)return window.interdataPlanApiPromise;\n\n    window.interdataPlanApiPromise=Promise.all(API_GROUPS.map(function(group){\n      return fetch(group.url,{method:'GET',mode:'cors',cache:'no-store'})\n        .then(function(response){\n          if(!response.ok)throw new Error('API '+response.status);\n          return response.json();\n        })\n        .then(function(data){\n          if(!data||data.success!==true||!Array.isArray(data.products))return [];\n          return data.products.filter(function(product){\n            return group.pids.indexOf(Number(product.pid))!==-1;\n          });\n        })\n        .catch(function(error){\n          console.warn('Kh\u00f4ng th\u1ec3 c\u1eadp nh\u1eadt nh\u00f3m g\u00f3i InterData:',group.url,error);\n          return [];\n        });\n    })).then(function(groups){\n      return groups.reduce(function(all,products){return all.concat(products);},[]);\n    });\n\n    return window.interdataPlanApiPromise;\n  }\n\n  function parseDescription(html){\n    var source=String(html||'')\n      .replace(\/<brs*\/?>\/gi,'n')\n      .replace(\/<\/(p|div|li)>\/gi,'n');\n    var holder=document.createElement('div');\n    holder.innerHTML=source;\n    var strong=holder.querySelector('strong');\n    var badge=strong?strong.textContent.trim():'';\n    var lines=(holder.textContent||'').split(\/r?n\/).map(function(line){\n      return line.trim();\n    }).filter(Boolean);\n    if(badge&&lines[0]===badge)lines.shift();\n    return {badge:badge,features:lines};\n  }\n\n  function iconForFeature(feature){\n    if(\/ram\/i.test(feature))return 'id-icon-ram';\n    if(\/ssd|nvme|storage|disk\/i.test(feature))return 'id-icon-storage';\n    if(\/vcore|vcpu|cpu|xeon|amd\/i.test(feature))return 'id-icon-cpu';\n    if(\/ipv4|network|mbps|gbps|bandwidth\/i.test(feature))return 'id-icon-network';\n    return 'id-icon-gift';\n  }\n\n  function createFeatureItem(feature){\n    var item=document.createElement('li');\n    var icon=document.createElement('span');\n    var svg=document.createElementNS('http:\/\/www.w3.org\/2000\/svg','svg');\n    var use=document.createElementNS('http:\/\/www.w3.org\/2000\/svg','use');\n    icon.className='interdata-plan-icon';\n    use.setAttribute('href','#'+iconForFeature(feature));\n    svg.appendChild(use);\n    icon.appendChild(svg);\n    item.appendChild(icon);\n    item.appendChild(document.createTextNode(feature));\n    return item;\n  }\n\n  function updateCardFromApi(root,product){\n    var pid=Number(product.pid);\n    var cycle=PLAN_CYCLES[pid];\n    var card=root.querySelector('[data-plan-pid=\"'+pid+'\"]');\n    if(!card||!cycle)return;\n\n    var title=card.querySelector('.interdata-plan-title');\n    var priceBox=card.querySelector('.interdata-plan-price');\n    var badgeBox=card.querySelector('.interdata-plan-badge');\n    var featureList=card.querySelector('.interdata-plan-features');\n    var button=card.querySelector('.interdata-plan-button');\n    var description=parseDescription(product.description);\n    var pricing=product.pricing&&product.pricing.VND;\n    var price=pricing?Number(pricing[cycle.key]):-1;\n\n    if(title&&product.name)title.textContent=product.name;\n    if(priceBox&&Number.isFinite(price)&&price>=0){\n      priceBox.textContent=Math.round(price).toLocaleString('vi-VN')+' \u0111';\n      var suffix=document.createElement('span');\n      suffix.textContent='\/'+cycle.label;\n      priceBox.appendChild(suffix);\n    }\n    if(badgeBox&&description.badge)badgeBox.textContent=description.badge;\n    if(featureList&&description.features.length){\n      featureList.textContent='';\n      description.features.forEach(function(feature){\n        featureList.appendChild(createFeatureItem(feature));\n      });\n    }\n    if(button&&product.product_url)button.href=product.product_url;\n  }\n\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    prev.disabled=false;\n    next.disabled=false;\n    var activePage=0;\n    var touchStartX=null;\n\n    function visibleCards(){\n      if(window.matchMedia&&window.matchMedia('(max-width:480px)').matches)return 1;\n      if(window.matchMedia&&window.matchMedia('(max-width:800px)').matches)return 2;\n      return 3;\n    }\n\n    function pageStarts(){\n      var total=track.querySelectorAll('.interdata-plan-card').length;\n      var visible=Math.min(visibleCards(),total||1);\n      var maxStart=Math.max(0,total-visible);\n      var starts=[];\n      var start=0;\n      while(start<maxStart){\n        starts.push(start);\n        start+=visible;\n      }\n      if(!starts.length||starts[starts.length-1]!==maxStart)starts.push(maxStart);\n      return starts;\n    }\n\n    function renderSlide(animate){\n      var cards=track.querySelectorAll('.interdata-plan-card');\n      var starts=pageStarts();\n      if(!cards.length||!starts.length)return;\n      if(activePage>=starts.length)activePage=starts.length-1;\n      if(activePage<0)activePage=0;\n\n      var cardWidth=cards[0].getBoundingClientRect().width;\n      var trackStyle=window.getComputedStyle?window.getComputedStyle(track):null;\n      var gap=trackStyle?parseFloat(trackStyle.columnGap||trackStyle.gap):12;\n      if(!Number.isFinite(gap))gap=12;\n      if(cardWidth<=0)return;\n\n      track.style.transition=animate?'transform .45s ease':'none';\n      track.style.transform='translate3d('+(-(cardWidth+gap)*starts[activePage])+'px,0,0)';\n      prev.setAttribute('aria-disabled',starts.length>1?'false':'true');\n      next.setAttribute('aria-disabled',starts.length>1?'false':'true');\n    }\n\n    function move(direction){\n      var starts=pageStarts();\n      if(starts.length<=1)return;\n      activePage=parseInt(root.getAttribute('data-inline-page')||activePage,10)||0;\n      activePage=(activePage+direction+starts.length)%starts.length;\n      root.setAttribute('data-inline-page',activePage);\n      renderSlide(true);\n    }\n\n    track.addEventListener('touchstart',function(event){\n      touchStartX=event.touches&&event.touches[0]?event.touches[0].clientX:null;\n    },{passive:true});\n    track.addEventListener('touchend',function(event){\n      if(touchStartX===null)return;\n      var endX=event.changedTouches&&event.changedTouches[0]?event.changedTouches[0].clientX:touchStartX;\n      var distance=endX-touchStartX;\n      touchStartX=null;\n      if(Math.abs(distance)>=40)move(distance<0?1:-1);\n    },{passive:true});\n\n    function resetAfterResize(){\n      activePage=0;\n      root.setAttribute('data-inline-page','0');\n      renderSlide(false);\n    }\n\n    window.addEventListener('resize',resetAfterResize);\n    window.addEventListener('load',resetAfterResize);\n    if('ResizeObserver' in window){\n      var resizeObserver=new ResizeObserver(function(){renderSlide(false);});\n      resizeObserver.observe(root);\n    }\n    window.requestAnimationFrame(function(){renderSlide(false);});\n    window.setTimeout(function(){renderSlide(false);},250);\n    window.setTimeout(function(){renderSlide(false);},1000);\n\n    fetchPlanData().then(function(products){\n      products.forEach(function(product){updateCardFromApi(root,product);});\n      renderSlide(false);\n    });\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  if('MutationObserver' in window){\n    var initQueued=false;\n    new MutationObserver(function(){\n      if(initQueued)return;\n      initQueued=true;\n      window.requestAnimationFrame(function(){\n        initQueued=false;\n        initInterDataCarousels();\n      });\n    }).observe(document.documentElement,{childList:true,subtree:true});\n  }\n})();\n<\/script>\n\n\t<div id=\"gap-610996017\" class=\"gap-element clearfix\" style=\"display:block; height:auto;\">\n\t\t\n<style>\n#gap-610996017 {\n  padding-top: 15px;\n}\n<\/style>\n\t<\/div>\n\t\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: 40px 0 20px; line-height: 1.4;\">Ollama l\u00e0 g\u00ec v\u00e0 v\u00ec sao n\u00ean c\u00e0i \u0111\u1eb7t tr\u00ean Linux?<\/h2>\n<p style=\"text-align: justify;\">Ollama l\u00e0 c\u00f4ng c\u1ee5 m\u00e3 ngu\u1ed3n m\u1edf g\u1ecdn nh\u1eb9, \u0111\u00f3ng g\u00f3i m\u00f4i tr\u01b0\u1eddng th\u1ef1c thi gi\u00fap b\u1ea1n t\u1ea3i v\u1ec1 v\u00e0 ch\u1ea1y c\u00e1c <a href=\"https:\/\/interdata.vn\/blog\/llm-la-gi\/\">LLM (Large Language Model)<\/a> tr\u1ef1c ti\u1ebfp tr\u00ean ph\u1ea7n c\u1ee9ng c\u1ee7a m\u00ecnh. Tr\u00ean m\u00f4i tr\u01b0\u1eddng m\u00e1y ch\u1ee7 Linux, Ollama ho\u1ea1t \u0111\u1ed9ng d\u01b0\u1edbi d\u1ea1ng daemon headless kh\u00f4ng ti\u00eau t\u1ed1n t\u00e0i nguy\u00ean \u0111\u1ed3 h\u1ecda c\u1ee7a h\u1ec7 \u0111i\u1ec1u h\u00e0nh, cho hi\u1ec7u n\u0103ng x\u1eed l\u00fd t\u00e1c v\u1ee5 t\u1ed1i \u0111a.<\/p>\n<p style=\"text-align: justify;\">N\u1ebfu b\u1ea1n \u0111ang s\u1edf h\u1eefu m\u1ed9t h\u1ec7 th\u1ed1ng <a href=\"https:\/\/interdata.vn\/blog\/vps-linux-la-gi\/\">VPS Linux<\/a>, vi\u1ec7c c\u00e0i \u0111\u1eb7t Ollama cung c\u1ea5p API chu\u1ea9n REST t\u01b0\u01a1ng th\u00edch ho\u00e0n to\u00e0n v\u1edbi chu\u1ea9n OpenAI, ph\u1ee5c v\u1ee5 t\u00edch h\u1ee3p \u1ee9ng d\u1ee5ng m\u00e0 kh\u00f4ng lo chi ph\u00ed token ph\u00e1t sinh h\u00e0ng th\u00e1ng. H\u01a1n n\u1eefa, vi\u1ec7c qu\u1ea3n l\u00fd ti\u1ebfn tr\u00ecnh b\u1eb1ng systemd gi\u00fap d\u1ecbch v\u1ee5 AI t\u1ef1 kh\u00f4i ph\u1ee5c sau s\u1ef1 c\u1ed1 ho\u1eb7c reboot server.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-43404\" src=\"https:\/\/interdata.vn\/blog\/wp-content\/uploads\/2026\/09\/Ollama.png\" alt=\"Ollama\" width=\"1000\" height=\"465\" title=\"\" srcset=\"https:\/\/interdata.vn\/blog\/wp-content\/uploads\/2026\/09\/Ollama.png 1908w, https:\/\/interdata.vn\/blog\/wp-content\/uploads\/2026\/09\/Ollama-300x139.png 300w, https:\/\/interdata.vn\/blog\/wp-content\/uploads\/2026\/09\/Ollama-1024x476.png 1024w, https:\/\/interdata.vn\/blog\/wp-content\/uploads\/2026\/09\/Ollama-768x357.png 768w, https:\/\/interdata.vn\/blog\/wp-content\/uploads\/2026\/09\/Ollama-1536x714.png 1536w\" sizes=\"auto, (max-width: 1000px) 100vw, 1000px\" \/><\/p>\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: 40px 0 20px; line-height: 1.4;\">Y\u00eau c\u1ea7u ph\u1ea7n c\u1ee9ng tr\u01b0\u1edbc khi c\u00e0i \u0111\u1eb7t Ollama tr\u00ean Linux<\/h2>\n<p style=\"text-align: justify;\">Ollama kh\u00f4ng b\u1eaft bu\u1ed9c ph\u1ea3i c\u00f3 card \u0111\u1ed3 h\u1ecda chuy\u00ean d\u1ee5ng (GPU). N\u1ebfu kh\u00f4ng c\u00f3 GPU, ch\u01b0\u01a1ng tr\u00ecnh t\u1ef1 \u0111\u1ed9ng chuy\u1ec3n sang ch\u1ebf \u0111\u1ed9 <a href=\"https:\/\/interdata.vn\/blog\/cpu-server\/\">CPU<\/a> inference, tuy t\u1ed1c \u0111\u1ed9 ph\u1ea3n h\u1ed3i ch\u1eadm h\u01a1n nh\u01b0ng v\u1eabn ho\u00e0n to\u00e0n kh\u1ea3 thi cho c\u00e1c m\u00f4 h\u00ecnh nh\u1ecf g\u1ecdn. Dung l\u01b0\u1ee3ng b\u1ed9 nh\u1edb RAM v\u00e0 kh\u00f4ng gian \u1ed5 \u0111\u0129a NVMe l\u00e0 hai y\u1ebfu t\u1ed1 then ch\u1ed1t quy\u1ebft \u0111\u1ecbnh model c\u00f3 t\u1ea3i \u0111\u01b0\u1ee3c v\u00e0o b\u1ed9 nh\u1edb hay kh\u00f4ng.<\/p>\n<table style=\"width: 100%; border-collapse: collapse; margin: 25px 0; font-size: 14px; text-align: left;\">\n<thead>\n<tr style=\"background-color: #1e3a8a; color: #ffffff;\">\n<th style=\"padding: 12px 15px; border: 1px solid #BFDBFE;\">K\u00edch th\u01b0\u1edbc Model<\/th>\n<th style=\"padding: 12px 15px; border: 1px solid #BFDBFE;\">RAM khuy\u1ebfn ngh\u1ecb (CPU)<\/th>\n<th style=\"padding: 12px 15px; border: 1px solid #BFDBFE;\">VRAM t\u1ed1i thi\u1ec3u (GPU)<\/th>\n<th style=\"padding: 12px 15px; border: 1px solid #BFDBFE;\">Dung l\u01b0\u1ee3ng \u1ed5 c\u1ee9ng tr\u1ed1ng<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr style=\"background-color: #f8fafc;\">\n<td style=\"padding: 10px 15px; border: 1px solid #E2E8F0; font-weight: bold;\">7B \/ 8B (Llama 3, Qwen 2.5)<\/td>\n<td style=\"padding: 10px 15px; border: 1px solid #E2E8F0;\">8 GB \u2013 16 GB<\/td>\n<td style=\"padding: 10px 15px; border: 1px solid #E2E8F0;\">6 GB \u2013 8 GB<\/td>\n<td style=\"padding: 10px 15px; border: 1px solid #E2E8F0;\">T\u1ed1i thi\u1ec3u 10 GB SSD<\/td>\n<\/tr>\n<tr>\n<td style=\"padding: 10px 15px; border: 1px solid #E2E8F0; font-weight: bold;\">13B \/ 14B (Qwen 14B, Mistral)<\/td>\n<td style=\"padding: 10px 15px; border: 1px solid #E2E8F0;\">16 GB \u2013 32 GB<\/td>\n<td style=\"padding: 10px 15px; border: 1px solid #E2E8F0;\">12 GB \u2013 16 GB<\/td>\n<td style=\"padding: 10px 15px; border: 1px solid #E2E8F0;\">T\u1ed1i thi\u1ec3u 15 GB SSD<\/td>\n<\/tr>\n<tr style=\"background-color: #f8fafc;\">\n<td style=\"padding: 10px 15px; border: 1px solid #E2E8F0; font-weight: bold;\">32B (DeepSeek-R1 32B)<\/td>\n<td style=\"padding: 10px 15px; border: 1px solid #E2E8F0;\">32 GB \u2013 64 GB<\/td>\n<td style=\"padding: 10px 15px; border: 1px solid #E2E8F0;\">24 GB \u2013 32 GB<\/td>\n<td style=\"padding: 10px 15px; border: 1px solid #E2E8F0;\">T\u1ed1i thi\u1ec3u 30 GB SSD<\/td>\n<\/tr>\n<tr>\n<td style=\"padding: 10px 15px; border: 1px solid #E2E8F0; font-weight: bold;\">70B (Llama 3.3 70B)<\/td>\n<td style=\"padding: 10px 15px; border: 1px solid #E2E8F0;\">64 GB \u2013 128 GB<\/td>\n<td style=\"padding: 10px 15px; border: 1px solid #E2E8F0;\">40 GB \u2013 48 GB<\/td>\n<td style=\"padding: 10px 15px; border: 1px solid #E2E8F0;\">T\u1ed1i thi\u1ec3u 60 GB SSD<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p style=\"font-size: 13px; color: #64748b; margin-top: -15px;\"><em>*L\u01b0u \u00fd: B\u1ea3ng c\u1ea5u h\u00ecnh tr\u00ean \u01b0\u1edbc t\u00ednh theo m\u1ee9c l\u01b0\u1ee3ng h\u00f3a chu\u1ea9n 4-bit (Q4_K_M). Nhu c\u1ea7u RAM th\u1ef1c t\u1ebf s\u1ebd thay \u0111\u1ed5i ph\u1ee5 thu\u1ed9c v\u00e0o m\u1ee9c quantization cao h\u01a1n (Q8, FP16) v\u00e0 \u0111\u1ed9 d\u00e0i ng\u1eef c\u1ea3nh (Context Length) \u0111\u01b0\u1ee3c thi\u1ebft l\u1eadp.<\/em><\/p>\n<p style=\"text-align: justify;\">Tr\u01b0\u1edbc khi ti\u1ebfn h\u00e0nh, b\u1ea1n c\u1ea7n chu\u1ea9n b\u1ecb quy\u1ec1n qu\u1ea3n tr\u1ecb root tr\u00ean h\u1ec7 \u0111i\u1ec1u h\u00e0nh Ubuntu 20.04\/22.04\/24.04, Debian 11\/12 ho\u1eb7c CentOS Stream\/RHEL 9. H\u00e3y l\u00e0m ch\u1ee7 <a href=\"https:\/\/interdata.vn\/blog\/cach-truy-cap-vps-linux-bang-ssh\/\">c\u00e1ch truy c\u1eadp VPS Linux b\u1eb1ng SSH<\/a> \u0111\u1ec3 k\u1ebft n\u1ed1i v\u00e0o m\u00e1y ch\u1ee7 an to\u00e0n tr\u01b0\u1edbc khi ch\u1ea1y l\u1ec7nh c\u00e0i \u0111\u1eb7t.<\/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: #fff; font-size: 34px; font-family: 'Be Vietnam Pro', sans-serif; font-weight: bold; margin: 0; line-height: 1.1;\">Thu\u00ea VPS InterData<\/p>\n<p style=\"color: #dbeafe; font-size: 15px; font-weight: 600; margin-top: 12px;\">CPU th\u1ebf h\u1ec7 m\u1edbi, SSD NVMe U.2, h\u1ed7 tr\u1ee3 k\u1ef9 thu\u1eadt 24\/7<\/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;\">C\u1ea7n VPS Linux \u0111\u1ec3 c\u00e0i Ollama v\u00e0 ch\u1ea1y LLM 24\/7?<\/h3>\n<p style=\"text-align: justify; font-size: 15px; margin-bottom: 15px;\"><a href=\"https:\/\/interdata.vn\/blog\/vps-linux-la-gi\/\">VPS Linux<\/a> cung c\u1ea5p quy\u1ec1n root to\u00e0n di\u1ec7n, cho ph\u00e9p b\u1ea1n thi\u1ebft l\u1eadp Ollama ch\u1ea1y ng\u1ea7m b\u1eb1ng systemd, c\u00e0i th\u00eam <a href=\"https:\/\/interdata.vn\/blog\/docker-la-gi\/\">Docker<\/a> v\u00e0 k\u1ebft n\u1ed1i API n\u1ed9i b\u1ed9 b\u1ea3o m\u1eadt. Dung l\u01b0\u1ee3ng RAM v\u00e0 t\u00e0i nguy\u00ean vi x\u1eed l\u00fd \u0111\u1ed9c l\u1eadp gi\u00fap ti\u1ebfn tr\u00ecnh suy lu\u1eadn m\u00f4 h\u00ecnh ng\u00f4n ng\u1eef lu\u00f4n duy tr\u00ec \u1ed5n \u0111\u1ecbnh.<\/p>\n<p><a style=\"background: linear-gradient(90deg, #2563EB 0%, #1E3A8A 100%); color: #fff; 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 g\u00f3i VPS ch\u1ea1y Ollama \u27f6<\/a><\/p>\n<\/div>\n<\/div>\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: 40px 0 20px; line-height: 1.4;\">C\u00e1ch c\u00e0i \u0111\u1eb7t Ollama tr\u00ean Linux b\u1eb1ng script t\u1ef1 \u0111\u1ed9ng<\/h2>\n<p style=\"text-align: justify;\">C\u00e1ch nhanh nh\u1ea5t \u0111\u1ec3 c\u00e0i \u0111\u1eb7t Ollama l\u00e0 s\u1eed d\u1ee5ng script ch\u00ednh th\u1ee9c t\u1eeb nh\u00e0 ph\u00e1t tri\u1ec3n. L\u1ec7nh c\u00e0i \u0111\u1eb7t t\u1ef1 \u0111\u1ed9ng n\u00e0y s\u1ebd ph\u00e1t hi\u1ec7n ki\u1ebfn tr\u00fac ph\u1ea7n c\u1ee9ng (x86_64 ho\u1eb7c ARM64), t\u1ea3i binary th\u00edch h\u1ee3p, t\u1ea1o user h\u1ec7 th\u1ed1ng <code>ollama<\/code> v\u00e0 thi\u1ebft l\u1eadp m\u1ed9t systemd service t\u1ef1 kh\u1edfi \u0111\u1ed9ng c\u00f9ng h\u1ec7 \u0111i\u1ec1u h\u00e0nh.<\/p>\n<p style=\"text-align: justify;\">\u0110\u0103ng nh\u1eadp v\u00e0o terminal c\u1ee7a server v\u00e0 th\u1ef1c thi l\u1ec7nh duy nh\u1ea5t:<\/p>\n<pre><code># T\u1ea3i v\u00e0 ch\u1ea1y script c\u00e0i \u0111\u1eb7t ch\u00ednh th\u1ee9c t\u1eeb docs.ollama.com\r\ncurl -fsSL https:\/\/ollama.com\/install.sh | sh<\/code><\/pre>\n<p style=\"text-align: justify;\">Qu\u00e1 tr\u00ecnh t\u1ea3i v\u00e0 thi\u1ebft l\u1eadp di\u1ec5n ra t\u1ef1 \u0111\u1ed9ng trong kho\u1ea3ng 1 \u0111\u1ebfn 2 ph\u00fat t\u00f9y theo t\u1ed1c \u0111\u1ed9 m\u1ea1ng c\u1ee7a VPS. K\u1ebft qu\u1ea3 m\u00e0n h\u00ecnh hi\u1ec3n th\u1ecb t\u01b0\u01a1ng t\u1ef1 nh\u01b0 sau:<\/p>\n<pre><code>&gt;&gt;&gt; Downloading ollama...\r\n######################################################################## 100.0%\r\n&gt;&gt;&gt; Installing ollama to \/usr\/local\/bin...\r\n&gt;&gt;&gt; Creating ollama user...\r\n&gt;&gt;&gt; Creating ollama systemd service...\r\n&gt;&gt;&gt; Enabling and starting ollama service...\r\n&gt;&gt;&gt; NVIDIA GPU ready.\r\nThe Ollama API is now available at 127.0.0.1:11434.\r\nInstall complete. Run \"ollama\" from the command line.<\/code><\/pre>\n<p style=\"text-align: justify;\">Ki\u1ec3m tra phi\u00ean b\u1ea3n v\u1eeba c\u00e0i \u0111\u1eb7t \u0111\u1ec3 ch\u1eafc ch\u1eafn Ollama \u0111\u00e3 ch\u1ea1y th\u00e0nh c\u00f4ng:<\/p>\n<pre><code>ollama --version<\/code><\/pre>\n<p style=\"text-align: justify;\">N\u1ebfu b\u1ea1n ch\u01b0a quen c\u00e1c thao t\u00e1c \u0111i\u1ec1u khi\u1ec3n terminal, h\u00e3y xem th\u00eam danh s\u00e1ch <a href=\"https:\/\/interdata.vn\/blog\/cac-lenh-linux-thong-dung\">c\u00e1c l\u1ec7nh Linux c\u01a1 b\u1ea3n<\/a> \u0111\u1ec3 d\u1ec5 d\u00e0ng qu\u1ea3n tr\u1ecb file v\u00e0 ti\u1ebfn tr\u00ecnh tr\u00ean m\u00e1y ch\u1ee7.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-43405\" src=\"https:\/\/interdata.vn\/blog\/wp-content\/uploads\/2026\/09\/Cach-cai-dat-Ollama-tren-Linux-bang-script-tu-dong.jpg\" alt=\"C\u00e1ch c\u00e0i \u0111\u1eb7t Ollama tr\u00ean Linux b\u1eb1ng script t\u1ef1 \u0111\u1ed9ng\" width=\"1000\" height=\"408\" title=\"\" srcset=\"https:\/\/interdata.vn\/blog\/wp-content\/uploads\/2026\/09\/Cach-cai-dat-Ollama-tren-Linux-bang-script-tu-dong.jpg 1000w, https:\/\/interdata.vn\/blog\/wp-content\/uploads\/2026\/09\/Cach-cai-dat-Ollama-tren-Linux-bang-script-tu-dong-300x122.jpg 300w, https:\/\/interdata.vn\/blog\/wp-content\/uploads\/2026\/09\/Cach-cai-dat-Ollama-tren-Linux-bang-script-tu-dong-768x313.jpg 768w\" sizes=\"auto, (max-width: 1000px) 100vw, 1000px\" \/><\/p>\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: 40px 0 20px; line-height: 1.4;\">C\u00e1ch c\u00e0i \u0111\u1eb7t Ollama th\u1ee7 c\u00f4ng tr\u00ean Linux chu\u1ea9n Production<\/h2>\n<p style=\"text-align: justify;\">\u0110\u1ed1i v\u1edbi c\u00e1c k\u1ef9 s\u01b0 h\u1ec7 th\u1ed1ng c\u1ea7n b\u1ea3o m\u1eadt ch\u1eb7t ch\u1ebd ho\u1eb7c m\u00f4i tr\u01b0\u1eddng m\u00e1y ch\u1ee7 enterprise kh\u00f4ng cho ph\u00e9p ch\u1ea1y script pipe tr\u1ef1c ti\u1ebfp t\u1eeb internet, ph\u01b0\u01a1ng ph\u00e1p c\u00e0i th\u1ee7 c\u00f4ng (manual install) l\u00e0 ti\u00eau chu\u1ea9n k\u1ef9 thu\u1eadt b\u1eaft bu\u1ed9c.<\/p>\n<h3 style=\"font-size: 18px; font-weight: bold; color: #1e3a8a; margin-top: 25px;\">B\u01b0\u1edbc 1: T\u1ea3i file n\u00e9n binary ch\u00ednh th\u1ee9c<\/h3>\n<p style=\"text-align: justify;\">T\u00f9y thu\u1ed9c v\u00e0o ki\u1ebfn tr\u00fac chip c\u1ee7a m\u00e1y ch\u1ee7 (Intel\/AMD ho\u1eb7c ARM64), b\u1ea1n ch\u1ecdn g\u00f3i t\u1ea3i v\u1ec1 t\u01b0\u01a1ng \u1ee9ng t\u1eeb t\u00e0i li\u1ec7u ch\u00ednh th\u1ee9c c\u1ee7a Ollama:<\/p>\n<pre><code># D\u00e0nh cho CPU AMD64 (x86_64 ph\u1ed5 bi\u1ebfn tr\u00ean VPS):\r\ncurl -fsSL https:\/\/ollama.com\/download\/ollama-linux-amd64.tar.zst | sudo tar --zstd -x -C \/usr\r\n\r\n# D\u00e0nh cho ki\u1ebfn tr\u00fac ARM64:\r\ncurl -fsSL https:\/\/ollama.com\/download\/ollama-linux-arm64.tar.zst | sudo tar --zstd -x -C \/usr<\/code><\/pre>\n<h3 style=\"font-size: 18px; font-weight: bold; color: #1e3a8a; margin-top: 25px;\">B\u01b0\u1edbc 2: T\u1ea1o User v\u00e0 Group ph\u00e2n quy\u1ec1n h\u1ec7 th\u1ed1ng<\/h3>\n<p style=\"text-align: justify;\">Tuy\u1ec7t \u0111\u1ed1i kh\u00f4ng ch\u1ea1y daemon Ollama d\u01b0\u1edbi quy\u1ec1n root v\u00ec l\u00fd do an to\u00e0n m\u1ea1ng. H\u00e3y t\u1ea1o m\u1ed9t user ri\u00eang bi\u1ec7t kh\u00f4ng c\u00f3 shell \u0111\u0103ng nh\u1eadp:<\/p>\n<pre><code># T\u1ea1o user h\u1ec7 th\u1ed1ng v\u00e0 th\u01b0 m\u1ee5c home ri\u00eang\r\nsudo useradd -r -s \/bin\/false -U -m -d \/usr\/share\/ollama ollama\r\n\r\n# Th\u00eam t\u00e0i kho\u1ea3n hi\u1ec7n t\u1ea1i v\u00e0o nh\u00f3m ollama\r\nsudo usermod -a -G ollama $(whoami)<\/code><\/pre>\n<h3 style=\"font-size: 18px; font-weight: bold; color: #1e3a8a; margin-top: 25px;\">B\u01b0\u1edbc 3: C\u1ea5u h\u00ecnh systemd service<\/h3>\n<p style=\"text-align: justify;\">T\u1ea1o file \u0111\u1ecbnh ngh\u0129a service cho systemd \u0111\u1ec3 t\u1ef1 kh\u1edfi ch\u1ea1y ti\u1ebfn tr\u00ecnh khi reboot:<\/p>\n<pre><code>sudo nano \/etc\/systemd\/system\/ollama.service<\/code><\/pre>\n<p style=\"text-align: justify;\">D\u00e1n n\u1ed9i dung c\u1ea5u h\u00ecnh chu\u1ea9n sau v\u00e0o file:<\/p>\n<pre><code>[Unit]\r\nDescription=Ollama Service\r\nAfter=network-online.target\r\n\r\n[Service]\r\nExecStart=\/usr\/bin\/ollama serve\r\nUser=ollama\r\nGroup=ollama\r\nRestart=always\r\nRestartSec=3\r\nEnvironment=\"PATH=$PATH\"\r\n\r\n[Install]\r\nWantedBy=multi-user.target<\/code><\/pre>\n<h3 style=\"font-size: 18px; font-weight: bold; color: #1e3a8a; margin-top: 25px;\">B\u01b0\u1edbc 4: N\u1ea1p c\u1ea5u h\u00ecnh v\u00e0 k\u00edch ho\u1ea1t ti\u1ebfn tr\u00ecnh<\/h3>\n<pre><code># N\u1ea1p l\u1ea1i systemd daemon\r\nsudo systemctl daemon-reload\r\n\r\n# B\u1eadt t\u1ef1 kh\u1edfi \u0111\u1ed9ng v\u00e0 ch\u1ea1y d\u1ecbch v\u1ee5 ngay l\u1eadp t\u1ee9c\r\nsudo systemctl enable ollama\r\nsudo systemctl start ollama\r\n\r\n# Ki\u1ec3m tra tr\u1ea1ng th\u00e1i \u0111ang active (running)\r\nsudo systemctl status ollama<\/code><\/pre>\n<table style=\"width: 100%; border-collapse: collapse; margin: 25px 0; font-size: 14px; text-align: left;\">\n<thead>\n<tr style=\"background-color: #1e3a8a; color: #ffffff;\">\n<th style=\"padding: 12px 15px; border: 1px solid #BFDBFE;\">Ti\u00eau ch\u00ed<\/th>\n<th style=\"padding: 12px 15px; border: 1px solid #BFDBFE;\">C\u00e0i \u0111\u1eb7t t\u1ef1 \u0111\u1ed9ng (Script)<\/th>\n<th style=\"padding: 12px 15px; border: 1px solid #BFDBFE;\">C\u00e0i \u0111\u1eb7t th\u1ee7 c\u00f4ng (Manual)<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr style=\"background-color: #f8fafc;\">\n<td style=\"padding: 10px 15px; border: 1px solid #E2E8F0; font-weight: bold;\">Th\u1eddi gian tri\u1ec3n khai<\/td>\n<td style=\"padding: 10px 15px; border: 1px solid #E2E8F0;\">1 &#8211; 2 ph\u00fat, ch\u1ec9 m\u1ed9t d\u00f2ng l\u1ec7nh<\/td>\n<td style=\"padding: 10px 15px; border: 1px solid #E2E8F0;\">5 &#8211; 10 ph\u00fat, c\u1ea5u h\u00ecnh t\u1eebng ph\u1ea7n<\/td>\n<\/tr>\n<tr>\n<td style=\"padding: 10px 15px; border: 1px solid #E2E8F0; font-weight: bold;\">Kh\u1ea3 n\u0103ng ki\u1ec3m so\u00e1t<\/td>\n<td style=\"padding: 10px 15px; border: 1px solid #E2E8F0;\">T\u1ef1 g\u00e1n \u0111\u01b0\u1eddng d\u1eabn v\u00e0 c\u1ea5u h\u00ecnh m\u1eb7c \u0111\u1ecbnh<\/td>\n<td style=\"padding: 10px 15px; border: 1px solid #E2E8F0;\">Ki\u1ec3m so\u00e1t tuy\u1ec7t \u0111\u1ed1i v\u1ecb tr\u00ed binary v\u00e0 service<\/td>\n<\/tr>\n<tr style=\"background-color: #f8fafc;\">\n<td style=\"padding: 10px 15px; border: 1px solid #E2E8F0; font-weight: bold;\">\u0110\u1ed1i t\u01b0\u1ee3ng ph\u00f9 h\u1ee3p<\/td>\n<td style=\"padding: 10px 15px; border: 1px solid #E2E8F0;\">Dev\/Test c\u00e1 nh\u00e2n, th\u1eed nghi\u1ec7m nhanh<\/td>\n<td style=\"padding: 10px 15px; border: 1px solid #E2E8F0;\">Production server, m\u00f4i tr\u01b0\u1eddng enterprise<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\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: 40px 0 20px; line-height: 1.4;\">C\u1ea5u h\u00ecnh GPU NVIDIA CUDA v\u00e0 AMD ROCm cho Ollama<\/h2>\n<p style=\"text-align: justify;\">Khi b\u1ea1n trang b\u1ecb m\u00e1y ch\u1ee7 c\u00f3 GPU r\u1eddi, vi\u1ec7c c\u1ea5u h\u00ecnh chu\u1ea9n driver s\u1ebd gi\u00fap Ollama \u0111\u01b0a to\u00e0n b\u1ed9 tr\u1ecdng s\u1ed1 (weights) c\u1ee7a m\u00f4 h\u00ecnh v\u00e0o VRAM, mang l\u1ea1i t\u1ed1c \u0111\u1ed9 inference nhanh g\u1ea5p h\u00e0ng ch\u1ee5c l\u1ea7n so v\u1edbi CPU.<\/p>\n<h3 style=\"font-size: 18px; font-weight: bold; color: #1e3a8a; margin-top: 25px;\">\u0110\u1ed1i v\u1edbi GPU NVIDIA (CUDA)<\/h3>\n<p style=\"text-align: justify;\">Ollama t\u1ef1 \u0111\u1ed9ng ph\u00e1t hi\u1ec7n GPU NVIDIA n\u1ebfu h\u1ec7 th\u1ed1ng \u0111\u00e3 c\u00e0i driver chu\u1ea9n v\u00e0 NVIDIA CUDA Toolkit. Ki\u1ec3m tra tr\u1ea1ng th\u00e1i card m\u00e0n h\u00ecnh b\u1eb1ng c\u00e2u l\u1ec7nh:<\/p>\n<pre><code>nvidia-smi<\/code><\/pre>\n<p style=\"text-align: justify;\">N\u1ebfu l\u1ec7nh <code>nvidia-smi<\/code> hi\u1ec3n th\u1ecb th\u00f4ng tin GPU c\u00f9ng phi\u00ean b\u1ea3n Driver Version v\u00e0 CUDA Version h\u1ee3p l\u1ec7, d\u1ecbch v\u1ee5 Ollama s\u1ebd t\u1ef1 \u0111\u1ed9ng k\u00edch ho\u1ea1t th\u01b0 vi\u1ec7n t\u0103ng t\u1ed1c m\u00e0 kh\u00f4ng c\u1ea7n ch\u1ec9nh s\u1eeda m\u00e3 ngu\u1ed3n.<\/p>\n<h3 style=\"font-size: 18px; font-weight: bold; color: #1e3a8a; margin-top: 25px;\">\u0110\u1ed1i v\u1edbi GPU AMD (ROCm)<\/h3>\n<p style=\"text-align: justify;\">N\u1ebfu m\u00e1y ch\u1ee7 s\u1eed d\u1ee5ng card \u0111\u1ed3 h\u1ecda AMD Radeon ho\u1eb7c Instinct, b\u1ea1n c\u1ea7n c\u00e0i \u0111\u1eb7t b\u1ed9 AMD ROCm v7 theo t\u00e0i li\u1ec7u ch\u00ednh th\u1ee9c c\u1ee7a AMD, sau \u0111\u00f3 t\u1ea3i b\u1ea3n build n\u00e9n t\u00edch h\u1ee3p ri\u00eang cho ROCm:<\/p>\n<pre><code># T\u1ea3i g\u00f3i c\u00e0i \u0111\u1eb7t h\u1ed7 tr\u1ee3 AMD ROCm\r\ncurl -fsSL https:\/\/ollama.com\/download\/ollama-linux-amd64-rocm.tar.zst | sudo tar --zstd -x -C \/usr<\/code><\/pre>\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: 40px 0 20px; line-height: 1.4;\">Thi\u1ebft l\u1eadp bi\u1ebfn m\u00f4i tr\u01b0\u1eddng quan tr\u1ecdng khi ch\u1ea1y Ollama tr\u00ean VPS Linux<\/h2>\n<p style=\"text-align: justify;\">Theo m\u1eb7c \u0111\u1ecbnh b\u1ea3o m\u1eadt, Ollama ch\u1ec9 l\u1eafng nghe k\u1ebft n\u1ed1i t\u1ea1i \u0111\u1ecba ch\u1ec9 n\u1ed9i b\u1ed9 <code>127.0.0.1:11434<\/code> v\u00e0 l\u01b0u d\u1eef li\u1ec7u m\u00f4 h\u00ecnh \u1edf ph\u00e2n v\u00f9ng g\u1ed1c <code>\/usr\/share\/ollama\/.ollama\/models<\/code>. Khi tri\u1ec3n khai tr\u00ean VPS Linux \u0111\u1ec3 l\u00e0m m\u00e1y ch\u1ee7 API n\u1ed9i b\u1ed9, b\u1ea1n c\u1ea7n \u0111i\u1ec1u ch\u1ec9nh c\u00e1c bi\u1ebfn m\u00f4i tr\u01b0\u1eddng \u0111\u1ec3 m\u1edf port ho\u1eb7c \u0111\u1ed5i th\u01b0 m\u1ee5c l\u01b0u tr\u1eef sang \u1ed5 c\u1ee9ng th\u1ee9 hai.<\/p>\n<p style=\"text-align: justify;\">C\u00e1ch chu\u1ea9n m\u1ef1c nh\u1ea5t tr\u00ean Linux l\u00e0 d\u00f9ng systemd override:<\/p>\n<pre><code>sudo systemctl edit ollama<\/code><\/pre>\n<p style=\"text-align: justify;\">Tr\u00ecnh so\u1ea1n th\u1ea3o m\u1edf ra, b\u1ea1n \u0111i\u1ec1n c\u00e1c th\u00f4ng s\u1ed1 c\u1ea7n thi\u1ebft gi\u1eefa hai d\u00f2ng ch\u00fa th\u00edch:<\/p>\n<pre><code>[Service]\r\nEnvironment=\"OLLAMA_HOST=0.0.0.0:11434\"\r\nEnvironment=\"OLLAMA_ORIGINS=*\"\r\nEnvironment=\"OLLAMA_MODELS=\/mnt\/data\/ollama\/models\"\r\nEnvironment=\"OLLAMA_FLASH_ATTENTION=1\"\r\nEnvironment=\"OLLAMA_KEEP_ALIVE=24h\"<\/code><\/pre>\n<table style=\"width: 100%; border-collapse: collapse; margin: 25px 0; font-size: 14px; text-align: left;\">\n<thead>\n<tr style=\"background-color: #1e3a8a; color: #ffffff;\">\n<th style=\"padding: 12px 15px; border: 1px solid #BFDBFE;\">Bi\u1ebfn m\u00f4i tr\u01b0\u1eddng<\/th>\n<th style=\"padding: 12px 15px; border: 1px solid #BFDBFE;\">M\u1eb7c \u0111\u1ecbnh<\/th>\n<th style=\"padding: 12px 15px; border: 1px solid #BFDBFE;\">Gi\u1ea3i th\u00edch v\u00e0 Tr\u01b0\u1eddng h\u1ee3p \u00e1p d\u1ee5ng<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr style=\"background-color: #f8fafc;\">\n<td style=\"padding: 10px 15px; border: 1px solid #E2E8F0; font-weight: bold;\">OLLAMA_HOST<\/td>\n<td style=\"padding: 10px 15px; border: 1px solid #E2E8F0;\">127.0.0.1:11434<\/td>\n<td style=\"padding: 10px 15px; border: 1px solid #E2E8F0;\">\u0110\u1eb7t th\u00e0nh <code>0.0.0.0:11434<\/code> khi c\u1ea7n cho ph\u00e9p m\u00e1y kh\u00e1c trong m\u1ea1ng g\u1ecdi API.<\/td>\n<\/tr>\n<tr>\n<td style=\"padding: 10px 15px; border: 1px solid #E2E8F0; font-weight: bold;\">OLLAMA_ORIGINS<\/td>\n<td style=\"padding: 10px 15px; border: 1px solid #E2E8F0;\">Ch\u1ec9 localhost<\/td>\n<td style=\"padding: 10px 15px; border: 1px solid #E2E8F0;\">C\u1ea5u h\u00ecnh CORS khi t\u00edch h\u1ee3p v\u1edbi c\u00e1c Web UI ho\u1eb7c frontend ch\u1ea1y \u1edf t\u00ean mi\u1ec1n kh\u00e1c.<\/td>\n<\/tr>\n<tr style=\"background-color: #f8fafc;\">\n<td style=\"padding: 10px 15px; border: 1px solid #E2E8F0; font-weight: bold;\">OLLAMA_MODELS<\/td>\n<td style=\"padding: 10px 15px; border: 1px solid #E2E8F0;\">\/usr\/share\/ollama\/..<\/td>\n<td style=\"padding: 10px 15px; border: 1px solid #E2E8F0;\">Ch\u1ec9 \u0111\u1ecbnh th\u01b0 m\u1ee5c l\u01b0u tr\u1eef model sang \u1ed5 c\u1ee9ng g\u1eafn th\u00eam n\u1ebfu ph\u00e2n v\u00f9ng root b\u1ecb \u0111\u1ea7y.<\/td>\n<\/tr>\n<tr>\n<td style=\"padding: 10px 15px; border: 1px solid #E2E8F0; font-weight: bold;\">OLLAMA_KEEP_ALIVE<\/td>\n<td style=\"padding: 10px 15px; border: 1px solid #E2E8F0;\">5m (5 ph\u00fat)<\/td>\n<td style=\"padding: 10px 15px; border: 1px solid #E2E8F0;\">Th\u1eddi gian gi\u1eef model trong RAM\/VRAM. \u0110\u1eb7t <code>-1<\/code> ho\u1eb7c <code>24h<\/code> \u0111\u1ec3 tr\u00e1nh load l\u1ea1i model.<\/td>\n<\/tr>\n<tr style=\"background-color: #f8fafc;\">\n<td style=\"padding: 10px 15px; border: 1px solid #E2E8F0; font-weight: bold;\">OLLAMA_FLASH_ATTENTION<\/td>\n<td style=\"padding: 10px 15px; border: 1px solid #E2E8F0;\">0 (T\u1eaft)<\/td>\n<td style=\"padding: 10px 15px; border: 1px solid #E2E8F0;\">B\u1eadt l\u00ean <code>1<\/code> \u0111\u1ec3 ti\u1ebft ki\u1ec7m VRAM v\u00e0 t\u0103ng t\u1ed1c \u0111\u1ed9 x\u1eed l\u00fd khi prompt \u0111\u1ea7u v\u00e0o d\u00e0i.<\/td>\n<\/tr>\n<tr>\n<td style=\"padding: 10px 15px; border: 1px solid #E2E8F0; font-weight: bold;\">OLLAMA_NUM_PARALLEL<\/td>\n<td style=\"padding: 10px 15px; border: 1px solid #E2E8F0;\">1<\/td>\n<td style=\"padding: 10px 15px; border: 1px solid #E2E8F0;\">S\u1ed1 l\u01b0\u1ee3ng request x\u1eed l\u00fd \u0111\u1ed3ng th\u1eddi. T\u0103ng l\u00ean khi c\u00f3 nhi\u1ec1u user chat c\u00f9ng l\u00fac.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p style=\"text-align: justify;\">L\u01b0u file v\u00e0 kh\u1edfi \u0111\u1ed9ng l\u1ea1i d\u1ecbch v\u1ee5 \u0111\u1ec3 c\u00e1c bi\u1ebfn m\u00f4i tr\u01b0\u1eddng c\u00f3 hi\u1ec7u l\u1ef1c:<\/p>\n<pre><code>sudo systemctl daemon-reload\r\nsudo systemctl restart ollama<\/code><\/pre>\n<div style=\"background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%); border: 1.5px solid #2563EB; border-radius: 12px; padding: 28px; margin: 35px 0; text-align: center;\">\n<p style=\"font-family: 'Be Vietnam Pro', sans-serif; font-size: 22px; font-weight: bold; color: #1e3a8a; margin: 0 0 8px;\">S\u0103n deal VPS &amp; Cloud Server tr\u01b0\u1edbc khi ch\u1ed1t g\u00f3i<\/p>\n<p style=\"font-size: 15px; color: #4b5563; margin-bottom: 20px;\">Canh Me t\u1ed5ng h\u1ee3p khuy\u1ebfn m\u00e3i, m\u00e3 gi\u1ea3m gi\u00e1 v\u00e0 \u0111i\u1ec1u ki\u1ec7n \u0111\u0103ng k\u00fd m\u1edbi nh\u1ea5t \u2014 xem tr\u01b0\u1edbc \u0111\u1ec3 ch\u1ecdn c\u1ea5u h\u00ecnh ch\u1ea1y Ollama v\u1edbi chi ph\u00ed t\u1ed1t nh\u1ea5t.<\/p>\n<p><a style=\"background: #2563EB; color: #fff; padding: 12px 30px; text-decoration: none; font-weight: 600; border-radius: 8px; display: inline-block;\" href=\"https:\/\/interdata.vn\/canhme\/\" target=\"_blank\" rel=\"noopener\">Xem hot deal t\u1ea1i Canh Me \u27f6<\/a><\/p>\n<\/div>\n<h2 id=\"section7\" style=\"color: #1e3a8a; font-size: 24px; font-weight: bold; text-align: left; border-left: 5px solid #2563EB; padding-left: 15px; margin: 40px 0 20px; line-height: 1.4;\">Kh\u1edfi ch\u1ea1y model \u0111\u1ea7u ti\u00ean v\u00e0 c\u00e1c l\u1ec7nh Ollama CLI c\u1ea7n bi\u1ebft<\/h2>\n<p style=\"text-align: justify;\">Sau khi ho\u00e0n th\u00e0nh c\u00e1c b\u01b0\u1edbc c\u00e0i \u0111\u1eb7t Ollama tr\u00ean Linux, b\u1ea1n c\u00f3 th\u1ec3 t\u01b0\u01a1ng t\u00e1c tr\u1ef1c ti\u1ebfp v\u1edbi c\u00e1c m\u00f4 h\u00ecnh ng\u00f4n ng\u1eef l\u1edbn ngay tr\u00ean giao di\u1ec7n d\u00f2ng l\u1ec7nh. L\u1ec7nh <code>ollama run<\/code> s\u1ebd t\u1ef1 \u0111\u1ed9ng ki\u1ec3m tra model trong m\u00e1y ch\u1ee7, n\u1ebfu ch\u01b0a c\u00f3 s\u1ebd t\u1ef1 pull v\u1ec1 v\u00e0 m\u1edf phi\u00ean chat.<\/p>\n<pre><code># T\u1ea3i v\u00e0 ch\u1ea1y th\u1eed m\u00f4 h\u00ecnh DeepSeek-R1 (b\u1ea3n 7B ho\u1eb7c 8B t\u1ed1i \u01b0u cho VPS)\r\nollama run deepseek-r1:8b\r\n\r\n# T\u1ea3i tr\u01b0\u1edbc m\u00f4 h\u00ecnh m\u00e0 kh\u00f4ng c\u1ea7n m\u1edf giao di\u1ec7n chat\r\nollama pull llama3.3\r\n\r\n# T\u1ea3i m\u00f4 h\u00ecnh Qwen 2.5 ho\u1eb7c Gemma 2\r\nollama pull qwen2.5:7b<\/code><\/pre>\n<p style=\"text-align: justify;\">C\u00e1c thao t\u00e1c qu\u1ea3n tr\u1ecb t\u00e0i nguy\u00ean m\u00f4 h\u00ecnh th\u01b0\u1eddng d\u00f9ng g\u1ed3m c\u00f3:<\/p>\n<ul style=\"line-height: 1.8;\">\n<li><code>ollama list<\/code>: Hi\u1ec3n th\u1ecb danh s\u00e1ch c\u00e1c model hi\u1ec7n c\u00f3 tr\u00ean server v\u00e0 dung l\u01b0\u1ee3ng \u0111\u0129a t\u01b0\u01a1ng \u1ee9ng.<\/li>\n<li><code>ollama ps<\/code>: Xem m\u00f4 h\u00ecnh n\u00e0o \u0111ang \u0111\u01b0\u1ee3c n\u1ea1p tr\u1ef1c ti\u1ebfp trong RAM\/VRAM v\u00e0 ph\u1ea7n tr\u0103m t\u00e0i nguy\u00ean s\u1eed d\u1ee5ng.<\/li>\n<li><code>ollama rm &lt;t\u00ean-model&gt;<\/code>: X\u00f3a model kh\u1ecfi m\u00e1y ch\u1ee7 \u0111\u1ec3 gi\u1ea3i ph\u00f3ng b\u1ed9 nh\u1edb l\u01b0u tr\u1eef.<\/li>\n<li><code>ollama show &lt;t\u00ean-model&gt; --modelfile<\/code>: Xem c\u00e1c th\u00f4ng s\u1ed1 c\u1ea5u h\u00ecnh h\u1ec7 th\u1ed1ng, template v\u00e0 prompt c\u1ee7a m\u00f4 h\u00ecnh.<\/li>\n<\/ul>\n<h2 id=\"section8\" style=\"color: #1e3a8a; font-size: 24px; font-weight: bold; text-align: left; border-left: 5px solid #2563EB; padding-left: 15px; margin: 40px 0 20px; line-height: 1.4;\">K\u1ebft n\u1ed1i Ollama v\u1edbi Open WebUI, n8n v\u00e0 ki\u1ebfn tr\u00fac AI Agent<\/h2>\n<p style=\"text-align: justify;\">Vi\u1ec7c s\u1eed d\u1ee5ng CLI ch\u1ec9 th\u00edch h\u1ee3p cho vi\u1ec7c ki\u1ec3m th\u1eed. \u0110\u1ec3 \u0111\u01b0a v\u00e0o s\u1eed d\u1ee5ng th\u1ef1c t\u1ebf, ng\u01b0\u1eddi ta th\u01b0\u1eddng x\u00e2y d\u1ef1ng giao di\u1ec7n tr\u1ef1c quan t\u01b0\u01a1ng t\u1ef1 ChatGPT ho\u1eb7c g\u1eafn v\u00e0o c\u00e1c lu\u1ed3ng t\u1ef1 \u0111\u1ed9ng h\u00f3a c\u00f4ng vi\u1ec7c. Vi\u1ec7c tri\u1ec3n khai c\u00e1c \u1ee9ng d\u1ee5ng n\u00e0y tr\u1edf n\u00ean d\u1ec5 d\u00e0ng h\u01a1n bao gi\u1edd h\u1ebft khi b\u1ea1n hi\u1ec3u r\u00f5 <a href=\"https:\/\/interdata.vn\/blog\/docker-la-gi\/\">Docker l\u00e0 g\u00ec<\/a> \u0111\u1ec3 c\u00f4 l\u1eadp c\u00e1c m\u00f4i tr\u01b0\u1eddng ch\u1ea1y \u1ee9ng d\u1ee5ng.<\/p>\n<p style=\"text-align: justify;\">\u0110\u1ec3 d\u1ef1ng giao di\u1ec7n chat Open WebUI k\u1ebft n\u1ed1i tr\u1ef1c ti\u1ebfp \u0111\u1ebfn Ollama \u0111\u00e3 c\u00e0i tr\u00ean m\u00e1y ch\u1ee7 Linux, b\u1ea1n ch\u1ec9 c\u1ea7n th\u1ef1c thi Docker command:<\/p>\n<pre><code>docker run -d -p 3000:8080 \\\r\n  --add-host=host.docker.internal:host-gateway \\\r\n  -v open-webui:\/app\/backend\/data \\\r\n  --name open-webui \\\r\n  --restart always \\\r\n  ghcr.io\/open-webui\/open-webui:main<\/code><\/pre>\n<p style=\"text-align: justify;\">B\u00ean c\u1ea1nh giao di\u1ec7n chat, m\u00f4 h\u00ecnh Ollama tr\u00ean m\u00e1y ch\u1ee7 Linux l\u00e0 th\u00e0nh ph\u1ea7n h\u1ea1 t\u1ea7ng l\u00fd t\u01b0\u1edfng khi x\u00e2y d\u1ef1ng <a href=\"https:\/\/interdata.vn\/blog\/ai-agent-la-gi\/\">AI Agent<\/a> th\u1ef1c hi\u1ec7n c\u00e1c t\u00e1c v\u1ee5 ph\u00e2n t\u00edch d\u1eef li\u1ec7u chuy\u00ean s\u00e2u. B\u1ea1n c\u00f3 th\u1ec3 nhanh ch\u00f3ng k\u1ebft n\u1ed1i Ollama v\u1edbi c\u00f4ng c\u1ee5 t\u1ef1 \u0111\u1ed9ng h\u00f3a th\u00f4ng qua b\u00e0i h\u01b0\u1edbng d\u1eabn <a href=\"https:\/\/interdata.vn\/blog\/cai-dat-n8n-bang-docker\/\">c\u00e0i \u0111\u1eb7t n8n b\u1eb1ng Docker tr\u00ean VPS<\/a>. Khi \u0111\u00f3, n8n s\u1ebd g\u1ecdi v\u00e0o c\u1ed5ng 11434 c\u1ee7a Ollama nh\u01b0 m\u1ed9t local LLM node b\u1ea3o m\u1eadt kh\u00f4ng m\u1ea5t ph\u00ed API.<\/p>\n<p style=\"text-align: justify;\">\u0110\u1ec3 h\u1ec7 th\u1ed1ng v\u1eadn h\u00e0nh li\u00ean t\u1ee5c cho doanh nghi\u1ec7p, b\u1ea1n n\u00ean tham kh\u1ea3o gi\u1ea3i ph\u00e1p <a href=\"https:\/\/interdata.vn\/blog\/thiet-lap-vps-linux-cho-ai\/\">thi\u1ebft l\u1eadp VPS Linux cho AI ho\u1ea1t \u0111\u1ed9ng 24\/7<\/a> nh\u1eb1m c\u1ea5u h\u00ecnh firewall, log rotate v\u00e0 swap ram t\u1ed1i \u01b0u.<\/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: #fff; font-size: 34px; font-family: 'Be Vietnam Pro', sans-serif; font-weight: bold; margin: 0; line-height: 1.1;\">Cloud Server InterData<\/p>\n<p style=\"color: #dbeafe; font-size: 15px; font-weight: 600; margin-top: 12px;\">N\u00e2ng\/h\u1ea1 t\u00e0i nguy\u00ean nhanh theo t\u1ea3i, m\u1ea1ng t\u1ed1c \u0111\u1ed9 cao<\/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;\">Ch\u1ea1y model 30B+ ho\u1eb7c ph\u1ee5c v\u1ee5 nhi\u1ec1u user c\u00f9ng l\u00fac?<\/h3>\n<p style=\"text-align: justify; font-size: 15px; margin-bottom: 15px;\">Khi kh\u1ed1i l\u01b0\u1ee3ng x\u1eed l\u00fd t\u0103ng cao v\u1edbi c\u00e1c m\u00f4 h\u00ecnh tham s\u1ed1 l\u1edbn t\u1eeb 32B \u0111\u1ebfn 70B, Cloud Server cung c\u1ea5p n\u0103ng l\u1ef1c m\u1edf r\u1ed9ng t\u00e0i nguy\u00ean vCPU, dung l\u01b0\u1ee3ng RAM l\u1edbn nhanh ch\u00f3ng m\u00e0 kh\u00f4ng l\u00e0m gi\u00e1n \u0111o\u1ea1n h\u1ec7 th\u1ed1ng AI \u0111ang ch\u1ea1y.<\/p>\n<p><a style=\"background: linear-gradient(90deg, #2563EB 0%, #1E3A8A 100%); color: #fff; 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 g\u00f3i Cloud Server \u27f6<\/a><\/p>\n<\/div>\n<\/div>\n<h2 id=\"section9\" style=\"color: #1e3a8a; font-size: 24px; font-weight: bold; text-align: left; border-left: 5px solid #2563EB; padding-left: 15px; margin: 40px 0 20px; line-height: 1.4;\">X\u1eed l\u00fd l\u1ed7i th\u01b0\u1eddng g\u1eb7p khi c\u00e0i \u0111\u1eb7t Ollama tr\u00ean m\u00e1y ch\u1ee7 Linux<\/h2>\n<h3 style=\"font-size: 18px; font-weight: bold; color: #1e3a8a; margin-top: 25px;\">1. Ollama kh\u00f4ng nh\u1eadn di\u1ec7n \u0111\u01b0\u1ee3c GPU NVIDIA (Ch\u1ec9 ch\u1ea1y CPU)<\/h3>\n<p style=\"text-align: justify;\">Hi\u1ec7n t\u01b0\u1ee3ng n\u00e0y x\u1ea3y ra khi Ollama ghi nh\u1eadn GPU discovery th\u1ea5t b\u1ea1i. Nguy\u00ean nh\u00e2n th\u01b0\u1eddng do thi\u1ebfu th\u01b0 vi\u1ec7n CUDA t\u01b0\u01a1ng th\u00edch trong bi\u1ebfn m\u00f4i tr\u01b0\u1eddng ho\u1eb7c driver ch\u01b0a nh\u1eadn di\u1ec7n. B\u1ea1n ki\u1ec3m tra log h\u1ec7 th\u1ed1ng b\u1eb1ng l\u1ec7nh:<\/p>\n<pre><code>journalctl -u ollama --no-pager -e<\/code><\/pre>\n<p style=\"text-align: justify;\">N\u1ebfu b\u1ea1n mu\u1ed1n \u00e9p bu\u1ed9c h\u1ec7 th\u1ed1ng ch\u1ea1y ch\u1ebf \u0111\u1ed9 CPU t\u1ed1i \u01b0u instruction set AVX2 (trong tr\u01b0\u1eddng h\u1ee3p driver b\u1ecb xung \u0111\u1ed9t), b\u1ea1n c\u00f3 th\u1ec3 g\u00e1n bi\u1ebfn m\u00f4i tr\u01b0\u1eddng: <code>OLLAMA_LLM_LIBRARY=\"cpu_avx2\"<\/code>.<\/p>\n<h3 style=\"font-size: 18px; font-weight: bold; color: #1e3a8a; margin-top: 25px;\">2. L\u1ed7i c\u1ed5ng 11434 b\u1ecb chi\u1ebfm d\u1ee5ng (bind: address already in use)<\/h3>\n<p style=\"text-align: justify;\">L\u1ed7i n\u00e0y xu\u1ea5t hi\u1ec7n khi b\u1ea1n ch\u1ea1y l\u1ec7nh <code>ollama serve<\/code> th\u1ee7 c\u00f4ng trong khi ti\u1ebfn tr\u00ecnh systemd service n\u1ec1n v\u1eabn \u0111ang ch\u1ea1y. H\u00e3y ki\u1ec3m tra c\u00e1c ti\u1ebfn tr\u00ecnh \u0111ang chi\u1ebfm c\u1ed5ng:<\/p>\n<pre><code>sudo ss -tulpn | grep 11434\r\n# N\u1ebfu service ollama \u0111ang chi\u1ebfm gi\u1eef, qu\u1ea3n l\u00fd th\u00f4ng qua systemctl ch\u1ee9 kh\u00f4ng ch\u1ea1y serve tay:\r\nsudo systemctl restart ollama<\/code><\/pre>\n<h3 style=\"font-size: 18px; font-weight: bold; color: #1e3a8a; margin-top: 25px;\">3. Ti\u1ebfn tr\u00ecnh b\u1ecb t\u1eaft \u0111\u1ed9t ng\u1ed9t (Killed \/ Out of Memory)<\/h3>\n<p style=\"text-align: justify;\">Khi b\u1ea1n c\u1ed1 n\u1ea1p m\u1ed9t model v\u01b0\u1ee3t qu\u00e1 l\u01b0\u1ee3ng RAM v\u1eadt l\u00fd c\u1ee7a server, tr\u00ecnh qu\u1ea3n l\u00fd Linux OOM Killer s\u1ebd t\u1ef1 \u0111\u1ed9ng ng\u1eaft ti\u1ebfn tr\u00ecnh Ollama. Kh\u1eafc ph\u1ee5c t\u1ea1m th\u1eddi b\u1eb1ng c\u00e1ch k\u00edch ho\u1ea1t th\u00eam 8GB &#8211; 16GB b\u1ed9 nh\u1edb \u1ea3o (Swap RAM) ho\u1eb7c chuy\u1ec3n sang d\u00f9ng b\u1ea3n model c\u00f3 dung l\u01b0\u1ee3ng nh\u1ecf h\u01a1n (v\u00ed d\u1ee5 chuy\u1ec3n t\u1eeb 14B v\u1ec1 8B ho\u1eb7c 3B).<\/p>\n<h3 style=\"font-size: 18px; font-weight: bold; color: #1e3a8a; margin-top: 25px;\">4. L\u1ed7i t\u1ea3i model b\u1ecb ng\u1eaft qu\u00e3ng ho\u1eb7c \u0111\u1ea7y \u1ed5 c\u1ee9ng root<\/h3>\n<p style=\"text-align: justify;\">N\u1ebfu ph\u00e2n v\u00f9ng <code>\/<\/code> c\u1ee7a h\u1ec7 \u0111i\u1ec1u h\u00e0nh b\u1ecb \u0111\u1ea7y, l\u1ec7nh pull s\u1ebd b\u00e1o l\u1ed7i disk full. H\u00e3y \u0111\u1ed5i bi\u1ebfn <code>OLLAMA_MODELS<\/code> sang m\u1ed9t ph\u00e2n v\u00f9ng \u1ed5 c\u1ee9ng c\u00f3 dung l\u01b0\u1ee3ng l\u1edbn h\u01a1n nh\u01b0 \u0111\u00e3 h\u01b0\u1edbng d\u1eabn \u1edf ph\u1ea7n c\u1ea5u h\u00ecnh bi\u1ebfn m\u00f4i tr\u01b0\u1eddng.<\/p>\n<h2 id=\"section10\" style=\"color: #1e3a8a; font-size: 24px; font-weight: bold; text-align: left; border-left: 5px solid #2563EB; padding-left: 15px; margin: 40px 0 20px; line-height: 1.4;\">So s\u00e1nh VPS v\u00e0 Cloud Server khi t\u1ef1 host Ollama<\/h2>\n<p style=\"text-align: justify;\">Nhi\u1ec1u ng\u01b0\u1eddi ph\u00e2n v\u00e2n kh\u00f4ng bi\u1ebft n\u00ean ch\u1ecdn m\u00e1y ch\u1ee7 \u1ea3o VPS hay h\u1ea1 t\u1ea7ng Cloud Server khi h\u1ecdc c\u00e1ch c\u00e0i \u0111\u1eb7t Ollama tr\u00ean Linux. B\u1ea3ng so s\u00e1nh d\u01b0\u1edbi \u0111\u00e2y ph\u00e2n lo\u1ea1i theo nhu c\u1ea7u th\u1ef1c t\u1ebf:<\/p>\n<table style=\"width: 100%; border-collapse: collapse; margin: 25px 0; font-size: 14px; text-align: left;\">\n<thead>\n<tr style=\"background-color: #1e3a8a; color: #ffffff;\">\n<th style=\"padding: 12px 15px; border: 1px solid #BFDBFE;\">Ti\u00eau ch\u00ed h\u1ea1 t\u1ea7ng<\/th>\n<th style=\"padding: 12px 15px; border: 1px solid #BFDBFE;\">VPS Linux (Ti\u00eau chu\u1ea9n)<\/th>\n<th style=\"padding: 12px 15px; border: 1px solid #BFDBFE;\">Cloud Server (Doanh nghi\u1ec7p)<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr style=\"background-color: #f8fafc;\">\n<td style=\"padding: 10px 15px; border: 1px solid #E2E8F0; font-weight: bold;\">M\u1ee5c \u0111\u00edch s\u1eed d\u1ee5ng<\/td>\n<td style=\"padding: 10px 15px; border: 1px solid #E2E8F0;\">M\u00f4i tr\u01b0\u1eddng dev\/test, c\u00e1 nh\u00e2n, chatbot n\u1ed9i b\u1ed9 nh\u1ecf<\/td>\n<td style=\"padding: 10px 15px; border: 1px solid #E2E8F0;\">M\u00f4i tr\u01b0\u1eddng production, x\u1eed l\u00fd song song nhi\u1ec1u k\u1ebft n\u1ed1i<\/td>\n<\/tr>\n<tr>\n<td style=\"padding: 10px 15px; border: 1px solid #E2E8F0; font-weight: bold;\">Model \u0111\u1ec1 xu\u1ea5t<\/td>\n<td style=\"padding: 10px 15px; border: 1px solid #E2E8F0;\">Ch\u1ea1y t\u1ed1t model 3B, 7B, 8B (l\u01b0\u1ee3ng h\u00f3a Q4)<\/td>\n<td style=\"padding: 10px 15px; border: 1px solid #E2E8F0;\">\u0110\u00e1p \u1ee9ng t\u1ed1t model 14B, 32B v\u00e0 70B<\/td>\n<\/tr>\n<tr style=\"background-color: #f8fafc;\">\n<td style=\"padding: 10px 15px; border: 1px solid #E2E8F0; font-weight: bold;\">Kh\u1ea3 n\u0103ng co gi\u00e3n<\/td>\n<td style=\"padding: 10px 15px; border: 1px solid #E2E8F0;\">C\u1ea5u h\u00ecnh c\u1ed1 \u0111\u1ecbnh theo g\u00f3i ban \u0111\u1ea7u<\/td>\n<td style=\"padding: 10px 15px; border: 1px solid #E2E8F0;\">N\u00e2ng vCPU v\u00e0 RAM linh ho\u1ea1t khi t\u1ea3i t\u0103ng cao<\/td>\n<\/tr>\n<tr>\n<td style=\"padding: 10px 15px; border: 1px solid #E2E8F0; font-weight: bold;\">Chi ph\u00ed v\u1eadn h\u00e0nh<\/td>\n<td style=\"padding: 10px 15px; border: 1px solid #E2E8F0;\">Chi ph\u00ed ti\u1ebft ki\u1ec7m, t\u1ed1i \u01b0u cho freelancer, dev<\/td>\n<td style=\"padding: 10px 15px; border: 1px solid #E2E8F0;\">\u0110\u1ea7u t\u01b0 chuy\u00ean nghi\u1ec7p theo hi\u1ec7u n\u0103ng y\u00eau c\u1ea7u<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2 id=\"sectionFAQ\" style=\"color: #1e3a8a; font-size: 24px; font-weight: bold; text-align: left; border-left: 5px solid #2563EB; padding-left: 15px; margin: 40px 0 20px; line-height: 1.4;\">C\u00e2u h\u1ecfi th\u01b0\u1eddng g\u1eb7p v\u1ec1 c\u00e1ch c\u00e0i \u0111\u1eb7t Ollama tr\u00ean Linux<\/h2>\n<h3 style=\"font-size: 18px; font-weight: bold; color: #1e3a8a; margin-top: 25px;\">Ollama c\u00f3 ch\u1ea1y \u0111\u01b0\u1ee3c tr\u00ean m\u00e1y ch\u1ee7 Linux kh\u00f4ng c\u00f3 card m\u00e0n h\u00ecnh r\u1eddi (GPU) kh\u00f4ng?<\/h3>\n<p style=\"text-align: justify;\">C\u00f3. Ollama h\u1ed7 tr\u1ee3 ho\u00e0n to\u00e0n vi\u1ec7c th\u1ef1c thi m\u00f4 h\u00ecnh qua CPU v\u00e0 b\u1ed9 nh\u1edb RAM m\u00e1y ch\u1ee7. M\u1eb7c d\u00f9 t\u1ed1c \u0111\u1ed9 x\u1eed l\u00fd c\u00e2u t\u1eeb ch\u1eadm h\u01a1n GPU, c\u00e1c m\u00f4 h\u00ecnh nh\u1ecf nh\u01b0 7B ho\u1eb7c 8B l\u01b0\u1ee3ng h\u00f3a chu\u1ea9n v\u1eabn ph\u1ea3n h\u1ed3i t\u01b0\u01a1ng \u0111\u1ed1i m\u01b0\u1ee3t cho c\u00e1c t\u00e1c v\u1ee5 t\u00f3m t\u1eaft v\u0103n b\u1ea3n v\u00e0 chatbot \u0111\u01a1n gi\u1ea3n.<\/p>\n<h3 style=\"font-size: 18px; font-weight: bold; color: #1e3a8a; margin-top: 25px;\">L\u00e0m th\u1ebf n\u00e0o \u0111\u1ec3 c\u1eadp nh\u1eadt Ollama l\u00ean phi\u00ean b\u1ea3n m\u1edbi nh\u1ea5t tr\u00ean Linux?<\/h3>\n<p style=\"text-align: justify;\">\u0110\u1ec3 n\u00e2ng c\u1ea5p phi\u00ean b\u1ea3n, b\u1ea1n ch\u1ec9 c\u1ea7n th\u1ef1c thi l\u1ea1i l\u1ec7nh c\u00e0i \u0111\u1eb7t t\u1ef1 \u0111\u1ed9ng ban \u0111\u1ea7u: <code>curl -fsSL https:\/\/ollama.com\/install.sh | sh<\/code>. Script s\u1ebd t\u1ef1 t\u1ea3i b\u1ea3n c\u1eadp nh\u1eadt m\u1edbi nh\u1ea5t, thay th\u1ebf binary c\u0169 m\u00e0 kh\u00f4ng l\u00e0m m\u1ea5t c\u00e1c file model \u0111\u00e3 t\u1ea3i tr\u01b0\u1edbc \u0111\u00f3.<\/p>\n<h3 style=\"font-size: 18px; font-weight: bold; color: #1e3a8a; margin-top: 25px;\">Th\u01b0 m\u1ee5c m\u1eb7c \u0111\u1ecbnh l\u01b0u tr\u1eef model c\u1ee7a Ollama n\u1eb1m \u1edf \u0111\u00e2u?<\/h3>\n<p style=\"text-align: justify;\">Khi c\u00e0i \u0111\u1eb7t tr\u00ean Linux qua script ho\u1eb7c manual, Ollama l\u01b0u tr\u1eef to\u00e0n b\u1ed9 file manifest v\u00e0 blobs d\u1eef li\u1ec7u c\u1ee7a m\u00f4 h\u00ecnh t\u1ea1i \u0111\u01b0\u1eddng d\u1eabn <code>\/usr\/share\/ollama\/.ollama\/models<\/code>. B\u1ea1n c\u00f3 th\u1ec3 thay \u0111\u1ed5i \u0111\u01b0\u1eddng d\u1eabn n\u00e0y b\u1eb1ng bi\u1ebfn m\u00f4i tr\u01b0\u1eddng <code>OLLAMA_MODELS<\/code>.<\/p>\n<h3 style=\"font-size: 18px; font-weight: bold; color: #1e3a8a; margin-top: 25px;\">L\u00e0m sao \u0111\u1ec3 g\u1ecdi API Ollama t\u1eeb xa b\u00ean ngo\u00e0i m\u1ea1ng internet?<\/h3>\n<p style=\"text-align: justify;\">M\u1eb7c \u0111\u1ecbnh Ollama ch\u1ec9 l\u1eafng nghe c\u1ed5ng c\u1ee5c b\u1ed9. B\u1ea1n c\u1ea7n \u0111\u1eb7t bi\u1ebfn m\u00f4i tr\u01b0\u1eddng <code>OLLAMA_HOST=0.0.0.0:11434<\/code> trong file systemd override, sau \u0111\u00f3 m\u1edf port 11434 tr\u00ean firewall h\u1ec7 \u0111i\u1ec1u h\u00e0nh (nh\u01b0 UFW ho\u1eb7c iptables) ho\u1eb7c \u0111\u1eb7t sau m\u1ed9t reverse proxy nh\u01b0 <a href=\"https:\/\/interdata.vn\/blog\/nginx-la-gi\/\">NGINX<\/a> c\u00f3 x\u00e1c th\u1ef1c.<\/p>\n<h3 style=\"font-size: 18px; font-weight: bold; color: #1e3a8a; margin-top: 25px;\">L\u00e0m th\u1ebf n\u00e0o \u0111\u1ec3 g\u1ee1 c\u00e0i \u0111\u1eb7t ho\u00e0n to\u00e0n Ollama kh\u1ecfi Linux?<\/h3>\n<p style=\"text-align: justify;\">D\u1eebng v\u00e0 x\u00f3a service b\u1eb1ng l\u1ec7nh: <code>sudo systemctl stop ollama &amp;&amp; sudo systemctl disable ollama<\/code>. Sau \u0111\u00f3 x\u00f3a file binary v\u00e0 user h\u1ec7 th\u1ed1ng: <code>sudo rm -rf \/usr\/local\/bin\/ollama \/usr\/share\/ollama \/etc\/systemd\/system\/ollama.service<\/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;\">Ch\u1ee7 \u0111\u1ed9ng h\u1ea1 t\u1ea7ng AI c\u00e1 nh\u00e2n h\u00f3a v\u1edbi Ollama tr\u00ean n\u1ec1n t\u1ea3ng m\u00e1y ch\u1ee7 ri\u00eang<\/h3>\n<p style=\"text-align: justify;\">N\u1eafm v\u1eefng <strong>c\u00e1ch c\u00e0i \u0111\u1eb7t Ollama tr\u00ean Linux<\/strong> m\u1edf ra gi\u1ea3i ph\u00e1p t\u1ef1 ch\u1ee7 h\u1ea1 t\u1ea7ng tr\u00ed tu\u1ec7 nh\u00e2n t\u1ea1o to\u00e0n di\u1ec7n cho c\u00e1 nh\u00e2n v\u00e0 t\u1ed5 ch\u1ee9c. Vi\u1ec7c l\u00e0m ch\u1ee7 t\u1eeb kh\u00e2u thi\u1ebft l\u1eadp script, c\u1ea5u h\u00ecnh GPU, tinh ch\u1ec9nh bi\u1ebfn m\u00f4i tr\u01b0\u1eddng \u0111\u1ebfn k\u1ebft n\u1ed1i \u1ee9ng d\u1ee5ng th\u1ef1c ti\u1ec5n s\u1ebd gi\u1ea3i quy\u1ebft tri\u1ec7t \u0111\u1ec3 b\u00e0i to\u00e1n chi ph\u00ed token v\u00e0 r\u00f2 r\u1ec9 d\u1eef li\u1ec7u. H\u00e3y kh\u1edfi \u0111\u1ea7u b\u1eb1ng vi\u1ec7c l\u1ef1a ch\u1ecdn c\u1ea5u h\u00ecnh m\u00e1y ch\u1ee7 \u1ea3o ph\u00f9 h\u1ee3p v\u1edbi nhu c\u1ea7u inference t\u1ea1i InterData, ho\u1eb7c gh\u00e9 th\u0103m trang deal Canh Me \u0111\u1ec3 t\u1ed1i \u01b0u chi ph\u00ed h\u1ea1 t\u1ea7ng m\u00e1y ch\u1ee7 ngay h\u00f4m nay.<\/p>\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>N\u1ed9i dung mang t\u00ednh tham kh\u1ea3o k\u1ef9 thu\u1eadt. C\u00e1c l\u1ec7nh c\u00e0i \u0111\u1eb7t, c\u1ea5u h\u00ecnh environment variables v\u00e0 driver GPU c\u00f3 th\u1ec3 thay \u0111\u1ed5i theo phi\u00ean b\u1ea3n Ollama, b\u1ea3n ph\u00e2n ph\u1ed1i Linux (Ubuntu, Debian, CentOS\u2026), phi\u00ean b\u1ea3n kernel v\u00e0 driver NVIDIA\/AMD. Lu\u00f4n ki\u1ec3m tra t\u00e0i li\u1ec7u ch\u00ednh th\u1ee9c t\u1ea1i docs.ollama.com tr\u01b0\u1edbc khi \u00e1p d\u1ee5ng cho production. Sao l\u01b0u d\u1eef li\u1ec7u v\u00e0 test tr\u00ean staging tr\u01b0\u1edbc khi tri\u1ec3n khai.<\/em><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>C\u00e1ch c\u00e0i \u0111\u1eb7t Ollama tr\u00ean Linux l\u00e0 gi\u1ea3i ph\u00e1p t\u1ed1i \u01b0u gi\u00fap k\u1ef9 s\u01b0 AI, l\u1eadp tr\u00ecnh vi\u00ean v\u00e0 doanh nghi\u1ec7p tri\u1ec3n khai c\u00e1c m\u00f4 h\u00ecnh ng\u00f4n ng\u1eef l\u1edbn (LLM) c\u1ee5c b\u1ed9 tr\u00ean h\u1ea1 t\u1ea7ng ri\u00eang bi\u1ec7t. Thay v\u00ec ph\u1ee5 thu\u1ed9c v\u00e0o c\u00e1c API \u0111\u00e1m m\u00e2y \u0111\u1eaft \u0111\u1ecf, vi\u1ec7c t\u1ef1 host Ollama tr\u00ean n\u1ec1n t\u1ea3ng<\/p>\n","protected":false},"author":2,"featured_media":43406,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[161],"tags":[],"class_list":["post-43402","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-huong-dan-chung"],"_links":{"self":[{"href":"https:\/\/interdata.vn\/blog\/wp-json\/wp\/v2\/posts\/43402","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\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/interdata.vn\/blog\/wp-json\/wp\/v2\/comments?post=43402"}],"version-history":[{"count":2,"href":"https:\/\/interdata.vn\/blog\/wp-json\/wp\/v2\/posts\/43402\/revisions"}],"predecessor-version":[{"id":43407,"href":"https:\/\/interdata.vn\/blog\/wp-json\/wp\/v2\/posts\/43402\/revisions\/43407"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/interdata.vn\/blog\/wp-json\/wp\/v2\/media\/43406"}],"wp:attachment":[{"href":"https:\/\/interdata.vn\/blog\/wp-json\/wp\/v2\/media?parent=43402"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/interdata.vn\/blog\/wp-json\/wp\/v2\/categories?post=43402"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/interdata.vn\/blog\/wp-json\/wp\/v2\/tags?post=43402"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}