![[unknown]@[unknown] LOG: incomplete startup packet 是什么意思?](https://linux22.com/image/736788/%5Bunknown%5D%40%5Bunknown%5D%20LOG%3A%20incomplete%20startup%20packet%20%E6%98%AF%E4%BB%80%E4%B9%88%E6%84%8F%E6%80%9D%EF%BC%9F.png)
我在使用 Postgres 启动 Kong 时遇到了问题。我检查了我的桌面日志
root@miki:/var/log/postgresql#
2019-04-22 07:35:28.040 CEST [1181] LOG: listening on IPv4 address "127.0.0.1", port 5432
2019-04-22 07:35:28.070 CEST [1181] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
2019-04-22 07:35:28.438 CEST [1426] LOG: database system was shut down at 2019-04-21 20:13:57 CEST
2019-04-22 07:35:28.546 CEST [1181] LOG: database system is ready to accept connections
2019-04-22 07:35:29.175 CEST [1690] [unknown]@[unknown] LOG: incomplete startup packet
这是什么意思?
我的 postgresql 正在运行
/etc/init.d/postgresql status
● postgresql.service - PostgreSQL RDBMS
Loaded: loaded (/lib/systemd/system/postgresql.service; enabled; vendor preset: enabled)
Active: active (exited) since Mon 2019-04-22 07:35:30 CEST; 1h 45min ago
Process: 1939 ExecStart=/bin/true (code=exited, status=0/SUCCESS)
Main PID: 1939 (code=exited, status=0/SUCCESS)
апр 22 07:35:30 miki systemd[1]: Starting PostgreSQL RDBMS...
апр 22 07:35:30 miki systemd[1]: Started PostgreSQL RDBMS.
答案1
2019-04-22 07:35:28.040 CEST [1181] LOG: listening on IPv4 address "127.0.0.1", port 5432
2019-04-22 07:35:28.070 CEST [1181] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
2019-04-22 07:35:28.438 CEST [1426] LOG: database system was shut down at 2019-04-21 20:13:57 CEST
2019-04-22 07:35:28.546 CEST [1181] LOG: database system is ready to accept connections
这意味着您的数据库启动正常。
2019-04-22 07:35:29.175 CEST [1690] [unknown]@[unknown] LOG: incomplete startup packet
这意味着有人启动了与 5432 端口的 TCP 或 Unix 域套接字连接,但并未继续进行身份验证尝试。这是无害的一些合法的启动脚本在每次启动 PostgreSQL 时都会执行此操作,可能是为了检查它是否已启动。
无论 Kong 是什么,也不管您在启动它时遇到了什么麻烦,这些消息都没有说明任何问题。