Linux本地域名

来自ling
跳转至: 导航搜索
vi /etc/hosts 


service network restart 

/etc/init.d/network restart

需要修改的文件常有

  • /etc/sysconfig/network
  • /etc/sysconfig/network-scripts/ifcfg-eth0
  • /etc/resolv.conf
  • /etc/hosts