[gpadmin@test-4 ~]$ vim ~/.bash_profile # 添加 source /opt/gp/greenplum/greenplum-db/greenplum_path.sh export MASTER_DATA_DIRECTORY=/opt/gp/gpmaster/gpseg-1 export GPPORT=7456