go to  ForumEasy.com   
JavaPro
Home » Archive » Message


[Email To Friend][View in Live Context][prev topic « prev post | next post » next topic]
  Configure Postgres
 
Subject: Configure Postgres
Author: Linux
In response to: How to Install PostgreSQL on Ubuntu 16.04 LTS
Posted on: 09/04/2017 11:19:17 PM


Step 4) Configure Postgres to allow reomte access -- optional

-- adminstrator@ubuntu:~$ sudo nano /etc/postgresql/9.6/main/postgresql.conf

Change:

       #listen_addresses = 'localhost'	

to:
       listen_addresses = '*'



Step 5) Restart Postgres -- optional

-- adminstrator@ubuntu:~$ sudo /etc/init.d/postgresql restart


 

> On 09/04/2017 11:17:48 PM Linux wrote:

Step 1) Install Postgres key
-- adminstrator@ubuntu:~$ wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -

Step 2) Add APT repository
-- adminstrator@ubuntu:~$ sudo sh -c 'echo deb http://apt.postgresql.org/pub/repos/apt/ trusty-pgdg main > /etc/apt/sources.list.d/postgresql.list'

Step 3) Install Postgres
-- adminstrator@ubuntu:~$ sudo apt-get update
-- adminstrator@ubuntu:~$ sudo apt-get install postgresql postgresql-contrib





References:

 


 
Powered by ForumEasy © 2002-2022, All Rights Reserved. | Privacy Policy | Terms of Use
 
Get your own forum today. It's easy and free.