How to correctly enable Postgresql on ubuntu 16.04 - Ask Ubuntu


i installed psql (postgresql) 9.6.1. when type

psql  

i got:

 psql: not connect server: no such file or directory     server running locally , accepting     connections on unix domain socket "/var/run/postgresql/.s.pgsql.5432"? 

when type

netstat -ln 

i got following:

  active internet connections (only servers) proto recv-q send-q local address           foreign address         state       tcp        0      0 0.0.0.0:17500           0.0.0.0:*               listen      tcp        0      0 127.0.0.1:17600         0.0.0.0:*               listen      tcp        0      0 127.0.0.1:17603         0.0.0.0:*               listen      tcp        0      0 127.0.1.1:53            0.0.0.0:*               listen      tcp6       0      0 :::10137                :::*                    listen      tcp6       0      0 :::17500                :::*                    listen      tcp6       0      0 127.0.0.1:8005          :::*                    listen      tcp6       0      0 :::9000                 :::*                    listen      tcp6       0      0 :::20080                :::*                    listen      tcp6       0      0 :::8080                 :::*                    listen      tcp6       0      0 :::80                   :::*                    listen      udp        0      0 0.0.0.0:17500           0.0.0.0:*                           udp        0      0 0.0.0.0:5353            0.0.0.0:*                           udp        0      0 0.0.0.0:5353            0.0.0.0:*                           udp        0      0 0.0.0.0:5353            0.0.0.0:*                           udp        0      0 0.0.0.0:39111           0.0.0.0:*                           udp        0      0 127.0.1.1:53            0.0.0.0:*                           udp        0      0 0.0.0.0:68              0.0.0.0:*                           udp        0      0 0.0.0.0:631             0.0.0.0:*                           udp6       0      0 :::5353                 :::*                                udp6       0      0 :::5353                 :::*                                udp6       0      0 :::56552                :::*                                raw6       0      0 :::58                   :::*                    7  

showing got no 5432 port available. tried using this answer got nothing. tried same method using postgres 9.4 , 9.6 got nothing different too. has tips solve this? in advance.

unfortunately didn't manage accomplish this. way out installing compiling binaries , on. method worked


Comments

Popular posts from this blog

download - Firefox cannot save files (most of the time), how to solve? - Super User

windows - "-2146893807 NTE_NOT_FOUND" when repair certificate store - Super User

sql server - "Configuration file does not exist", Event ID 274 - Super User