修改主机名
1、修改/etc/sysconfig/network文件
[root@gsfund ~]# more /etc/sysconfig/network NETWORKING=yes NETWORKING_IPV6=no HOSTNAME=gsfund.localdomain [root@gsfund ~]#
2、修改/etc/hosts文件
[root@gsfund ~]# more /etc/hosts # Do not remove the following line, or various programs # that require network functionality will fail. 127.0.0.1 localhost ::1 localhost6.localdomain6 localhost6 gsfund 192.168.56.131 [root@gsfund ~]#