Pgsql启动时报错:无法监听localhost。如下图:
系统缺少hosts文件,无法正常解析localhost
执行命令:vi /etc/hosts 创建/etc/hosts文件,添加内容:
127.0.0.1 localhost