欢迎来到博达网站群学习网!
设为首页 | 加入收藏
当前位置: 首页 >> 知识库 >> 部署类 >> 数据库 >> 正文

PGSQL启动时报错无法监听localhost

发布时间:2016-08-03    浏览次数:

现象

Pgsql启动时报错:无法监听localhost。如下图:

原因

系统缺少hosts文件,无法正常解析localhost

     

解决方法

执行命令:vi /etc/hosts 创建/etc/hosts文件,添加内容:

127.0.0.1    localhost