文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档> psql refused 处理

psql refused 处理

时间:2010-01-12  来源:huixiangtao

21:19:01.419]Caused by: org.postgresql.util.PSQLException: Connection refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.

[root@SJSWT-63:~]# telnet xx.xx.xx.57 5432
telnet: connect to address xx.xx.xx.57: Connection refused
telnet: Unable to connect to remote host: Connection refused

vim postgresql.conf

listen_addresses = ‘*’          # what IP address(es) to listen on;
                                        # comma-separated list of addresses;
                                        # defaults to ‘localhost’, ‘*’ = all
                                        # (change requires restart)
port = 5432                             # (change requires restart)

[postgre@TJSJHL-57 data]$ netstat -lnpt

tcp        0      0 0.0.0.0:5432                0.0.0.0:*                   LISTEN      26147/postgres

[postgre@TJSJHL-57 ~]$ /usr/local/pgsql/bin/pg_ctl -D ./data stop
[postgre@TJSJHL-57 ~]$ /usr/local/pgsql/bin/pg_ctl -D ./data start

相关阅读 更多 +
排行榜 更多 +
探聊交友

探聊交友

聊天通讯 下载
天骄通

天骄通

旅游住宿 下载
奥的斯

奥的斯

商务办公 下载