{"id":2327,"date":"2019-10-03T09:14:43","date_gmt":"2019-10-03T02:14:43","guid":{"rendered":"https:\/\/tino.vn\/?post_type=ht_kb&#038;p=2327"},"modified":"2020-02-14T16:04:50","modified_gmt":"2020-02-14T09:04:50","slug":"huong-dan-thay-doi-hostname-tren-tinohost-panel-va-tren-command-line-vps","status":"publish","type":"ht_kb","link":"https:\/\/tino.vn\/blog\/docs\/huong-dan-thay-doi-hostname-tren-tinohost-panel-va-tren-command-line-vps\/","title":{"rendered":"H\u01b0\u1edbng d\u1eabn thay \u0111\u1ed5i hostname tr\u00ean trang kh\u00e1ch h\u00e0ng TINOHOST Panel v\u00e0 tr\u00ean command line VPS"},"content":{"rendered":"<p>V\u00ec m\u1ed9t v\u00e0i l\u00fd do b\u1ea1n mong mu\u1ed1n \u0111\u1ed5i hostname, Sau \u0111\u00e2y Tinohost s\u1ebd h\u01b0\u1edbng d\u1eabn c\u00e1c b\u1ea1n thay \u0111\u1ed5i hostname tr\u00ean tino Panel v\u00e0 tr\u00ean command line VPS.<\/p>\n<p><iframe loading=\"lazy\" src=\"\/\/www.youtube.com\/embed\/UtiIQBg2vYE\" width=\"560\" height=\"315\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n<h2 id=\"\u0110\u1ed5i_hostname_tr\u00ean_Tino_Panel\">\u0110\u1ed5i hostname tr\u00ean Tino Panel<\/h2>\n<p>Tr\u01b0\u1edbc ti\u00ean b\u1ea1n truy c\u1eadp trang qu\u1ea3n l\u00fd d\u1ecbch v\u1ee5 t\u1ea1i: https:\/\/my.tino.org\/clientarea.php?action=services<\/p>\n<p><a href=\"https:\/\/www.screencast.com\/t\/9MHALnuMG\" rel=\"nofollow noopener\" target=\"_blank\"><img decoding=\"async\" src=\"https:\/\/content.screencast.com\/users\/JohnGrayWorld\/folders\/Snagit\/media\/28cf84c9-11b7-4baf-9caf-b461d4bace96\/10.03.2019-08.07.png?source=oembed\" alt=\"10.03.2019-08.07.27\" width=\"500\" height=\"224\" title=\"\"><\/a><\/p>\n<p>Click truy c\u1eadp panel qu\u1ea3n l\u00fd d\u1ecbch v\u1ee5 VPS b\u1ea1n mu\u1ed1n \u0111\u1ed5i hostname.<\/p>\n<p><a href=\"https:\/\/www.screencast.com\/t\/9zuryeQb\" rel=\"nofollow noopener\" target=\"_blank\"><img decoding=\"async\" src=\"https:\/\/content.screencast.com\/users\/JohnGrayWorld\/folders\/Snagit\/media\/47d6abc8-7fae-476c-9874-40f2b646564b\/10.03.2019-08.10.png?source=oembed\" alt=\"10.03.2019-08.10.07\" width=\"500\" height=\"208\" title=\"\"><\/a><\/p>\n<p>Hostname hi\u1ec7n t\u1ea1i \u0111ang l\u00e0: <strong>cloud8442.tino.org<\/strong> T\u00f4i mu\u1ed1n \u0111\u1ed5i th\u00e0nh <strong>vps.vanphong.com .\u00a0<\/strong>Ti\u1ebfp theo t\u00f4i ch\u1ecdn v\u00e0o bi\u1ec3u t\u01b0\u1ee3ng <strong>hostname\u00a0<\/strong>tr\u00ean panel qu\u1ea3n l\u00fd.<\/p>\n<p><a href=\"https:\/\/www.screencast.com\/t\/DkRUKJEB\" rel=\"nofollow noopener\" target=\"_blank\"><img decoding=\"async\" src=\"https:\/\/content.screencast.com\/users\/JohnGrayWorld\/folders\/Snagit\/media\/3fe0ca8c-75d5-4bd5-875c-cf7cb55a3b4f\/10.03.2019-08.13.png?source=oembed\" alt=\"10.03.2019-08.13.37\" width=\"500\" height=\"248\" title=\"\"><\/a><\/p>\n<p>Tr\u00ean tr\u00ecnh duy\u1ec7t c\u1ee7a b\u1ea1n s\u1ebd hi\u1ec3n th\u1ecb m\u1ed9t box m\u1edbi cho ph\u00e9p b\u1ea1n nh\u1eadp th\u00f4ng tin hostname mu\u1ed1n \u0111\u1ed5i qua. B\u1ea1n nh\u1eadp hostname mu\u1ed1n \u0111\u1ed5i v\u00e0 click v\u00e0o <strong>change Hostname<\/strong> \u0111\u1ec3 x\u00e1c nh\u1eadn \u0111\u1ed5i.<\/p>\n<p><a href=\"https:\/\/www.screencast.com\/t\/ye9L0K0jKiZ\" rel=\"nofollow noopener\" target=\"_blank\"><img decoding=\"async\" src=\"https:\/\/content.screencast.com\/users\/JohnGrayWorld\/folders\/Snagit\/media\/6fa4a258-f944-47ae-89c4-c7416cc7fa65\/10.03.2019-08.19.png?source=oembed\" alt=\"10.03.2019-08.19.07\" width=\"500\" height=\"318\" title=\"\"><\/a><\/p>\n<p>Tr\u00ean tr\u00ecnh duy\u1ec7t s\u1ebd hi\u1ec3n th\u1ecb m\u1ed9t popup th\u00f4ng b\u00e1o vi\u1ec7c \u0111\u1ed5i Hostname \u0111\u00e3 ho\u00e0n t\u1ea5t, b\u1ea1n ch\u1ec9 c\u1ea7n reboot l\u1ea1i VPS \u0111\u1ec3 vi\u1ec7c \u0111\u1ed5i hostname \u0111\u01b0\u1ee3c \u00e1p d\u1ee5ng.<\/p>\n<p><a href=\"https:\/\/www.screencast.com\/t\/CifwKU8g0sm6\" rel=\"nofollow noopener\" target=\"_blank\"><img decoding=\"async\" src=\"https:\/\/content.screencast.com\/users\/JohnGrayWorld\/folders\/Snagit\/media\/19caf2c3-4ac6-47f7-9588-1e3a160a60f3\/10.03.2019-08.21.png?source=oembed\" alt=\"10.03.2019-08.21.29\" width=\"500\" height=\"381\" title=\"\"><\/a><\/p>\n<p>B\u1ea1n click v\u00e0o OK v\u00e0 sau \u0111\u00f3 click v\u00e0o n\u00fat reboot VPS v\u00e0 ki\u1ec3m tra l\u1ea1i sau 5-10 ph\u00fat.<\/p>\n<p><a href=\"https:\/\/www.screencast.com\/t\/QClKBmRypUp\" rel=\"nofollow noopener\" target=\"_blank\"><img decoding=\"async\" src=\"https:\/\/content.screencast.com\/users\/JohnGrayWorld\/folders\/Snagit\/media\/a661f341-f211-4e9f-a224-2738be2bf443\/10.03.2019-08.27.png?source=oembed\" alt=\"10.03.2019-08.27.05\" width=\"500\" height=\"286\" title=\"\"><\/a><\/p>\n<p>B\u1ea1n ki\u1ec3m tra l\u1ea1i s\u1ebd th\u1ea5y Hostname \u0111\u00e3 thay \u0111\u1ed5i th\u00e0nh c\u00f4ng.<\/p>\n<p><a href=\"https:\/\/www.screencast.com\/t\/UdIoC6Nu9l\" rel=\"nofollow noopener\" target=\"_blank\"><img decoding=\"async\" src=\"https:\/\/content.screencast.com\/users\/JohnGrayWorld\/folders\/Snagit\/media\/f816b80c-eb15-4723-ad7b-81ac2cc2bb68\/10.03.2019-08.35.png?source=oembed\" alt=\"10.03.2019-08.35.09\" width=\"500\" height=\"316\" title=\"\"><\/a><\/p>\n<p>&nbsp;<\/p>\n<h2 id=\"\u0110\u1ed5i_hostname_tr\u00ean_VPS_terminal\">\u0110\u1ed5i hostname tr\u00ean VPS terminal<\/h2>\n<p>Khi truy c\u1eadp ssh v\u00e0o vps b\u1ea1n c\u00f3 th\u1ec3 ki\u1ec3m tra hostname hi\u1ec7n t\u1ea1i b\u1eb1ng l\u1ec7nh:<\/p>\n<pre>hostname<\/pre>\n<p><a href=\"https:\/\/www.screencast.com\/t\/BZC04TUWwR\" rel=\"nofollow noopener\" target=\"_blank\"><img decoding=\"async\" src=\"https:\/\/content.screencast.com\/users\/JohnGrayWorld\/folders\/Snagit\/media\/4f9829ca-2fa5-493b-b458-f3f649f47bbd\/10.03.2019-08.41.png?source=oembed\" alt=\"10.03.2019-08.41.11\" width=\"500\" height=\"147\" title=\"\"><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>\u0110\u1ed5i sang hostname m\u1edbi l\u00e0<\/p>\n<p><code>vps1.vanphong.com<\/code><\/p>\n<p>Th\u1ef1c hi\u1ec7n ch\u1ea1y l\u1ec7nh:<\/p>\n<pre>hostname \"vps1.vanphong.com\"\r\n\r\n\u0110\u1ed1i v\u1edbi centos 7:\r\nhostnamectl set-hostname vps1.vanphong.com<\/pre>\n<p>Ch\u1ec9nh s\u1eeda file sau:<code>\/etc\/sysconfig\/network<\/code><\/p>\n<p>V\u00e0 th\u00eam v\u00e0o \u0111o\u1ea1n c\u1ea5u h\u00ecnh sau:<\/p>\n<pre>NETWORKING=yes\r\nHOSTNAME= vps1.vanphong.com<\/pre>\n<p>Ch\u1ec9nh s\u1eeda file host: <code># nano \/etc\/hosts<\/code><\/p>\n<ul>\n<li>Thay \u0111\u1ed5i block cu\u1ed1i:<\/li>\n<\/ul>\n<pre>127.0.0.1 vps1.vanphong.com vps1.vanphong\r\n::1       vps1.vanphong.com vps1.vanphong<\/pre>\n<ul>\n<li>Th\u00eam v\u00e0o cu\u1ed1i IP VPS v\u00e0 hostname t\u01b0\u01a1ng \u1ee9ng:\u00a0<code>xxx.xxx.xxx.xxx vps1.vanphong.com\u00a0\u00a0<\/code><\/li>\n<\/ul>\n<p>Kh\u1edfi \u0111\u1ed9ng l\u1ea1i server v\u00e0 check k\u1ebft qu\u1ea3:<\/p>\n<pre># reboot\r\n# hostname\r\n<\/pre>\n<h2 id=\"Th\u1ef1c_hi\u1ec7n_tr\u00ean_Ubuntu\">Th\u1ef1c hi\u1ec7n tr\u00ean Ubuntu<\/h2>\n<ul>\n<li>Ki\u1ec3m tra hostname hi\u1ec7n t\u1ea1i:<code># hostname<\/code><\/li>\n<li>Thay \u0111\u1ed5i hostname:\u00a0<code># hostname vps1.vanphong.com<\/code><\/li>\n<li>Ch\u1ec9nh s\u1eeda file hostname:\u00a0<code># nano \/etc\/hostname<\/code><\/li>\n<li>Ch\u1ec9nh s\u1eeda file host(nh\u01b0 CentOS):\u00a0<code>nano \/etc\/hosts<\/code><\/li>\n<\/ul>\n<p>L\u01b0u \u00fd: \u0110\u1ed1i v\u1edbi Ubuntu phi\u00ean b\u1ea3n 14.04 tr\u1edf l\u00ean, b\u1ea1n ch\u1ec9 c\u1ea7n thay \u0111\u1ed5i hostname b\u1eb1ng 1 c\u00e2u l\u1ec7nh duy nh\u1ea5t:<\/p>\n<pre># hostnamectl set-hostname vps1.vanphong.com<\/pre>\n<p>&nbsp;<\/p>\n<p>Ch\u00fac c\u00e1c b\u1ea1n th\u00e0nh c\u00f4ng.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>V\u00ec m\u1ed9t v\u00e0i l\u00fd do b\u1ea1n mong mu\u1ed1n \u0111\u1ed5i hostname, Sau \u0111\u00e2y Tinohost s\u1ebd h\u01b0\u1edbng d\u1eabn c\u00e1c b\u1ea1n thay \u0111\u1ed5i hostname tr\u00ean tino Panel v\u00e0 tr\u00ean command line VPS. \u0110\u1ed5i hostname tr\u00ean Tino Panel Tr\u01b0\u1edbc ti\u00ean b\u1ea1n truy c\u1eadp trang qu\u1ea3n l\u00fd d\u1ecbch v\u1ee5 t\u1ea1i: https:\/\/my.tino.org\/clientarea.php?action=services Click truy c\u1eadp panel qu\u1ea3n l\u00fd d\u1ecbch v\u1ee5 VPS [&hellip;]<\/p>\n","protected":false},"author":7,"featured_media":2437,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","format":"standard","meta":{"footnotes":""},"tags":[],"ht_kb_category":[17],"class_list":["post-2327","ht_kb","type-ht_kb","status-publish","format-standard","has-post-thumbnail","hentry","ht_kb_category-huong-dan-ve-cloud-vps"],"_links":{"self":[{"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/ht_kb\/2327","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=2327"}],"version-history":[{"count":0,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/ht_kb\/2327\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/media\/2437"}],"wp:attachment":[{"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/media?parent=2327"}],"wp:term":[{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/tags?post=2327"},{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/ht_kb_category?post=2327"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}