{"id":9,"date":"2020-08-21T09:10:58","date_gmt":"2020-08-21T09:10:58","guid":{"rendered":"https:\/\/scripts.tino.org\/document\/?p=9"},"modified":"2023-07-31T08:42:39","modified_gmt":"2023-07-31T01:42:39","slug":"huong-dan-cai-dat-tinovps-script-tren-centos-7-2","status":"publish","type":"ht_kb","link":"https:\/\/tino.vn\/blog\/docs\/huong-dan-cai-dat-tinovps-script-tren-centos-7-2\/","title":{"rendered":"H\u01b0\u1edbng d\u1eabn c\u00e0i \u0111\u1eb7t TinoVPS Script tr\u00ean CentOS 7"},"content":{"rendered":"<h2 id=\"H\u01b0\u1edbng_d\u1eabn_c\u00e0i_\u0111\u1eb7t_TinoVPS_Script_tr\u00ean_CentOS_7\"><strong>H\u01b0\u1edbng d\u1eabn c\u00e0i \u0111\u1eb7t TinoVPS Script tr\u00ean CentOS 7<\/strong><\/h2>\n<p>TinoVPS Script mi\u1ec5n ph\u00ed cho m\u1ecdi ng\u01b0\u1eddi v\u00e0 kh\u00f4ng gi\u1edbi h\u1ea1n khi ph\u1ea3i s\u1eed d\u1ee5ng ri\u00eang bi\u1ec7t t\u1ea1i TinoHost, b\u1ea1n c\u00f3 th\u1ec3 s\u1eed d\u1ee5ng t\u1ea1i b\u1ea5t c\u1ee9 \u0111\u00e2u \u2013 n\u1ebfu b\u1ea1n mu\u1ed1n \u1ee7ng h\u1ed9 ch\u00fang t\u00f4i c\u00f3 th\u1ec3 s\u1eed d\u1ee5ng d\u1ecbch v\u1ee5\u00a0<strong><a href=\"https:\/\/tinohost.com\/servers\/cloud-vps\/\" target=\"_blank\" rel=\"noopener noreferrer nofollow\">VPS ch\u1ea5t l\u01b0\u1ee3ng cao<\/a><\/strong>\u00a0\u0111\u01b0\u1ee3c sao l\u01b0u d\u1eef li\u1ec7u m\u1ed7i ng\u00e0y v\u00e0 l\u01b0u tr\u1eef trong m\u1ed9t tu\u1ea7n g\u1ea7n nh\u1ea5t t\u1ea1i<strong>\u00a0TinoHost \u0323<\/strong>(<a href=\"https:\/\/tinohost.com\/?fbclid=IwAR0EX6dDB0HAIJQxC5Hq_qr4QRVXqGnkrWubNRD22vOqHCpkbBNWwQMwvtk\" target=\"_blank\" rel=\"noopener nofollow noreferrer\" data-ft=\"{&quot;tn&quot;:&quot;-U&quot;}\" data-lynx-mode=\"asynclazy\" data-lynx-uri=\"https:\/\/l.facebook.com\/l.php?u=https%3A%2F%2Ftinohost.com%2F%3Ffbclid%3DIwAR0EX6dDB0HAIJQxC5Hq_qr4QRVXqGnkrWubNRD22vOqHCpkbBNWwQMwvtk&amp;h=AT0-H7qiWCM3O8kipgDzQcTnbL4cWH4r2twvYc5II8ztA3I4LZouu4OZCL7JlAU3P3CRtFxBziC0V9ryF6hxWdN4IBXRH16nByVQTJwz7PMYhOcNMzKw7U2sGerBjaSa21m-esPQtmL7bGeCx2dZfmVHdVKc9UTjBQ\">https:\/\/tinohost.com<\/a>).<\/p>\n<p>TinoVPS Script l\u00e0 m\u1ed9t tr\u00ecnh qu\u1ea3n l\u00fd thao t\u00e1c th\u00f4ng qua Script tr\u00ean VPS \u2013 Thay v\u00ec b\u1ea1n ph\u1ea3i t\u1ef1 x\u00e2y d\u1ef1ng m\u00e1y ch\u1ee7 ho\u1eb7c ph\u1ea3i s\u1eed d\u1ee5ng c\u00e1c Control Panel c\u1ed3ng k\u1ec1nh v\u00e0 t\u1ed1n nhi<span class=\"text_exposed_show\">\u1ec1u t\u00e0i nguy\u00ean th\u00ec nay b\u1ea1n c\u00f3 th\u1ec3 s\u1eed d\u1ee5ng\u00a0<strong>TinoVPS Script<\/strong>\u00a0v\u1edbi y\u00eau c\u1ea7u h\u1ec7 th\u1ed1ng th\u1ea5p h\u01a1n v\u00e0 ti\u1ebft ki\u1ec7m chi ph\u00ed v\u1eadn h\u00e0nh cho c\u00e1c Qu\u1ea3n Tr\u1ecb Vi\u00ean m\u1edbi b\u1eaft \u0111\u1ea7u.<\/span><\/p>\n<div class=\"text_exposed_show\">\n<p>TinoVPS Script l\u00e0 m\u1ed9t tr\u00ecnh \u0111\u01b0\u1ee3c x\u00e2y d\u1ef1ng b\u1edfi TinoHost chuy\u00ean cung c\u1ea5p\u00a0<strong><a href=\"https:\/\/tinohost.com\/cloud-hosting\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">Hosting<\/a>\u00a0\/ VPS \/\u00a0<a href=\"https:\/\/tinohost.com\/ten-mien\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">T\u00ean Mi\u1ec1n<\/a>\u00a0\/ Email Doanh Nghi\u1ec7p \/ M\u00e1y ch\u1ee7 v.v\u2026<\/strong>\u00a0Script n\u00e0y \u0111\u01b0\u1ee3c x\u00e2y d\u1ef1ng v\u1edbi c\u1ed9ng \u0111\u1ed3ng m\u1edf \u2013 b\u1eb1ng vi\u1ec7c g\u00f3p \u00fd c\u00e1c ch\u1ee9c n\u0103ng \u0111\u1ed9i ng\u0169 s\u1ebd ki\u1ec3m tra v\u00e0 th\u00eam v\u00e0o n\u1ebfu c\u00e1c th\u00e0nh ph\u1ea7n \u0111\u01b0\u1ee3c xem l\u00e0 c\u1ea7n thi\u1ebft trong qu\u00e1 tr\u00ecnh ho\u1ea1t \u0111\u1ed9ng.<\/p>\n<p>TinoVPS Script ph\u00f9 h\u1ee3p v\u1edbi ph\u1ea7n l\u1edbn VPS kh\u00f4ng c\u00f3 nhi\u1ec1u t\u00e0i nguy\u00ean ho\u1eb7c Qu\u1ea3n Tr\u1ecb Vi\u00ean kh\u00f4ng c\u1ea7n nhi\u1ec1u t\u1edbi vi\u1ec7c s\u1eed d\u1ee5ng c\u00e1c Control Panel g\u00e2y l\u00e3ng ph\u00ed t\u00e0i nguy\u00ean.<\/p>\n<\/div>\n<h3 id=\"\u0110i\u1ec3m_n\u1ed5i_b\u1eadt_c\u1ee7a_TinoScript.\">\u0110i\u1ec3m n\u1ed5i b\u1eadt c\u1ee7a TinoScript.<\/h3>\n<ul>\n<li>H\u1ed7 tr\u1ee3 t\u1eeb \u00a0combine php 5.3 t\u1edbi 7.4. c\u00f9ng v\u1edbi phi\u00ean b\u1ea3n nginx m\u1edbi nh\u1ea5t.<\/li>\n<li>H\u1ed7 tr\u1ee3 ch\u1ea1y \u0111a phi\u00ean b\u1ea3n php, b\u1ea1n c\u00f3 th\u1ec3 ch\u1ea1y\u00a0 t\u1ea5t c\u1ea3 phi\u00ean b\u1ea3n php tr\u00ean c\u00f9ng m\u1ed9t VPS, m\u1ed7i phi\u00ean b\u1ea3n php c\u00e0i \u0111\u1eb7t s\u1ebd chi\u1ebfm h\u1ec7 th\u1ed1ng kho\u1ea3ng 300MB-500MB dung l\u01b0\u1ee3ng v\u00e0 kho\u1ea3ng 20 MB RAM.<\/li>\n<li>M\u1ed7i website th\u00eam v\u00e0o s\u1ebd ch\u1ea1y tr\u00ean m\u1ed9t user t\u00e1ch bi\u1ec7t , gi\u00fap b\u1ea3o m\u1eadt t\u1ed1t h\u01a1n tr\u00e1nh b\u1ecb t\u1ea5n c\u00f4ng local, kh\u00e1c user b\u1ea1n s\u1ebd kh\u00f4ng th\u1ec3 th\u1ef1c thi php.<\/li>\n<li>H\u1ed7 tr\u1ee3 t\u1ef1 \u0111\u1ed9ng c\u1ea5u h\u00ecnh backup l\u00ean google drive ch\u1ec9 v\u1edbi 1 b\u01b0\u1edbc.<\/li>\n<li>H\u1ed7 tr\u1ee3 backup t\u1ea1i local VPS.<\/li>\n<li>h\u1ed7 tr\u1ee3 c\u00e0i \u0111\u1eb7t t\u1ef1 \u0111\u1ed9ng SSL let&#8217;s encrypt cho c\u00e1c domain.<\/li>\n<li>H\u1ed7 tr\u1ee3 sao ch\u00e9p t\u1ea5t c\u1ea3 d\u1eef li\u1ec7u t\u1eeb VPS c\u0169 v\u1ec1 VPS m\u1edbi (L\u01b0u \u00fd hi\u1ec7n t\u1ea1i ch\u1ec9 h\u1ed7 tr\u1ee3 c\u00e1c VPS c\u0169 s\u1eed d\u1ee5ng Nginx l\u00e0 webserver )<\/li>\n<li>Ch\u1ecdn website v\u00e0 restore t\u1eeb google driver t\u1eeb 1 ng\u00e0y n\u00e0o \u0111\u00f3, ho\u1eb7c l\u00e0 s\u1ed1 ng\u00e0y tr\u01b0\u1edbc th\u1eddi \u0111i\u1ec3m hi\u1ec7n t\u1ea1i<\/li>\n<li>H\u1ed7 tr\u1ee3 google pagespeed v\u00e0 Fastcgi cache (include Nginx-Cache-Purge )<\/li>\n<li>Optimized configurations Vhost source ph\u00f9 h\u1ee3p<\/li>\n<li>T\u00edch h\u1ee3p s\u1eb5n WordPress anti-bruteforce, Laravel, Cloudflare IPs, block bad user-agents<\/li>\n<li>H\u1ed7 tr\u1ee3 FTP cho c\u00e1c t\u00ean mi\u1ec1n \u0111\u00e3 th\u00eam v\u00e0o h\u1ec7 th\u1ed1ng.<\/li>\n<li>H\u1ed7 tr\u1ee3 firewall b\u1ea3o m\u1eadt csf, thao t\u00e1c tr\u00ean giao di\u1ec7n tino , thay \u0111\u1ed5i port SSH ..<\/li>\n<li>H\u1ed7 tr\u1ee3 c\u00e0i \u0111\u1eb7t nhanh WordPress, lavarel, Opencart<\/li>\n<li>H\u1ed7 tr\u1ee3 wordpress c\u01a1 b\u1ea3n\u00a0 nh\u01b0 : C\u00e0i theme \/ plugin b\u1ea3n quy\u1ec1n, t\u1eaft plugin, reset m\u1eadt kh\u1ea9u, reset l\u1ea1i n\u1ed9i dung web.<\/li>\n<li>Update li\u00ean t\u1ee5c t\u00ednh n\u0103ng, ti\u1ec7n \u00edch m\u1edbi.<\/li>\n<\/ul>\n<div class=\"text_exposed_show\">\n<hr \/>\n<\/div>\n<h2 id=\"\"><\/h2>\n<h2 id=\"1_:_Y\u00eau_c\u1ea7u_h\u1ec7_th\u1ed1ng\">1 : Y\u00eau c\u1ea7u h\u1ec7 th\u1ed1ng<\/h2>\n<p><strong>TinoVPS Script<\/strong>\u00a0l\u00e0 m\u1ed9t tr\u00ecnh qu\u1ea3n l\u00fd nh\u1eb9, y\u00eau c\u1ea7u h\u1ec7 th\u1ed1ng t\u1ed1i thi\u1ec3u v\u00e0 ho\u1ea1t \u0111\u1ed9ng t\u1ed1t nh\u1ea5t cho :<br \/>\n<strong>H\u1ec7 \u0111i\u1ec1u h\u00e0nh : CentOS 7<\/strong><br \/>\n<strong>CPU : 1 Core<\/strong><br \/>\n<strong>RAM : 1GB (Khuy\u00ean d\u00f9ng tr\u00ean 2GB RAM)<\/strong><br \/>\n<strong>Dung l\u01b0\u1ee3ng : T\u1ed1i thi\u1ec3u 3GB dung l\u01b0\u1ee3ng tr\u1ed1ng<\/strong><\/p>\n<p>\u0110\u1ec3 \u0111\u1ea3m b\u1ea3o h\u1ec7 th\u1ed1ng s\u1ebd ki\u1ec3m tra v\u1edbi VPS d\u01b0\u1edbi 2GB RAM s\u1ebd \u0111\u01b0\u1ee3c t\u1ea1o SWAP t\u1ef1 \u0111\u1ed9ng v\u1edbi 1GB SWAP \u0111\u1ec3 tr\u00e1nh c\u00e1c tr\u01b0\u1eddng h\u1ee3p l\u1ed7i khi thi\u1ebfu t\u00e0i nguy\u00ean tr\u00ean h\u1ec7 th\u1ed1ng trong qu\u00e1 tr\u00ecnh s\u1eed d\u1ee5ng.<\/p>\n<h2 id=\"2._Truy_c\u1eadp_SSH_v\u00e0o_VPS_v\u00e0_c\u00e0i_\u0111\u1eb7t\">2. Truy c\u1eadp SSH v\u00e0o VPS v\u00e0 c\u00e0i \u0111\u1eb7t<\/h2>\n<p>\u0110\u1ec3 truy c\u1eadp b\u1eb1ng SSH b\u1ea1n c\u00f3 th\u1ec3 s\u1eed d\u1ee5ng ph\u1ea7n m\u1ec1m ho\u1eb7c c\u00e1c tr\u00ecnh<strong>\u00a0Terminal \/ Command Prompt<\/strong>\u00a0tr\u00ean m\u00e1y t\u00ednh b\u00e0 b\u1ea1n \u0111ang s\u1eed d\u1ee5ng<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">curl -sO https:\/\/scripts.tino.org\/tinovps-install\u00a0&amp;&amp; sh tinovps-install<\/pre>\n<p>L\u01b0u \u00fd: hi\u1ec7n t\u1ea1i TinoVPS Script v\u1eabn \u0111ang l\u00e0 b\u1ea3n beta, ch\u00fang t\u00f4i kh\u00f4ng khuy\u1ebfn kh\u00edch s\u1eed d\u1ee5ng tr\u00ean s\u1ea3n ph\u1ea9m production.<\/p>\n<p>B\u1ea1n ch\u1ec9 c\u1ea7n s\u1eed d\u1ee5ng duy nh\u1ea5t 01 l\u1ec7nh n\u00e0y \u0111\u1ec3 c\u00e0i \u0111\u1eb7t, sau khi c\u00e0i \u0111\u1eb7t ho\u00e0n t\u1ea5t VPS s\u1ebd reboot v\u00e0 ng\u1eaft k\u1ebft n\u1ed1i SSH hi\u1ec7n t\u1ea1i.<\/p>\n<p><a href=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2020\/08\/Pasted-into-H%C6%B0%E1%BB%9Bng-d%E1%BA%ABn-c%C3%A0i-%C4%91%E1%BA%B7t-TinoVPS-Script-tr%C3%AAn-CentOS-7-2.png\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-5738\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2020\/08\/Pasted-into-H%C6%B0%E1%BB%9Bng-d%E1%BA%ABn-c%C3%A0i-%C4%91%E1%BA%B7t-TinoVPS-Script-tr%C3%AAn-CentOS-7-2.png\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2020\/08\/Pasted-into-H\u01b0\u1edbng-d\u1eabn-c\u00e0i-\u0111\u1eb7t-TinoVPS-Script-tr\u00ean-CentOS-7-2.png 673w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2020\/08\/Pasted-into-H\u01b0\u1edbng-d\u1eabn-c\u00e0i-\u0111\u1eb7t-TinoVPS-Script-tr\u00ean-CentOS-7-2-300x64.png 300w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2020\/08\/Pasted-into-H\u01b0\u1edbng-d\u1eabn-c\u00e0i-\u0111\u1eb7t-TinoVPS-Script-tr\u00ean-CentOS-7-2-50x11.png 50w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2020\/08\/Pasted-into-H\u01b0\u1edbng-d\u1eabn-c\u00e0i-\u0111\u1eb7t-TinoVPS-Script-tr\u00ean-CentOS-7-2-600x128.png 600w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2020\/08\/Pasted-into-H\u01b0\u1edbng-d\u1eabn-c\u00e0i-\u0111\u1eb7t-TinoVPS-Script-tr\u00ean-CentOS-7-2-320x68.png 320w\" alt=\"\" width=\"673\" height=\"144\" title=\"\"><\/a><\/p>\n<h2 id=\"3._\u0110\u0103ng_nh\u1eadp_l\u1ea1i_SSH_v\u00e0_s\u1eed_d\u1ee5ng_v\u1edbi_l\u1ec7nh_\u201ctino\u201d\">3. \u0110\u0103ng nh\u1eadp l\u1ea1i SSH v\u00e0 s\u1eed d\u1ee5ng v\u1edbi l\u1ec7nh \u201ctino\u201d<\/h2>\n<p>Sau khi b\u1ea1n c\u00e0i \u0111\u1eb7t xong b\u1ea1n c\u00f3 th\u1ec3 SSH tr\u1edf l\u1ea1i v\u1edbi VPS, sau khi truy c\u1eadp \u0111\u01b0\u1ee3c v\u00e0o VPS (m\u1eb7c \u0111\u1ecbnh s\u1ebd kh\u00f4ng \u0111\u1ed5i c\u00e1c Port SSH) b\u1ea1n c\u00f3 th\u1ec3 s\u1eed d\u1ee5ng c\u00e1c ch\u1ee9c n\u0103ng b\u1eb1ng c\u00e1ch nh\u1eadp v\u00e0o \u201ctino\u201d.<\/p>\n<p><img decoding=\"async\" class=\"alignnone wp-image-13 size-full\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2020\/09\/tinoscript.png\" alt=\"\" width=\"1132\" height=\"482\" title=\"\"><\/p>\n<p>Qu\u00e1 tr\u00ecnh c\u00e0i \u0111\u1eb7t h\u1ec7 th\u1ed1ng s\u1ebd th\u1ef1c hi\u1ec7n x\u00e2y d\u1ef1ng v\u00e0 c\u1ea5u tr\u00fac l\u1ea1i VPS \u0111i\u1ec1u n\u00e0y s\u1ebd t\u1ed1n kh\u00e1 nhi\u1ec1u th\u1eddi gian \u0111\u1ec3 c\u00e0i \u0111\u1eb7t \u2013 kh\u00f4ng n\u00ean tho\u00e1t ngang trong khi qu\u00e1 tr\u00ecnh c\u00e0i \u0111\u1eb7t \u0111ang \u0111\u01b0\u1ee3c th\u1ef1c hi\u1ec7n. Ch\u00fac b\u1ea1n th\u00e0nh c\u00f4ng, \u0111\u1ec3 c\u00f3 cho m\u00ecnh c\u00e1c g\u00f3p \u00fd v\u1ec1 s\u1ea3n ph\u1ea9m vui l\u00f2ng truy c\u1eadp c\u1ed9ng \u0111\u1ed3ng tr\u00ean Facebook t\u1ea1i :\u00a0<strong>https:\/\/www.facebook.com\/groups\/tinovps\/<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>H\u01b0\u1edbng d\u1eabn c\u00e0i \u0111\u1eb7t TinoVPS Script tr\u00ean CentOS 7 TinoVPS Script mi\u1ec5n ph\u00ed cho m\u1ecdi ng\u01b0\u1eddi v\u00e0 kh\u00f4ng gi\u1edbi h\u1ea1n khi ph\u1ea3i s\u1eed d\u1ee5ng ri\u00eang bi\u1ec7t t\u1ea1i TinoHost, b\u1ea1n c\u00f3 th\u1ec3 s\u1eed d\u1ee5ng t\u1ea1i b\u1ea5t c\u1ee9 \u0111\u00e2u \u2013 n\u1ebfu b\u1ea1n mu\u1ed1n \u1ee7ng h\u1ed9 ch\u00fang t\u00f4i c\u00f3 th\u1ec3 s\u1eed d\u1ee5ng d\u1ecbch v\u1ee5\u00a0VPS ch\u1ea5t l\u01b0\u1ee3ng cao\u00a0\u0111\u01b0\u1ee3c sao [&hellip;]<\/p>\n","protected":false},"author":7,"featured_media":16424,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","format":"standard","meta":{"footnotes":""},"tags":[],"ht_kb_category":[5182],"class_list":["post-9","ht_kb","type-ht_kb","status-publish","format-standard","has-post-thumbnail","hentry","ht_kb_category-huong-dan-ve-tinovps-script"],"_links":{"self":[{"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/ht_kb\/9","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/ht_kb"}],"about":[{"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/comments?post=9"}],"version-history":[{"count":0,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/ht_kb\/9\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/media\/16424"}],"wp:attachment":[{"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/media?parent=9"}],"wp:term":[{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/tags?post=9"},{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/ht_kb_category?post=9"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}