樹心幽徑

« 20160113換Linux核心(kernel-3.16.7)過程 | Main | 20160119nat -iptables »

20160113修改Hostname
2016/01/13,15:01

[root@tree ~]# cat /etc/hosts
127.0.0.1   tree localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6


[root@tree ~]# cat /etc/sysconfig/network
# Created by anaconda
NETWORKING=yes
HOSTNAME=tree
GATEWAY=163.25.20.254

[root@tree ~]# hostname tree

REF:http://www.ichiayi.com/wiki/tech/linux_hostname

 

迴響

Comment Icon
Posted by: fgfdg at 2016/03/12, 22:18
Comment Icon
Posted by: sadad at 2016/04/27, 14:32
 
Accessible and Valid XHTML 1.0 Strict and CSS Powered by LifeType