postgresql客户端连接错误的解决方法
来源:互联网 发布:mysql 见表 编辑:程序博客网 时间:2024/05/18 20:07
<script type="text/javascript"><!--google_ad_client = "pub-5873492303276472";/* 728x90, 创建于 08-7-29 */google_ad_slot = "7502041044";google_ad_width = 728;google_ad_height = 90;// --></script><script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type="text/javascript"></script>
<script type="text/javascript"><!--google_ad_client = "pub-5873492303276472";/* 728x90, 08-7-29 */google_ad_slot = "7502041044";google_ad_width = 728;google_ad_height = 90;// --></script><script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type="text/javascript"></script>
今天在重新设置postgresql服务器以后却发现启动不了服务器。
错误如下:
psql: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/tmp/.s.PGSQL.5432"?
参照官方文档如下:
当试图通过一个 Unix 套接字与本机服务器通讯时,你会看到这个:
psql: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/tmp/.s.PGSQL.5432"?
最后一行可以有效地验证客户端进行联接尝试时是否连对了位置。
如果实际上没有服务器在那里运行,典型的内核错误是象上面显示的那样或者是
Connection refused或者是No such file or directory
。 (尤其要注意的是这种环境下Connection refused的信息显示并不意味着服务器收到你的联接然后拒绝了联接。
那样的话会产生一个不同的信息,象 Section 20.3 里面显示的那样)
似乎还是不能解决问题。
实在没办法只有看启动的shell文件,找log日志。
FATAL: data directory "/var/data/pgsql" has group or world access
DETAIL: Permissions should be u=rwx (0700).
果然。。。。权限被修改了。
遇到问题还是看日志最保险。
<script type="text/javascript"><!--google_ad_client = "pub-5873492303276472";/* 728x15, 08-7-29 */google_ad_slot = "7630759450";google_ad_width = 728;google_ad_height = 15;// --></script><script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type="text/javascript"></script>
- postgresql客户端连接错误的解决方法
- Postgresql 客户端连接问题
- Postgresql 客户端连接问题
- Oracle客户端连接Centos5.8防火墙:ORA-12560: TNS: 协议适配器错误的解决方法
- 几种客户端连接 PostgreSQL 不输入密码的方法
- sql sever 2005 客户端连接服务端报1326错误解决方法
- 客户端连接oacle11g 提示 ora-12514:错误解决方法
- postgresql c++开发包libpqxx的连接错误
- MySQL客户端远程连接1045的错误
- 连接数据库的SID错误的解决方法
- 设置客户端连接PostgreSQL不需要手动密码
- 设置客户端连接PostgreSQL不需要密码
- 设置客户端连接PostgreSQL不需要密码
- Socket错误连接超时的解决方法
- git 443连接错误的解决方法
- mysql远程连接错误1130的解决方法
- VPN连接常见错误的解决方法
- PostgreSQL的相关连接
- 回发或回调参数无效。在配置中使用 或在页面中使用 启用了事件验证。出于安全目的,此功能验证回发或回调事件的参数是否来源于最初呈现这些事件的服务器控件。如果数据有效并且是预期的,则使用 ClientScriptManager.RegisterForEvent
- delphi使用sqlite数据库时的中文路径问题
- 子查询应用:把子查询作为某个字段
- [Web开发] 如何改变IE滚动条的颜色
- 通用全选
- postgresql客户端连接错误的解决方法
- 解决VC编译错误:c1083 cannot open precompiled header file
- DataSet 导出 Excel 不用COM方式
- js中innerHTML与innerText的用法与区别
- Linux 搭建C/C++环境
- 解决网站第一次访问会很慢的难题
- 鬼门关,黄泉路,奈何桥,孟婆汤,三生石
- 在 VS2008 下用 CRC32 算法实现程序自校验
- windows服务安装时,出错:System.ComponentModel.Win32Exception: 帐户名无效或不存在