错误:
waiting for server to start....2021-04-15 15:05:20.818 CST [78361] FATAL: data directory "/home/postgres/workspace/postgresql/data" has invalid permissions
2021-04-15 15:05:20.818 CST [78361] DETAIL: Permissions should be u=rwx (0700) or u=rwx,g=rx (0750).
stopped waiting
pg_ctl: could not start server
Examine the log output.
这是因为data目录是无效的权限,所以改一下权限即可。
这样就能启动了,不懂的可以私信我。