Windows XP Windows 7 Windows 2003 Windows Vista Windows 綜合教學 Linux 系統教學
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟體教學
您现在的位置: Windows教程網 >> Windows教程 >  >> Linux 系統教學 >> Linux 教學

Linux 修改主機名三步驟:hostname 指令、網路配置檔、hosts 對應

編輯:Linux 教學
  1. 即時生效:hostname 新主機名
  2. 永久生效:編輯 /etc/sysconfig/network (Red Hat 系) 或 /etc/hostname (Debian/Ubuntu/systemd),設定 HOSTNAME=新主機名
  3. 更新本地解析:編輯 /etc/hosts,將 127.0.0.1 對應新主機名
Copyright © Windows教程網 All Rights Reserved