Hi all, bài viết này mình sẽ chia sẻ cách tìm để xem và thay đổi hostname trong máy tính của mình sử dụng hệ điều hành Windows và Linux. Bởi vì một số phần mềm khi cài đặt hoặc vận hành sẽ yêu cầu chúng ta thiết lập chính xác hostname trên máy của mình. Mọi người có thể tìm hiểu thêm về định nghĩa về hostname tại wiki ( click here ).
Bạn chọn 1 trong 2 hệ điều hành mà máy mình đang sử dụng nhé:
Windows:
Trong Windows hostname chính là “Full Computer Name” nên để chỉnh sửa chúng ta sẽ làm như sau:
Chúng ta sẽ ấn tổ hợp phím Windows + R ( để mở RUN ) và gõ vào “sysdm.cpl” :
Tại đây chúng ta sẽ thấy hostname chính là chỗ “Full Computer Name”.
Để thay đổi chúng ta sẽ click vào “Change…” Sau đó nhập tên muốn thay đổi vào phần “Computer name” -> Ok:
NOTE: khi chỉnh sửa hostname thì không được đặt tên bao gồm khoảng trắng trong hostname.
Sau đó Restart lại máy là xong.
Linux Mint / Ubuntu:
Kiểm tra hostname hiện tại theo câu lệnh sau:
$hostname
Để thay đổi hostname chúng ta sẽ làm theo như sau, bởi vì hostname được chứa trong file /etc/hostname nên chúng ta sẽ chỉnh sửa file này bằng vim hoặc nano … Ở đây mình sử dụng vim thì sẽ gõ như sau:
$sudo vim /etc/hostname
Sau đó chúng ta sẽ sửa lại tên hostname và save lại.
NOTE: khi chỉnh sửa hostname thì không được đặt tên bao gồm khoảng trắng trong hostname.
Sau khi xong chúng ta lưu lại và reboot lại máy.
Chúc mọi người thành công 😀
Pingback: Chi tiết sử dụng Glassfish Server Deploy – Undeploy – Redeploy Web Application JSP/Servlet | D.John Blog
When someone writes an paragraph he/she retains the thought of a user in his/her brain that how a user can understand it.
Therefore that’s why this paragraph is great. Thanks!
LikeLike
What’s Going down i’m new to this, I stumbled upon this I’ve found It absolutely useful and it has helped me out loads.
I hope to contribute & aid other users like its aided me.
Great job.
LikeLike
A healthy lifestyle, detailed with proper foods and employ,
may go a long way in lessening the signs of ADHD in children.
So nobody is absolutely sure the amount cancer comes from work plus it obviously must very in accordance with occupation. A phenol peel can help to eliminate major scarring
or signs of aging and will even permanently remove freckles.
LikeLike
fantastic put up, very informative. I wonder why the other experts of this sector don’t realize this.
You should proceed your writing. I am confident,
you have a great readers’ base already!
LikeLike
I was recommended this web site by my cousin. I’m not sure whether this
post is written by him as no one else know such detailed about my
problem. You’re wonderful! Thanks!
LikeLike
Hi my friend! I wish to say that this article is amazing,
great written and include almost all important infos.
I would like to see more posts like this .
LikeLike
I am not sure where you are getting your information, but great topic.
I needs to spend some time learning much more or understanding more.
Thanks for great information I was looking for this info for my mission.
LikeLike
I am really impressed with your writing abilities and also with
the structure on your blog. Is this a paid subject matter or did
you modify it your self? Anyway keep up the excellent high quality writing, it is rare to see a
great blog like this one nowadays..
LikeLike
We are the perfect payday loan search solution you’ll discover,
and our website helps you search through a whole lot of lenders to find those that are right for you and
your scenario.
LikeLike
Generally I do not read post on blogs, but I would like to say
that this write-up very compelled me to check out and do it!
Your writing taste has been surprised me. Thanks, quite great article.
LikeLike
The eCom Success Academy is in its matchless league.
LikeLike
The eCom Success Academy is in its matchless league.
LikeLike
Olá!! Sei que é meio off-topic entretanto, eu preciso fazer uma pergunta .
Você estaria interessado em negociar links ou comentários?
Poderia ser escrevendo um artigo no meu site e vice-versa?
Meu blog discute assuntos muito parecidos com o seu e eu sinto
que nós realmente podemos nos beneficiar. Se você ficar interessado sinta-se
livre para me enviar um e-mail . Estou ansioso para ouvir sua resposta!
Seu site é Maravilhoso , a propósito!
LikeLike
I like the helpful info you provide in your articles.
I will bookmark your weblog and check again here regularly.
I’m quite sure I’ll learn many new stuff right here! Best of luck
for the next!
LikeLike
Hello Dear, are you actually visiting this website daily, if so then you will definitely get fastidious knowledge.
LikeLike
My relatives always say that I am wasting my time here at web, except I know
I am getting know-how everyday by reading thes pleasant posts.
LikeLike
You actually make it seem really easy with your presentation but I in finding this topic to be really something that I think I would by no means understand.
It kind of feels too complicated and extremely huge for me.
I am looking ahead for your next publish, I’ll try to
get the hang of it!
LikeLike
There’s definately a lot to find out about this subject.
I love all the points you have made.
LikeLike
Cool blog! Is your theme custom made or did you download
it from somewhere? A theme like yours with a
few simple adjustements would really make my blog jump out.
Please let me know where you got your theme. Many
thanks
LikeLike
Liked the flowers my daughter received.
LikeLike
Wonderful site you have here but I ᴡas curious if
you knew of anyy message boards that cover the same
topics discuѕsed іn this article? I’d reallly love to bе a paгt ⲟf community
wһere I can get comments from otһeг knowledgeable people tһat share tһe samе
intereѕt. If yoᥙ hɑve any recommendations, please let me know.
Thankѕ!
LikeLike
Sure, pure predator insects might be utilized to seek out and eliminate the pesky insects which are damaging your
garden.
LikeLike
So, no need so that you can dispatch essential documents via
fax that will probably be required by the lender.
LikeLike
I am regular visitor, how are you everybody? This piece of writing posted at this
web page is truly nice.
LikeLike
When you think of fat you’ll probably think of butter
or lard, a thing that is not just clogging your arteries
but in addition adding inches in your waistline. People have to lower cholesterol
intake and increase diet plan rich in fiber.
This way you know whether your levels are healthy or if they desire improvement to keep your body within the best health possible.
LikeLike
I think this internet site has got very great indited articles blog posts.
LikeLike
You really make it seem so easy with your presentation but I find this matter to be really something which I think I would never understand.
It seems too complex and very broad for me. I’m looking forward for your next post, I will try to get the hang of it!
LikeLike
This article is actually a good one it helps new internet viewers, who
are wishing for blogging.
LikeLike
Hello there! I know this is somewhat off topic but
I was wondering if you knew where I could find a captcha plugin for
my comment form? I’m using the same blog platform as yours and I’m having trouble finding one?
Thanks a lot!
LikeLike
You should be a part of a contest for one of the best blogs on the net.
I’m going to highly recommend this web site!
LikeLike
Good web site you’ve got here.. It’s hard to find excellent writing
like yours nowadays. I honestly appreciate people like you!
Take care!!
LikeLike
Pretty! This has been an extremely wonderful post.
Thank you for providing this info.
LikeLike
If some one wishes to be updated with latest technologies after that he
must be visit this wweb site and be up to date everty day.
LikeLike
You ought to be a part of a contest for one of the greatest
websites online. I am going to recommend this blog!
LikeLike
Amazing! Its in fact awesome paragraph, I have got much clear idea about from this paragraph.
LikeLike
The primary motive people fail as pubic speakers.
LikeLike
Why viewers still make use of to read news papers when in this technological globe the whole thing is existing
on net?
LikeLike
These are genuinely impressive ideas in concerning blogging.
You have touched some fastidious factors here. Any way keep up wrinting.
LikeLike