Change my hostname or the machine name in Red Hat Linux.

ถ้าเราต้องการแก้ไขชื่อเครื่องใน Red Hat หรือ Red Hat Clone สามารถทำได้หลายวิธีด้วยกัน คือ

- ใช้คำสั่ง hostname (ไม่ต้อง restart service network)
โดยพิมพ์ hostname ชื่อเครื่อง ตัวอย่าง ต้องการแก้ไขชื่อเครื่องเป็น hostname.example.com
#hostname hostname.example.com


- system-config-network (ต้อง restart service network)

- แก้ไขในไฟล์ /etc/sysconfig/network (ต้อง restart service network)
แก้ไขตรงส่วนของ HOSTNAME ตัวอย่าง ต้องการแก้ไขชื่อเครื่องเป็น hostname.example.com
# cat /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=hostname.example.com

Related posts:

  1. What is a Red Hat Enterprise Linux Installation Number and where do I get it? Resolution: The Red Hat Enterprise Linux 5 Installation...
  2. Red Hat launches Red Hat Enterprise Linux 5 update 5 (RHEL5.5) เมื่อวันพุธที่ผ่านมา Red Hat ได้ออก update 5 ซึ่งเป็น Update...
  3. วิธีดู Version ของ Red Hat Enterprise Linux, Centos Linux วิธีการดู Version ของ Red Hat Enterprise Linux, Centos...
  4. How to Configure Service Dependency in Red Hat Cluster Suite Red Hat Cluster แบบ Fail-Over ได้มี features หนึ่งที่น่าสนใจมาก...
  5. Red Hat Enterprise Linux 6 released Red Hat Enterprise Linux 6 หรือ RHEL 6...

You can leave a response, or trackback from your own site.

Leave a Reply