[gpadmin@gp-master ~]$ ps -ef | grep postgres gpadmin 10975 1 0 00:57 ? 00:00:00 /usr/local/greenplum-db-5.21.1/bin/postgres -D /data/greenplum_data/gpmaster/gpseg-1 -p 5432 --gp_dbid=1 --gp_num_contents_in_cluster=2 --silent-mode=true -i -M master --gp_contentid=-1 -x 0 -E gpadmin 10976 10975 0 00:57 ? 00:00:00 postgres: 5432, master logger process gpadmin 10979 10975 0 00:57 ? 00:00:00 postgres: 5432, stats collector process gpadmin 10980 10975 0 00:57 ? 00:00:01 postgres: 5432, writer process gpadmin 10981 10975 0 00:57 ? 00:00:00 postgres: 5432, checkpointer process gpadmin 10982 10975 0 00:57 ? 00:00:00 postgres: 5432, seqserver process gpadmin 10983 10975 0 00:57 ? 00:00:00 postgres: 5432, ftsprobe process gpadmin 10984 10975 0 00:57 ? 00:00:00 postgres: 5432, sweeper process gpadmin 10985 10975 0 00:57 ? 00:00:05 postgres: 5432, stats sender process gpadmin 10986 10975 0 00:57 ? 00:00:01 postgres: 5432, wal writer process gpadmin 11279 10975 0 00:59 ? 00:00:00 postgres: 5432, wal sender process gpadmin 192.168.18.131(53573) streaming 0/C05A028 gpadmin 16800 16608 0 04:15 pts/0 00:00:00 grep --color=auto postgres
设置gpadmin用户环境变量,Master,Standby都需设置。
vim /home/gpadmin/.bashrc