# debian系统 vim /etc/hostname # rh系统 vim /etc/sysconfig/newowork # 修改HOSTNAME # 然后记得修改 /etc/hosts 127.0.0.1 <hostname> localhost
[linux] 修改主机名称
think in coding
# debian系统 vim /etc/hostname # rh系统 vim /etc/sysconfig/newowork # 修改HOSTNAME # 然后记得修改 /etc/hosts 127.0.0.1 <hostname> localhost