Linux下变化的主机名gpdb 步骤1、执行vi /etc/sysconfig/network命令 NETWORKING=yes HOSTNAME=gpdb 步骤2、执行hostname gpdb令 步骤3、执行vi /etc/hosts命令 192.168.1.121 gpdb # Added by NetworkManager 127.0.0.1 localhost.localdomain localhost ::1 gpdb localhost6.localdomain6 localhost6 步