PostgreeSQL数据库安装问题

问题:
could not connect to server: Connection refused (0x0000274D/10061) Is the server running on host “localhost” (::1) and accepting TCP/IP connections on port 5433? could not connect to server: Connection refused (0x0000274D/10061) Is the server running on
网上基本的解决办法都是
解决方法是打开/var/lib/pgsql/10/data下的postgresql.conf,
查找listen_addresses, 将其前面的注释符号"#"去掉,然后将值从"localhost"改为“*”
保存后调用service postgresql-10 restart重启数据库服务即可。
因为我安装的时候修改了默认端口,所以我是修改的postgresql.conf下面的端口号 port
如果卸载pg的话我建议还是用软件geek吧,这个软件会直接将注册表一并清理掉。

你可能感兴趣的:(数据库,postgresql)