Linux因为IPv6不能启动postgreSQL数据库
问题:
当启动数据库的时候,出现以下信息:

[root@iZ284gztaqdZ working]# ./bin/startPGSQL.sh
[root@iZ284gztaqdZ working]# pg_ctl: another server might be running; trying to start server anyway
server starting
[ 2019-05-14 01:39:09.903 GMT ]:LOG: could not create IPv6 socket: Address family not supported by protocol
解决方法:
vim /etc/hosts
注释掉IPv6对应的localhost那行。