Hostname changed under Linux gpdb
Step 1, execute the vi/etc/sysconfig/network command
Networking=yes
Hostname=gpdb
Second step, execute hostname gpdb order
Step three, execute the vi/etc/hosts command
192.168.1.121 gpdb # Added by NetworkManager
127.0.0.1 localhost.localdomain localhost
:: 1 gpdb localhost6.localdomain6 Localhost6
Step four, execute the reboot command again after you start the computer or use the Service Network Restart command to start the network service again after the effective
The default content of the/etc/sysconfig/network file before the change is
Networking=yes
Hostname=bogon
The default content of the/etc/hosts file before the change is
192.168.1.121 Bogon # Added by NetworkManager
127.0.0.1 localhost.localdomain localhost
:: 1 Bogon localhost6.localdomain6 Localhost6
The hostname step of the change under Linux