tutorial, Ubuntu & LinuxMint, Unix & Linux, windows

Tìm và thay đổi hostname máy tính Windows và Linux Mint

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” :

run sysdm.cpl

run sysdm.cpl

sysdm.cpl

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.

Change Computer Name

Change Computer Name

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.

change hostname ubuntu server

change hostname ubuntu server

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 😀

Standard

39 thoughts on “Tìm và thay đổi hostname máy tính Windows và Linux Mint

  1. Pingback: Chi tiết sử dụng Glassfish Server Deploy – Undeploy – Redeploy Web Application JSP/Servlet | D.John Blog

  2. 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.

    Like

  3. 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.

    Like

  4. 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.

    Like

  5. 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.

    Like

  6. 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!

    Like

  7. 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!

    Like

  8. 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!

    Like

  9. 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ѕ!

    Like

  10. 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.

    Like

  11. 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!

    Like

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.