Chinaunix首页 | 论坛 | 博客
  • 博客访问: 324012
  • 博文数量: 103
  • 博客积分: 1590
  • 博客等级: 上尉
  • 技术积分: 1075
  • 用 户 组: 普通用户
  • 注册时间: 2009-12-02 10:17
文章分类

全部博文(103)

文章存档

2013年(32)

2012年(7)

2010年(64)

我的朋友

分类:

2010-01-12 00:00:13

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

阅读(2202) | 评论(0) | 转发(0) |
0

上一篇:没有了

下一篇:shell for的写法

给主人留下些什么吧!~~