我已经编辑了pg_hba文件并将其复制到服务器,并通过“ sudo service postgresql restart”重新启动了服务,但是之后服务器没有连接。
显示以下错误,您的数据库返回:“到138.2xx.1xx.xx:5432的连接被拒绝。检查主机名和端口是否正确以及邮局主管正在接受TCP / IP连接。”
Jenkins作业和数据可视化工具失败,该工具以前运行正常。可能是什么原因。
在PostgreSQL日志中获取
2019-10-23 07:21:25.829 CEST [11761] LOG: received fast shutdown request
2019-10-23 07:21:25.829 CEST [11761] LOG: aborting any active transactions
2019-10-23 07:21:25.829 CEST [11766] LOG: autovacuum launcher shutting down
2019-10-23 07:21:25.832 CEST [11763] LOG: shutting down
2019-10-23 07:21:25.919 CEST [11761] LOG: database system is shut down
2019-10-23 07:21:27.068 CEST [22633] LOG: database system was shut down at 2019-10-23 07:21:25 CEST
2019-10-23 07:21:27.073 CEST [22633] LOG: MultiXact member wraparound protections are now enabled
2019-10-23 07:21:27.075 CEST [22631] LOG: database system is ready to accept connections
2019-10-23 07:21:27.075 CEST [22637] LOG: autovacuum launcher started
2019-10-23 07:21:27.390 CEST [22639] [unknown]@[unknown] LOG: incomplete startup packet
以下显示无响应。
root@Ubuntu-1604-xenial-64-minimal ~ # pg_isready -h localhost -p 5432
localhost:5432 - no response
以下内容已添加到postgresql.config文件中。
listen_addresses = '*'
我需要重新启动整个服务器吗?
谁能帮我解决这个问题。