{"id":27,"date":"2023-05-15T17:01:22","date_gmt":"2023-05-15T17:01:22","guid":{"rendered":"https:\/\/cavin.rivaxstudio.com\/main\/?p=27"},"modified":"2023-05-15T17:01:22","modified_gmt":"2023-05-15T17:01:22","slug":"huong-dan-thiet-lap-centos-tren-amazon-web-services","status":"publish","type":"post","link":"https:\/\/cuongnguyen.bat.io.vn\/index.php\/2023\/05\/15\/huong-dan-thiet-lap-centos-tren-amazon-web-services\/","title":{"rendered":"H\u01b0\u1edbng d\u1eabn thi\u1ebft l\u1eadp CentOS tr\u00ean Amazon Web Services"},"content":{"rendered":"\n<p>H\u00f4m nay m\u00ecnh s\u1ebd chia s\u1ebb \u0111\u1ebfn c\u00e1c b\u1ea1n b\u00e0i vi\u1ebft h\u01b0\u1edbng d\u1eabn thi\u1ebft l\u1eadp CentOS tr\u00ean VPS Amazeone.<span id=\"more-1806\"><\/span><\/p>\n<p>Tr\u01b0\u1edbc khi b\u1eaft tay v\u00e0o \u0111\u1ec3 thi\u1ebft l\u1eadp, c\u00e1c b\u1ea1n h\u00e3y \u0111\u1ecdc l\u1ea1i b\u00e0i vi\u1ebft \u201d\u00a0<a href=\"http:\/\/news.cuongnguyen.info\/huong-dan-dang-ky-vps-tren-amazone-mien-phi-1-nam\/\">H\u01b0\u1edbng d\u1eabn \u0111\u0103ng k\u00fd VPS Amazone mi\u1ec5n ph\u00ed<\/a>\u201d \u0111\u1ec3 \u0111\u0103ng k\u00fd cho m\u00ecnh m\u1ed9t VPS nh\u00e9.<\/p>\n<p>C\u00f3 nhi\u1ec1u ph\u1ea7n m\u1ec1m SSH Client support b\u1ea1n vi\u1ec7c n\u00e0y. V\u1edbi c\u00e1c b\u1ea1n d\u00f9ng window th\u00ec c\u00f3 th\u1ec3 d\u00f9ng PuTTY. Mac\/Linux th\u00ec c\u00f3 th\u1ec3 d\u00f9ng vSSH ho\u1eb7c d\u00f9ng command line tr\u1ef1c ti\u1ebfp. \u1ede \u0111\u00e2y m\u00ecnh s\u1ebd h\u01b0\u1edbng d\u1eabn s\u1eed d\u1ee5ng PuTTY.<\/p>\n<p><strong>B\u01b0\u1edbc 1:<\/strong>\u00a0T\u1ea3i v\u00e0 c\u00e0i \u0111\u1eb7t PuTTY b\u1ea3n m\u1edbi nh\u1ea5t cho Windows\u00a0<a href=\"https:\/\/www.chiark.greenend.org.uk\/~sgtatham\/putty\/latest.html\" target=\"_blank\" rel=\"noopener\" data-wpel-link=\"external\">t\u1ea1i \u0111\u00e2y<\/a><\/p>\n<p><strong>B\u01b0\u1edbc 2:<\/strong>\u00a0Sau khi c\u00e0i xong th\u00ec m\u1edf\u00a0<strong>PuTTYgen<\/strong>\u00a0(Menu &gt; PuTTY &gt; PuTTYgen), ch\u1ecdn \u0111\u1ebfn file\u00a0<strong>.pem<\/strong>\u00a0\u0111\u1ec3 convert sang file\u00a0<strong>.ppk<\/strong>\u00a0(file\u00a0<strong>.pem<\/strong>\u00a0l\u00e0 file t\u1ea3i v\u1ec1 l\u00fac t\u1ea1o VPS)<\/p>\n<p><img fetchpriority=\"high\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/cuongnguyen.bat.io.vn\/wp-content\/uploads\/2025\/02\/10-amazing-gadgets-you-can-buy-right-now-o0pc.jpg\" width=\"663\" height=\"647\" \/><\/p>\n<p><img decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/cuongnguyen.bat.io.vn\/wp-content\/uploads\/2025\/02\/10-amazing-gadgets-you-can-buy-right-now-zT0n.jpg\" width=\"662\" height=\"373\" \/><\/p>\n<p><strong>B\u01b0\u1edbc 3:<\/strong>\u00a0Sau khi ch\u1ecdn file v\u00e0 ph\u1ea7n m\u1ec1m convert xong th\u00ec ta l\u01b0u l\u1ea1i key:\u00a0<strong>Save private key<\/strong>\u00a0&gt;\u00a0<strong>\u0111\u1eb7t t\u00ean cho file<\/strong>\u00a0&gt;\u00a0<strong>Save<\/strong><\/p>\n<p><img decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/cuongnguyen.bat.io.vn\/wp-content\/uploads\/2025\/02\/10-amazing-gadgets-you-can-buy-right-now-5w7A.jpg\" width=\"664\" height=\"653\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/cuongnguyen.bat.io.vn\/wp-content\/uploads\/2025\/02\/10-amazing-gadgets-you-can-buy-right-now-meqX.jpg\" width=\"662\" height=\"375\" \/><\/p>\n<p><strong>B\u01b0\u1edbc 4:<\/strong>\u00a0M\u1edf ph\u1ea7n m\u1ec1m PuTTY l\u00ean (Menu &gt; PuTTY &gt; PuTTY). Nh\u1eadp v\u00e0o c\u00e1c th\u00f4ng tin nh\u01b0 sau:<\/p>\n<ul>\n<li>\n<ul>\n<li>T\u1ea1i m\u1ee5c Category &gt; ch\u1ecdn Session\n<ul>\n<li>Host Name (or IP address): nh\u1eadp v\u00e0o\u00a0centos@public_dns (VD: centos<em>@ec2-3-0-20-45.ap-southeast-1.compute.amazonaws.com<\/em>)<\/li>\n<li>Port: 22<\/li>\n<li>Note: user cho c\u00e1c h\u1ec7 \u0111i\u1ec1u h\u00e0nh kh\u00e1c cho ai c\u1ea7n:\n<ul>\n<li>Amazon Linux 2 v\u00e0 Amazon Linux AMI, user name \u0111\u1ec1u l\u00e0\u00a0<strong>ec2-user<\/strong><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<ul>\n<li>\n<ul>\n<li>Centos AMI, user name l\u00e0\u00a0<strong>centos<\/strong><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<ul>\n<li>\n<ul>\n<li>Debian AMI, user name l\u00e0\u00a0<strong>admin<\/strong>\u00a0ho\u1eb7c\u00a0<strong>root<\/strong><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<ul>\n<li>\n<ul>\n<li>\n<ul>\n<li>Fedora AMI, user name l\u00e0\u00a0<strong>ec2-user<\/strong>\u00a0ho\u1eb7c\u00a0<strong>fedora<\/strong><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<ul>\n<li>\n<ul>\n<li>RHEL AMI, user name l\u00e0\u00a0<strong>ec2-user<\/strong>\u00a0ho\u1eb7c\u00a0<strong>root<\/strong><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<ul>\n<li>\n<ul>\n<li>SUSE AMI, user name l\u00e0\u00a0<strong>ec2-user<\/strong>\u00a0ho\u1eb7c\u00a0<strong>root<\/strong><\/li>\n<\/ul>\n<ul>\n<li class=\"listitem\">Ubuntu AMI, user name l\u00e0\u00a0<strong>ubuntu<\/strong><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<ul>\n<li>T\u1ea1i m\u1ee5c Category &gt; ch\u1ecdn Connection &gt; SSH &gt; Auth &gt; browse \u0111\u1ebfn file\u00a0<strong>.ppk<\/strong>\u00a0v\u1eeba convert \u1edf tr\u00ean<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/cuongnguyen.bat.io.vn\/wp-content\/uploads\/2025\/02\/10-amazing-gadgets-you-can-buy-right-now-C1s1.jpg\" width=\"662\" height=\"314\" \/><\/p>\n<p><strong>B\u01b0\u1edbc 5:<\/strong>\u00a0 N\u1ebfu b\u00e1o nh\u01b0 \u1ea3nh d\u01b0\u1edbi l\u00e0 \u0111\u00e3 k\u1ebft n\u1ed1i th\u00e0nh c\u00f4ng<br \/><img decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/cuongnguyen.bat.io.vn\/wp-content\/uploads\/2025\/02\/10-amazing-gadgets-you-can-buy-right-now-q8GF.jpg\" \/><\/p>\n<hr \/>\n<h2>#2 \u2013 C\u00e0i \u0111\u1eb7t HocVPS Script cho CentOS<\/h2>\n<p><strong>HocVPS Script<\/strong>\u00a0l\u00e0 1 bash script ch\u1ea1y tr\u00ean SSH s\u1ebd t\u1ef1 \u0111\u1ed9ng c\u00e0i \u0111\u1eb7t t\u1ea5t c\u1ea3 c\u00e1c th\u00e0nh ph\u1ea7n c\u1ea7n thi\u1ebft nh\u1ea5t cho VPS v\u1edbi m\u1ed9t d\u00f2ng l\u1ec7nh duy nh\u1ea5t. M\u00ecnh hay d\u00f9ng HocVPS v\u00ec m\u1ecdi th\u1ee9 \u0111\u1ec1u t\u1ef1 \u0111\u1ed9ng, ti\u1ec7n cho ng\u01b0\u1eddi \u00edt hi\u1ec3u bi\u1ebft v\u1ec1 VPS nh\u01b0 m\u00ecnh. Ai r\u00e0nh v\u1ec1 VPS th\u00ec c\u00e0i th\u1ee7 c\u00f4ng m\u1ecdi th\u1ee9 s\u1ebd t\u1ed1t h\u01a1n \ud83d\ude42<\/p>\n<p>K\u1ebft n\u1ed1i SSH s\u1eed d\u1ee5ng ZOC Terminal ho\u1eb7c Putty. Nh\u01b0 \u1edf tr\u00ean m\u00ecnh c\u00f3 h\u01b0\u1edbng d\u1eabn d\u00f9ng PuTTY n\u00ean d\u01b0\u1edbi n\u00e0y m\u00ecnh s\u1ebd ti\u1ebfp t\u1ee5c s\u1eed d\u1ee5ng PuTTY.<\/p>\n<ol>\n<li>C\u1ea5p quy\u1ec1n root cho t\u00e0i kho\u1ea3n b\u1eb1ng l\u1ec7nh sau:<br \/>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers  language-git\" data-lang=\"Git\"><code class=\" language-git\" data-hcb-clip=\"1\">sudo su<\/code><\/pre>\n<\/div>\n<\/li>\n<li>Ch\u1ea1y ti\u1ebfp l\u1ec7nh sau \u0111\u1ec3 c\u00e0i \u0111\u1eb7t HocVPS:<br \/>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers  language-git\" data-lang=\"Git\"><code class=\" language-git\" data-hcb-clip=\"2\">curl -sO https:\/\/hocvps.com\/install &amp;&amp; bash install<\/code><\/pre>\n<\/div>\n<\/li>\n<li>Chu\u1ea9n b\u1ecb qu\u00e1 tr\u00ecnh c\u00e0i \u0111\u1eb7t:<br \/><img decoding=\"async\" src=\"https:\/\/cuongnguyen.bat.io.vn\/wp-content\/uploads\/2025\/02\/10-amazing-gadgets-you-can-buy-right-now-NRzQ.jpg\" \/><br \/>Trong b\u01b0\u1edbc n\u00e0y b\u1ea1n c\u1ea7n l\u1ef1a ch\u1ecdn:\n<ul>\n<li><strong>Phi\u00ean b\u1ea3n PHP<\/strong>\u00a0mu\u1ed1n s\u1eed d\u1ee5ng: n\u00ean d\u00f9ng\u00a0<strong>PHP 7.1<\/strong>, c\u00f3 hi\u1ec7u su\u1ea5t g\u1ea5p 3 l\u1ea7n so v\u1edbi phi\u00ean b\u1ea3n c\u0169 5.6.<\/li>\n<li><strong>T\u00ean mi\u1ec1n ch\u00ednh<\/strong>\u00a0s\u1eed d\u1ee5ng v\u1edbi VPS, c\u00f3 th\u1ec3 nh\u1eadp c\u00f3 www ho\u1eb7c kh\u00f4ng c\u00f3 www t\u00f9y m\u1ee5c \u0111\u00edch s\u1eed d\u1ee5ng, script s\u1ebd t\u1ef1 \u0111\u1ed9ng redirect gi\u00fap b\u1ea1n.<\/li>\n<li>Port admin qu\u1ea3n l\u00fd server: l\u00e0 port b\u00ed m\u1eadt (n\u1eb1m trong kho\u1ea3ng 2000 \u2013 9999, thay \u0111\u1ed5i \u0111\u01b0\u1ee3c sau khi c\u00e0i) d\u00f9ng \u0111\u1ec3:\n<ul>\n<li>Truy c\u1eadp link qu\u1ea3n tr\u1ecb, c\u00f3 d\u1ea1ng: http\/\/domain.com:port\/<\/li>\n<li>S\u1eed d\u1ee5ng phpMyAdmin, link d\u1ea1ng: http:\/\/domain.com:port\/phpmyadmin\/<\/li>\n<li>Qu\u1ea3n l\u00fd File Manager, link d\u1ea1ng: http:\/\/domain.com:port\/filemanager\/<\/li>\n<li>Theo d\u00f5i t\u00ecnh tr\u1ea1ng h\u1ec7 th\u1ed1ng, link d\u1ea1ng: http:\/\/domain.com:port\/serverinfo\/<\/li>\n<li>Theo d\u00f5i t\u00ecnh tr\u1ea1ng Zend Opcache, link d\u1ea1ng: http:\/\/domain.com:port\/op.php<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<li>Sau \u0111\u00f3, b\u1ea1n c\u1ee9 \u0111\u1ec3 cho script t\u1ef1 \u0111\u1ed9ng th\u1ef1c hi\u1ec7n qu\u00e1 tr\u00ecnh c\u00e0i \u0111\u1eb7t, c\u00f3 th\u1ec3 m\u1ea5t t\u1eeb 3 \u2013 5 ph\u00fat t\u00f9y c\u1ea5u h\u00ecnh v\u00e0 network c\u1ee7a VPS\/Server.<\/li>\n<li>Cu\u1ed1i c\u00f9ng, n\u1ebfu kh\u00f4ng c\u00f3 v\u1ea5n \u0111\u1ec1 g\u00ec x\u1ea3y ra, b\u1ea1n s\u1ebd nh\u1eadn \u0111\u01b0\u1ee3c th\u00f4ng b\u00e1o c\u00e0i \u0111\u1eb7t th\u00e0nh c\u00f4ng v\u00e0 th\u00f4ng tin qu\u1ea3n l\u00fd VPS nh\u01b0 b\u00ean d\u01b0\u1edbi. \u0110\u1ed3ng th\u1eddi, th\u00f4ng tin n\u00e0y c\u0169ng s\u1ebd \u0111\u01b0\u1ee3c l\u01b0u trong file text c\u00f3 \u0111\u01b0\u1eddng d\u1eabn\u00a0<em><strong>\/root\/hocvps-script.txt<\/strong><\/em>\u00a0\u0111\u1ec3 b\u1ea1n xem l\u1ea1i sau n\u00e0y.<br \/><img decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/cuongnguyen.bat.io.vn\/wp-content\/uploads\/2025\/02\/10-amazing-gadgets-you-can-buy-right-now-V5gi.jpg\" \/><\/li>\n<\/ol>\n<p>V\u1eady l\u00e0 server s\u1eb5n s\u00e0ng \u0111\u1ec3 b\u1ea1n s\u1eed d\u1ee5ng r\u1ed3i \u0111\u1ea5y.<\/p>\n<hr \/>\n<h2>#3 \u2013 M\u1edf port cho VPS Amazon<\/h2>\n<p>M\u1eb7c \u0111\u1ecbnh, HocVPS Script \u0111\u00e3 m\u1edf c\u00e1c port c\u1ea7n thi\u1ebft: SSH(2222), HTTP\/HTTPS(80\/443), HocVPS Admin\u2026 Tuy v\u1eady, m\u1ed9t s\u1ed1 nh\u00e0 cung c\u1ea5p VPS (nh\u01b0 Google Cloud, Amazon\u2026) c\u00f3 thi\u1ebft l\u1eadp t\u01b0\u1eddng l\u1eeda ri\u00eang b\u00ean ngo\u00e0i VPS v\u00e0 m\u1eb7c \u0111\u1ecbnh ch\u1ec9 cho ph\u00e9p port SSH(22) v\u00e0 HTTP(80). M\u1edf port th\u1ee7 c\u00f4ng b\u1eb1ng c\u00e1ch sau:<\/p>\n<p>Ph\u1ea7n n\u00e0y th\u1ef1c hi\u1ec7n tr\u00ean website\u00a0<a href=\"https:\/\/console.aws.amazon.com\/ec2\/\" target=\"_blank\" rel=\"noopener\" data-wpel-link=\"external\">https:\/\/console.aws.amazon.com\/ec2\/<\/a><\/p>\n<p><strong>B\u01b0\u1edbc 1:<\/strong>\u00a0b\u1ea1n c\u1ea7n \u0111\u0103ng nh\u1eadp v\u00e0o website console<\/p>\n<p><strong>B\u01b0\u1edbc 2:<\/strong>\u00a0Ch\u1ecdn m\u1ee5c \u201c<strong>Running Instances<\/strong>\u201d v\u00e0 ch\u1ecdn m\u00e1y ch\u1ee7 b\u1ea1n mu\u1ed1n m\u1edf port<\/p>\n<p><img decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/cuongnguyen.bat.io.vn\/wp-content\/uploads\/2025\/02\/10-amazing-gadgets-you-can-buy-right-now-M0Tl.jpg\" \/><\/p>\n<p><img decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/cuongnguyen.bat.io.vn\/wp-content\/uploads\/2025\/02\/10-amazing-gadgets-you-can-buy-right-now-tAZY.jpg\" \/><\/p>\n<p><strong>B\u01b0\u1edbc 3:<\/strong>\u00a0\u1ede c\u1ed9t \u201c<strong>Security groups<\/strong>\u201c, Click security group c\u1ee7a instance \u0111\u01b0\u1ee3c ch\u1ecdn, h\u1ec7 th\u1ed1ng chuy\u1ec3n sang m\u00e0n h\u00ecnh \u201c<strong>List Security Groups<\/strong>\u201c<\/p>\n<p><img decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/cuongnguyen.bat.io.vn\/wp-content\/uploads\/2025\/02\/10-amazing-gadgets-you-can-buy-right-now-XIPs.jpg\" \/><\/p>\n<p><strong>B\u01b0\u1edbc 4:<\/strong>\u00a0Click \u201c<strong>Inbound<\/strong>\u201d &gt; \u201c<strong>Edit<\/strong>\u201c, s\u1ebd c\u00f3 pop-up gi\u1ed1ng b\u00ean d\u01b0\u1edbi \u0111\u01b0\u1ee3c m\u1edf ra.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/cuongnguyen.bat.io.vn\/wp-content\/uploads\/2025\/02\/10-amazing-gadgets-you-can-buy-right-now-PaIn.jpg\" \/><\/p>\n<p><img decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/cuongnguyen.bat.io.vn\/wp-content\/uploads\/2025\/02\/10-amazing-gadgets-you-can-buy-right-now-9Znx.jpg\" \/><\/p>\n<p><strong>B\u01b0\u1edbc 5:<\/strong>\u00a0Ta s\u1ebd m\u1edf lu\u00f4n 3 port. Click \u201c<strong>Add Rule\u201d<\/strong>\u00a0v\u00e0 ch\u1ecdn nh\u01b0 sau:<\/p>\n<div class=\"responsive-tabs-wrapper\">\n<div class=\"responsive-tabs responsive-tabs--enabled\">\n<ul class=\"responsive-tabs__list\" role=\"tablist\">\n<li id=\"tablist1-tab1\" class=\"responsive-tabs__list__item responsive-tabs__list__item--active\" tabindex=\"0\" role=\"tab\" aria-controls=\"tablist1-panel1\">HTTP<\/li>\n<li id=\"tablist1-tab2\" class=\"responsive-tabs__list__item\" tabindex=\"0\" role=\"tab\" aria-controls=\"tablist1-panel2\">Port 2222<\/li>\n<li id=\"tablist1-tab3\" class=\"responsive-tabs__list__item\" tabindex=\"0\" role=\"tab\" aria-controls=\"tablist1-panel3\">Port Admin<\/li>\n<li id=\"tablist1-tab4\" class=\"responsive-tabs__list__item\" tabindex=\"0\" role=\"tab\" aria-controls=\"tablist1-panel4\">Port 443 (HTTPS)<\/li>\n<\/ul>\n<div id=\"tablist1-panel1\" class=\"tabcontent responsive-tabs__panel responsive-tabs__panel--active\" role=\"tabpanel\" aria-hidden=\"false\" aria-labelledby=\"tablist1-tab1\">\n<ul>\n<li><strong>Type:<\/strong>\u00a0<em>HTTP<\/em><\/li>\n<li><strong>Protocal:<\/strong>\u00a0<em>TCP<\/em><\/li>\n<li><strong>Port Range:<\/strong>\u00a0<em>80<\/em><\/li>\n<li><strong>Source:<\/strong>\u00a0<em>Custom<\/em><\/li>\n<\/ul>\n<\/div>\n<\/div>\n<\/div>\n<p>\u2014&gt;\u00a0<strong>Save<\/strong>\u00a0l\u1ea1i<\/p>\n<p><img decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/cuongnguyen.bat.io.vn\/wp-content\/uploads\/2025\/02\/10-amazing-gadgets-you-can-buy-right-now-4x78-1.jpg\" \/><\/p>\n<hr \/>\n<h2>#4 \u2013 Qu\u1ea3n l\u00fd file tr\u00ean VPS<\/h2>\n<p>\u2013 \u0110\u1ec3 upload hay download file tr\u00ean VPS, ta c\u00f3 th\u1ec3 d\u00f9ng lu\u00f4n File Manager c\u1ee7a HocVPS:<\/p>\n<p><img decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/cuongnguyen.bat.io.vn\/wp-content\/uploads\/2025\/02\/10-amazing-gadgets-you-can-buy-right-now-X66c.jpg\" \/><\/p>\n<p>\u2013 Ho\u1eb7c n\u1ebfu ai \u0111\u00e3 t\u1eebng d\u00f9ng host th\u00ec qu\u00e1 quen v\u1edbi c\u00e1c ph\u1ea7n m\u1ec1m FTP nh\u01b0\u00a0FileZilla, CuteFTP, \u2026 nh\u01b0ng v\u1edbi VPS th\u00ec ta ph\u1ea3i d\u00f9ng c\u00e1c ph\u1ea7n m\u1ec1m h\u1ed7\u00a0 tr\u1ee3 sFTP. Trong b\u00e0i n\u00e0y m\u00ecnh h\u01b0\u1edbng d\u1eabn s\u1eed d\u1ee5ng\u00a0<strong>WinSCP<\/strong>\u00a0nh\u00e9.<\/p>\n<p>C\u00f3 m\u1ed9t v\u1ea5n \u0111\u1ec1 b\u1ea1n c\u1ea7n quan t\u00e2m l\u00e0 ph\u00e2n quy\u1ec1n \u0111\u1ec3 upload file l\u00ean th\u01b0 m\u1ee5c home\/domain.com\/public_html b\u1ea1n ch\u1ea1y d\u00f2ng l\u1ec7nh b\u00ean d\u01b0\u1edbi.<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers  language-git\" data-lang=\"Git\"><code class=\" language-git\" data-hcb-clip=\"3\">sudo suchown -R &lt;ten-user-ssh&gt; \/home\/domain.com\/public_html<\/code><\/pre>\n<\/div>\n<p>N\u1ebfu b\u1ea1n c\u00e0i plugin, theme, update wordpress m\u00e0 b\u1ecb y\u00eau c\u1ea7u \u0111\u0103ng nh\u1eadp FTP th\u00ec b\u1ea1n d\u00f9ng d\u00f2ng l\u1ec7nh n\u00e0y tr\u00ean SSH \u0111\u1ec3 c\u1ea5p quy\u1ec1n, l\u1ea7n sau n\u00f3 s\u1ebd kh\u00f4ng h\u1ecfi l\u1ea1i n\u1eefa:<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers  language-git\" data-lang=\"Git\"><code class=\" language-git\" data-hcb-clip=\"4\">sudo suchown -R nginx:nginx \/home\/domain.com\/public_html<\/code><\/pre>\n<\/div>\n<ol>\n<li>T\u1ea3i xu\u1ed1ng v\u00e0 c\u00e0i \u0111\u1eb7t WinSCP t\u1eeb\u00a0<a href=\"http:\/\/winscp.net\/eng\/download.php\" target=\"_blank\" rel=\"noopener\" data-wpel-link=\"external\">http:\/\/winscp.net\/eng\/download.php<\/a><\/li>\n<li>Kh\u1edfi \u0111\u1ed9ng WinSCP<\/li>\n<li>T\u1ea1i m\u00e0n h\u00ecnh \u0111\u0103ng nh\u1eadp c\u1ee7a WinSCP, nh\u1eadp v\u00e0o nh\u01b0 sau:<br \/>\u2013 Host name: nh\u1eadp v\u00e0o\u00a0<em><strong>public DNS<\/strong><\/em>\u00a0ho\u1eb7c\u00a0<em><strong>IPv4 Public IP<\/strong><\/em><br \/>\u2013 Port:\u00a0<em><strong>2222<\/strong><\/em>\u00a0(do \u1edf tr\u00ean m\u00ecnh c\u00e0i HocVPS n\u00ean port \u0111\u00e3 thay \u0111\u1ed5i t\u1eeb 22 sang 2222)<br \/>\u2013 User name:\u00a0<em><strong>centos<\/strong><\/em><br \/>V\u00e0 th\u00eam file\u00a0<strong>.ppk<\/strong>\u00a0\u0111\u00e3 \u0111\u01b0\u1ee3c convert b\u1eb1ng\u00a0<strong>PuTTYgen<\/strong>\u00a0\u1edf tr\u00ean<br \/><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/cuongnguyen.bat.io.vn\/wp-content\/uploads\/2025\/02\/10-amazing-gadgets-you-can-buy-right-now-0l80.jpg\" width=\"567\" height=\"384\" \/><br \/><img decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/cuongnguyen.bat.io.vn\/wp-content\/uploads\/2025\/02\/10-amazing-gadgets-you-can-buy-right-now-smzS.jpg\" \/><\/li>\n<li>\u1ea4n\u00a0<strong>OK<\/strong>\u00a0xong th\u00ec ch\u1ecdn\u00a0<strong>Login<\/strong>, n\u1ebfu c\u00f3 y\u00eau c\u1ea7u x\u00e1c nh\u1eadn g\u00ec th\u00ec c\u1ee9 ch\u1ecdn\u00a0<strong>Yes<\/strong>\u00a0h\u1ebft nh\u00e9. N\u1ebfu \u0111\u0103ng nh\u1eadp th\u00e0nh c\u00f4ng th\u00ec n\u00f3 s\u1ebd th\u1ebf n\u00e0y:<br \/><img decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/cuongnguyen.bat.io.vn\/wp-content\/uploads\/2025\/02\/10-amazing-gadgets-you-can-buy-right-now-4bTl.jpg\" \/><\/li>\n<\/ol>\n<p>\u0110\u1ebfn \u0111\u00e2y r\u1ed3i th\u00ec c\u00e1c b\u1ea1n up source l\u00ean c\u00e0i WordPress ho\u1eb7c up file backup l\u00ean r\u1ed3i extract ra d\u00f9ng nh\u00e9.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>H\u00f4m nay m\u00ecnh s\u1ebd chia s\u1ebb \u0111\u1ebfn c\u00e1c b\u1ea1n b\u00e0i vi\u1ebft h\u01b0\u1edbng d\u1eabn thi\u1ebft l\u1eadp CentOS tr\u00ean VPS Amazeone. Tr\u01b0\u1edbc khi b\u1eaft tay v\u00e0o \u0111\u1ec3 thi\u1ebft l\u1eadp, c\u00e1c b\u1ea1n h\u00e3y \u0111\u1ecdc l\u1ea1i b\u00e0i vi\u1ebft \u201d\u00a0H\u01b0\u1edbng d\u1eabn \u0111\u0103ng k\u00fd VPS Amazone mi\u1ec5n ph\u00ed\u201d \u0111\u1ec3 \u0111\u0103ng k\u00fd cho m\u00ecnh m\u1ed9t VPS nh\u00e9. C\u00f3 nhi\u1ec1u ph\u1ea7n m\u1ec1m SSH [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1201,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15],"tags":[],"class_list":["post-27","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-vps"],"blocksy_meta":[],"_links":{"self":[{"href":"https:\/\/cuongnguyen.bat.io.vn\/index.php\/wp-json\/wp\/v2\/posts\/27","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cuongnguyen.bat.io.vn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cuongnguyen.bat.io.vn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cuongnguyen.bat.io.vn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cuongnguyen.bat.io.vn\/index.php\/wp-json\/wp\/v2\/comments?post=27"}],"version-history":[{"count":0,"href":"https:\/\/cuongnguyen.bat.io.vn\/index.php\/wp-json\/wp\/v2\/posts\/27\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/cuongnguyen.bat.io.vn\/index.php\/wp-json\/wp\/v2\/media\/1201"}],"wp:attachment":[{"href":"https:\/\/cuongnguyen.bat.io.vn\/index.php\/wp-json\/wp\/v2\/media?parent=27"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cuongnguyen.bat.io.vn\/index.php\/wp-json\/wp\/v2\/categories?post=27"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cuongnguyen.bat.io.vn\/index.php\/wp-json\/wp\/v2\/tags?post=27"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}