如下所示:Linux:netstat -a | grep PGSQL示例输出:[highgo@hgdbt data]$ netstat -a | grep PGSQLunix 2[ ACC ]STREAMLISTENING