2012/04/27

Linux 變更 Hostname

uname -a (VIEW HOSTNAME now)

hostname newname

vi /etc/sysconfig/network
 HOSTNAME=newname

vi etc/hosts
127.0.0.1 localhost newname

uname -a (VIEW HOSTNAME now)

No comments: