psql不是默认端口时如何连接postgresql
[stork@instance-609xznso pgsql]$ /usr/pgsql-11/bin/psql c3_data -p 5432
could not change directory to “/var/lib/pgsql”: Permission denied
Password for user stork:
psql (11.5)
Type “help” for help.
c3_data=>
=================
自己指定端口就可以了
/usr/pgsql-11/bin/psql xxdatabase -p 端口号