Debian: ค้นหาและเปลี่ยนชื่อโฮสต์
คุณสามารถแสดงและเปลี่ยนชื่อโฮสต์ภายใต้ Debian เราแสดงให้คุณเห็นอย่างเป็นขั้นเป็นตอน
แสดงชื่อโฮสต์ภายใต้ Debian
- เปิดเทอร์มินัลแล้วป้อน "ชื่อโฮสต์" บนบรรทัดคำสั่ง
- คำสั่ง "hostname -f" แสดงผลชื่อโฮสต์แบบเต็ม FQDN (ชื่อโดเมนที่ผ่านการรับรองโดยสมบูรณ์)
Debian: เปลี่ยนชื่อโฮสต์ - ดังนั้นจะใช้งานได้
คุณสามารถเปลี่ยนชื่อโฮสต์ภายใต้ Debian ในระหว่างการดำเนินการหรือถาวร
- หากต้องการเปลี่ยนชื่อโฮสต์ระหว่างการดำเนินการให้ป้อนคำสั่ง "ชื่อโฮสต์" ในเทอร์มินัลและชื่อใหม่หลังจากนั้น ดังนั้นคำสั่งคือ "ชื่อโฮสต์ NEWER_NAME"
- หากคุณต้องการเปลี่ยนชื่อโฮสต์อย่างถาวรคุณสามารถแก้ไขได้ด้วยเครื่องมือแก้ไขใด ๆ ชื่อโฮสต์อยู่ในไฟล์ "/ etc / hostname"
- เพื่อให้สามารถทำการเปลี่ยนแปลงได้ทันทีเพียงใช้สคริปต์ที่ดำเนินการเมื่อระบบเริ่มทำงาน หากต้องการทำสิ่งนี้ให้ป้อน "/etc/init.d/hostname.sh" ในเทอร์มินัล
คุณรู้หรือไม่ นั่นเป็นเหตุผลว่าทำไม Linux จึงแพร่หลายมากกว่า Windows
เราจะอธิบายวิธีการอัปเดต Debian ในเคล็ดลับการปฏิบัติถัดไป