经过一番的yum, 编译, 配置. 终于搭建了在CentOS上的apache + php + postgreSQL环境...

但是在php连接的时候总是报

Unable to connect to PostgreSQL server: FATAL:  missing or erroneous pg_hba.conf file\nHINT:  See server log for details.

的错误.

原来是pg_hba.conf的配置写错了.

在写允许ip地址中, 不能直接写, 应该写対域的形式.

如果你要允许 192.168.1该网段的所有ip 应该加成

192.168.1.1/24....

具体配置文件.

host    all         all        192.168.1.1/24         trust

改完之后需要重新启动postgreSQL服务器

root@localhost # service postgresql restart

今天又通宵了. 已经3天没回家.. 好累. 睡觉了.

Unable to connect to PostgreSQL server: FATAL: missing or erroneous pg_hba.conf file\nHINT: See se相关推荐

  1. postgres启动服务器时missing or erroneous pg_hba.conf file

    强制关闭postgresql服务器,下次启动时会报错:missing or erroneous pg_hba.conf file,查看目标文件,pg_hba.conf文件存在,无从下手. 目前没有发现 ...

  2. kubectl get node运行时出现:Unable to connect to the server: x509: certificate signed by unknown authority

    kubectl get nodes运行时出现:Unable to connect to the server: x509: certificate signed by unknown authorit ...

  3. 解决: Unable to connect to zookeeper server within timeout: 5000

    前些天发现了一个巨牛的人工智能学习网站,通俗易懂,风趣幽默,忍不住分享一下给大家.点击跳转到教程. 一个项目启动不起来了,报错如题: Caused by: org.I0Itec.zkclient.ex ...

  4. Android 模拟器连接异常:Unable to connect to ADB server

    简介 在使用Android Studio开始的过程是,偶尔会突然出现一只在检测设备,导致无法进行运行的调试的情况,本文记录下解决方法 现象描述 在启动Android Studio后,在设备状态栏中一直 ...

  5. kubesphere master节点执行kubectl get po Unable to connect to the server: Forbidden

    在kubesphere master节点上执行kubectl get po -n xx报出Unable to connect to the server: Forbidden的错误信息,但是集群整体运 ...

  6. aks Unable to connect to the server: x509

    问题: aks 执行kubectl get pods 等命令 遇到: Unable to connect to the server: x509: certificate signed by unkn ...

  7. VNC Viewer 远程 Unable to connect to VNC Server using your chosen securitysetting. 问题解决

    VNC Viewer 远程 Ubuntu桌面时(VNC服务端为Vino)可能出现以下问题: Unable to connect to VNC Server using your chosen secu ...

  8. EKS 解决Unable to connect to the server 问题

    报错内容如下 Unable to connect to the server: getting credentials: exec plugin is configured to use API ve ...

  9. k8s系列之:Unable to connect to the server: x509: certificate signed by unknown authority

    k8s系列之:Unable to connect to the server: x509: certificate signed by unknown authority K8s使用kubeadm r ...

最新文章

  1. QCon上海2015十大热点
  2. boost::statechart模块实现无效结果分配测试
  3. P4321-随机漫游【状压dp,数学期望,高斯消元】
  4. Linux 系统如何查看硬盘UUID与修改
  5. Python——使用matplotlib绘制柱状图
  6. Storm精华问答 | Storm的配置需要注意什么问题?
  7. linux 命令行工具无敌斩
  8. sql还原数据库备份数据库_有关数据库备份,还原和恢复SQL面试问题–第IV部分
  9. C ~ char int 等数据转换问题
  10. 第二百二十七节,jQuery EasyUI,ComboTree(树型下拉框)组件
  11. (转)Steve Cohen:重出江湖?(上)
  12. 周庄不买门票攻略_广东佛山旅游攻略好玩的地方景点推荐
  13. 送给女朋友的情人节礼物---超贴心小程序
  14. 鸿蒙hpm网站,【HarmonyOS HiSpark IPC试用】用hpm获取源码方式环境-hpm安装 鸿蒙HarmonyOS技术社区PCB联盟网 - Powered by Discuz!...
  15. Emmagee和GT
  16. Delphi 制作股票分时图
  17. C# 之 观察者模式实例 -- 订牛奶
  18. 前端项目emoji表情包的使用
  19. win7回收站右键没有清空回收站选项
  20. C语言:利用指针编写程序,用梯形法计算给定的定积分

热门文章

  1. 数据仓库之建模 维度表 事实表 维度建模三种模式 如何维度建模缓慢变化的维度 建模体系
  2. 两周年软件开发工作有感
  3. 水环境监测与治理类毕业论文文献有哪些?
  4. 直放站OMT调试工具
  5. Linux运维部落 DNS服务,DNS资源记录类型
  6. oracle怎么给表建同义词_Oracle同义词的创建与删除
  7. 怎么用服务器增强信号,让手机信号增强的六大秒招
  8. 在校计算机专业学生如何学习java?
  9. Foxmail7.2导入账户信息
  10. 黑莓开发之环境的搭建