![Postgresql 服务在 Kali Linux 上未启动](https://linux22.com/image/173126/Postgresql%20%E6%9C%8D%E5%8A%A1%E5%9C%A8%20Kali%20Linux%20%E4%B8%8A%E6%9C%AA%E5%90%AF%E5%8A%A8.png)
我已经从 Windows 应用商店安装了 Kali Linux,并且一直在尝试运行 postgresql,但它不起作用。我用谷歌搜索了一下,很多人都有同样的错误,但没有人和我有同样的错误。这是我收到的错误消息:
Starting PostgreSQL 12 database server: main
Error: /usr/lib/postgresql/12/bin/pg_ctl
/usr/lib/postgresql/12/bin/pg_ctl start -D /var/lib/postgresql/12/main -l /var/log/postgresql/postgresql-12-main.log -s -o -c config_file="/etc/postgresql/12/main/postgresql.conf"
exited with status 1:
2020-05-13 11:24:14.677 DST [4603] LOG: starting PostgreSQL 12.2 (Debian 12.2-4) on x86_64-pc-linux-gnu, compiled by gcc (Debian 9.3.0-8) 9.3.0, 64-bit
2020-05-13 11:24:14.678 DST [4603] LOG: could not bind IPv4 address "127.0.0.1": Address already in use
2020-05-13 11:24:14.678 DST [4603] HINT: Is another postmaster already running on port 5432? If not, wait a few seconds and retry.
2020-05-13 11:24:14.678 DST [4603] WARNING: could not create listen socket for "localhost"
2020-05-13 11:24:14.678 DST [4603] FATAL: could not create any TCP/IP sockets
2020-05-13 11:24:14.679 DST [4603] LOG: database system is shut down
pg_ctl: could not start server
Examine the log output.
... failed!
failed!
答案1
那里说得很清楚...
“无法绑定 IPv4 地址”127.0.0.1 “另一个邮局管理员是否已在端口 5432 上运行
尝试用这个。
SS-普托纳|正则表达式 5432
或者:
nmap 本地主机-Pn -p 5432 -sV
并验证该端口上没有任何运行。