ezylinux
ลินุกซ์ง่ายนิดเดียว

8
Sep

ถ้าเราต้องการแก้ไขชื่อเครื่องใน 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. Diskdump report error messages when restart the diskdump service เมื่อเราได้ทำการแก้ไขหรือ configure diskdump แล้ว restart diskdump service ได้มี error เกิดขึ้นที่ /var/log/messages โดยมีข้อความดังข้างล่าง diskdump: diskdumpctl: failed to add /dev/hdb! diskdump:...
  2. Configure VLAN devices over a bond interface ใน Linux เราสามารถตั้งค่าของ VLAN network ได้ไม่ยาก ซึ่ง Linux เองก็ support การทำงานของ VLAN ด้วยเช่นกันโดยใช้ driver 8021q ซึ่งขั้นตอนการติดตั้งที่ยกตัวอย่างมานี้เป็นการทำ bonding channel +...
  3. Moblin and Android Linux OS for Mobile Device ตอนนี้กระแส Netbook และ mobile device มาแรงพอสมควร การพัฒนา OS Linux ให้สามารถใช้งานได้ในระบบที่มีทรัพยากรอย่างจำกัดได้เริ่มต้นมาไม่กี่ปีนี้ แต่ปีนี้คาดว่าการแข่งขันระหว่าง Moblin จาก intel, Android จาก google จะเกิดขึ้น เนื่องจากว่ามองไปในกลุ่มเป้าหมายเดียวกัน...
  4. 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...
  5. What is smartd and how to use it smartd คือ โปรแกรมที่ทำหน้าที่คอย monitor hard disk โดยใช้เทคโนโลยี SMART หรือ Self-Monitoring, Analysis, and Reporting Technology เพื่อทำการ วิเคราะห์, ตรวจสอบ, รายงานสถานะการทำงานของ และทำนายว่า...

Category : Network