สิ่งที่ต้องทำ
- ตรวจสอบชื่อ Hostname ปัจจุบัน โดยใช้คำสั่ง
hostnameหรือcat /etc/hostname - แก้ไขไฟล์
/etc/hostnameและ/etc/hostsโดยใช้คำสั่งvim /etc/hostnameเปลี่ยนชื่อ Hostname ใหม่ เช่นTiangNa - แก้ไขไฟล์
/etc/hostsโดยใช้คำสั่งvim /etc/hostsเปลี่ยนชื่อ Hostname ใหม่ที่จับคู่กับ loopback address127.0.1.1 TiangNa - รีสตาร์ทเครื่องใหม่โดยใช้คำสั่ง
sudo reboot
Top comments (0)