昨晚倒腾电脑,今天起床运行一下的项目看到这个。
出现这个错误:
psycopg2.OperationalError: could not connect to server: Connection refused (0x0000274D/10061)
Is the server running on host “localhost” (::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” (127.0.0.1) and accepting
TCP/IP connections on port 5432?
![在这里插入图片描述](https://img-blog.csdnimg.cn/20190104091440461.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3FxXzQzMjM5MTky,size_16,color_FFFFFF,t_70)
打开pgadmin发现这样,多次输入密码都不对:
回想了一下,原来是昨晚把服务给关闭了。被自己蠢哭。写个文章,记录下自己的蠢行为,时刻提醒自己。