参考:
搭建简易Web GIS网站:使用GeoServer+PostgreSQL+PostGIS+OpenLayers3 - 天靖居士 - 博客园 https://www.cnblogs.com/kkyyhh96/p/6379515.html
注意这里的Tomcat必须用9.0版本的。
PostgreSQL连接出错,could not connect to server:Connection refused(0x0000274D/10061)…_IRainReally的博客-CSDN博客 https://blog.csdn.net/irainreally/article/details/80090134