0
无法连接到侦听127.0.0.1的套接字,但适用于Windows 10中的“localhost”
我有一个干净安装的Windows 10 Pro x64,我正在尝试运行PostgreSQL服务器。它曾经在Windows 7上完美运行,但Windows 10表现得非常奇怪:如果我配置PostgreSQL来监听,127.0.0.1那么我无法使用psql连接到它: psql: could not connect to server: Permission denied (0x0000271D/10013) Is the server running on host "localhost" (127.0.0.1) and accepting TCP/IP connections on port 5432? could not connect to server: Connection refused (0x0000274D/10061) Is the server running on host "localhost" (::1) and accepting TCP/IP connections …