按照https://github.com/bitnine-oss/postgres-xl-ha/blob/master/README.md上的教程,尝试添加协调器(使用 pgxc_ctl)时出现以下错误:
实际命令:
PGXC add coordinator master coord komp2 30001 30011 none none none
带上远程标准输出:
ssh aaron@komp2 "( PGXC_CTL_SILENT=1 initdb -D $dataDirRoot/coord --nodename coord ) > /tmp/skripsi_STDOUT_17620_12 2>&1" < /dev/null > /dev/null 2>&1
scp aaron@komp2:/tmp/skripsi_STDOUT_17620_12 /tmp/STDOUT_17620_13 > /dev/null 2>&1
The files belonging to this database system will be owned by user "aaron".
This user must also own the server process.
initdb: invalid locale settings; check LANG and LC_* environment variables
bash: /home/aaron/DATA/pgxl/nodes/coord/postgresql.conf: No such file or directory
bash: /home/aaron/DATA/pgxl/nodes/coord/pg_hba.conf: No such file or directory
ERROR: failed to find any running coordinatorStarting coordinator master coord
pg_ctl: directory "/home/aaron/DATA/pgxl/nodes/coord" does not exist
Done.
psql: could not connect to server: Connection refused Is the server running on host "komp2" (192.168.38.21) and accepting TCP/IP connections on port 30001?
大概是什么原因造成的?提前致谢