ถ้าเราต้องการแก้ไขชื่อเครื่องใน 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:
- วิธีดู Version ของ Red Hat Enterprise Linux, Centos Linux วิธีการดู Version ของ Red Hat Enterprise Linux, Centos Linux สามารถทได้ 2 วิธีด้วยกัน คือ ดู version ที่ไฟล์ /etc/redhat-release # cat...
- Red Hat Enterprise Linux 6 (RHEL6) Impacted by Fedora 10 Red Hat ผู้สนับสนุนอย่างเป็นทางการของ Fedora project จะนำ Fedora 10 ที่ได้ให้ download ไปเมื่อประมาณวันที่ 28 ตุลาคมปีที่แล้ว มาเป็นตัวหลักในการพัฒนาต่อยอดเพิ่มเติมเพื่อให้เป็น Red Hat Enterprise Linux 6...
- What is a Red Hat Enterprise Linux Installation Number and where do I get it? Resolution: The Red Hat Enterprise Linux 5 Installation Number is a 16-character hexadecimal text string used during the installation...
- Enable Core Dumps for Daemons or Services in Red Hat Enterprise Linux โดยทั่วไปแล้ว daemon เป็นการทำงานในรูปแบบ background process การสั่งให้ deamond ทำงานสามารถทำได้โดยใช้ service command หรือ ใช้ init script การเปิดใช้งาน core dump (ดูรายละเอียดของ core...
- Network Card Bonding On Red Hat Linux and CentOS Channel Bonding เป็นวิธีการนำเอา network interface card หลายๆใบมารวมกันเพื่อให้สามารถ ขยาย bandwidth, fail-over interface, load balancing หรือ port trunking 802.3ad และยัง support...