[postgres@localhost bin]$ ./pg_ctl start -D /usr/pgdata/
waiting for server to start....2017-08-11 09:26:19.444 CST [4890] LOG: listening on IPv4 address "0.0.0.0", port 5432
2017-08-11 09:26:19.444 CST [4890] LOG: listening on IPv6 address "::", port 5432
2017-08-11 09:26:19.447 CST [4890] LOG: listening on Unix socket "/tmp/.s.PGSQL.5432"
转载于:https://my.oschina.net/u/3641613/blog/1506291