Note – if you are logged in as root superuser before the sudo command (temporary superuser) is naturally not needed
For Debian
Based systems, run the following commands
user@localhost: ~ sudo apt update
Optional:
user@localhost: ~ sudo apt upgrade
The command to install the latest version for your distribution will be as follows:
user@localhost: ~ sudo apt install postgresql
Check if it is running:
user@localhost: ~ systemctl status postgres*
See similar to the following:
stgresql.service - PostgreSQL RDBMS
Loaded: loaded (/lib/systemd/system/postgresql.service; enabled; vendor preset: enabled)
Active: active (exited) since Tue 2019-07-23 15:29:57 EEST; 1min 28s ago
Main PID: 25711 (code=exited, status=0/SUCCESS)
Tasks: 0 (limit: 4915)
Memory: 0B
CGroup: /system.slice/postgresql.service
postgresql@11-main.service - PostgreSQL Cluster 11-main
Loaded: loaded (/lib/systemd/system/postgresql@.service; enabled-runtime; vendor preset: enabled)
- Active: active (running) since Tue 2019-07-23 15:30:01 EEST; 1min 24s ago
- Main PID: 25928 (postgres)
- Tasks: 7 (limit: 4915)
- Memory: 17.2 M
- CGroup: /system.slice/system-postgresql.slice/postgresql@11-main.service
- 25928 /usr/lib/postgresql/11/bin/postgres -D /var/lib/postgresql/11/main -c config_file=/etc/postgresql/11/main/postgresql.conf
- 25930 postgres: 11/main: checkpointer
- 25931 postgres: 11/main: background writer
- 25932 postgres: 11/main: walwriter
- 25933 postgres: 11/main: autovacuum launcher
- 25934 postgres: 11/main: stats collector
- 25935 postgres: 11/main: logical replication launcher
- user@localhost: ~ sudo ss -ntlp | grep postgres
user@localhost: ~ sudo ss -ntlp | grep postgres
LISTEN 0 128 127.0.0.1:5432 0.0.0.0:* users: ((“postgres”,pid=27885,fd=5))
LISTEN 0 128 [::1]:5432 [::]:* users:((“postgres”,pid=27885,
install the client part for connection and configuration
user@localhost: ~ sudo apt install postgresql-client
Connect to make sure that the server is allowed to itself:
user@localhost: ~ sudo -u postgres psql
In this case, even if you root to enter “sudo -u postgres” before ‘psql’ need otherwise the server will not let us
The psql console:
psql (11.4 (Debian 11.4-1))
Type "help" for help.
postgres=#
Enter ‘\q’ to close the session.
Authentication settings
The Creation Of User/Role
user@localhost: ~ sudo -u postgres createuser --interactive -P
The program createuser will ask you a few questions to establish on the basis of your answers account
Remote access
After installation on debian/Ubuntu the PostgreSQL server allows you to connect only to local clients through sockets or UNUX on the IP 121.0.0.1/[::1]. For rare remote access, you can use ssh tunnels (Most modern graphics clients have this option).
If you need a permanent connection, open the file /etc/postgresql/11/main/pg_hba.conf – Host Based Authentication .To start even little will understand the meaning of the entries in this file. The entries in this file control the behavior of the server when it decides to allow you to the database or not
For example the entry:
“local all postgres peer”
Mean the following:
“A UNIX user (peer) named ‘postgres’ connected from the local node(local UNIX socket only) to be started up to any (all) database The Postgres user is an analog of root on UNIX. The presence of such a record means that logging in as a Postgres user can connect without a password to any database and do anything with them without restrictions.
For example, adding a record for another user:
“local all JohnSith peer” will allow the user JohnSith also connect from their local session without a password to all databases and do with them anything without restrictions. Therefore, write access to the file “pg_hba.conf” should be strictly limited
If we want to organize access to the SQL server via TCP/IP only from the subnet 192.168.1.0/24 only to the user Programmer and only to the database MY_BIG_SITE and password, you need to do 3 things:
* from under the user postgres run the program createuser.
user@localhost: ~ sudo -u postgres createuser --interactive -P
The program will ask a couple of questions and create an account based on your answers
* In /etc/postgresql/11/main/postgresql.conf to add the line:
listen_addresses = *.
* In /etc/postgresql/11/main/pg_hba.conf to add the line:
"192.168.1.0/24 Programmer MY_BIG_SITE scram-sha-256
“
After changing the configuration files tell the server to reread the configuration:
systemctl reload postgresql
IverCare Pharmacy: is ivermectin safe – IverCare Pharmacy
maglaro ng Jiliko online sa Pilipinas: maglaro ng Jiliko online sa Pilipinas – jilwin
Slot oyunlari Pinco-da: Yeni az?rbaycan kazino sayti – Kazino bonuslari 2025 Az?rbaycan
Dang ky GK88 Dang ky GK88 Rut ti?n nhanh GK88
Qeydiyyat bonusu Pinco casino: Yuks?k RTP slotlar – Canl? krupyerl? oyunlar
Rut ti?n nhanh GK88: Link vao GK88 m?i nh?t – Dang ky GK88
jollibet casino: Online betting Philippines – jollibet
https://abutowin.icu/# Abutogel login
Jiliko casino: Jiliko login – Jiliko bonus
Jiliko casino Jiliko slots maglaro ng Jiliko online sa Pilipinas
Pinco il? real pul qazan: Pinco il? real pul qazan – Uduslar? tez c?xar Pinco il?
jollibet casino: Jollibet online sabong – Online gambling platform Jollibet
Live casino Indonesia: Promo slot gacor hari ini – Login Beta138
Jiliko casino walang deposit bonus para sa Pinoy: Jiliko casino walang deposit bonus para sa Pinoy – Jiliko bonus
Jiliko login Jiliko login Jiliko bonus
Mandiribet login: Situs judi resmi berlisensi – Bonus new member 100% Mandiribet
Beta138: Link alternatif Beta138 – Situs judi resmi berlisensi
Slot game d?i thu?ng: Tro choi n? hu GK88 – Nha cai uy tin Vi?t Nam
Bonus new member 100% Mandiribet: Mandiribet login – Link alternatif Mandiribet
https://1winphili.company/# Jollibet online sabong
Jiliko app Jiliko Jiliko casino walang deposit bonus para sa Pinoy
jollibet login: Online casino Jollibet Philippines – Online casino Jollibet Philippines
Link vao GK88 m?i nh?t: Link vao GK88 m?i nh?t – Casino online GK88
Swerte99 login: Swerte99 casino walang deposit bonus para sa Pinoy – Swerte99 casino walang deposit bonus para sa Pinoy
Situs togel online terpercaya Abutogel login Situs togel online terpercaya
Live casino Indonesia: Link alternatif Beta138 – Beta138
Pinco il? real pul qazan: Onlayn rulet v? blackjack – Etibarl? onlayn kazino Az?rbaycanda
Link vào GK88 m?i nh?t: Casino online GK88 – Casino online GK88
https://swertewin.life/# Swerte99
Swerte99 casino walang deposit bonus para sa Pinoy: Swerte99 casino – Swerte99 app
Link alternatif Abutogel Link alternatif Abutogel Bandar togel resmi Indonesia
1winphili: Online betting Philippines – jollibet casino
Online betting Philippines: Online casino Jollibet Philippines – 1winphili
Situs togel online terpercaya: Link alternatif Abutogel – Situs togel online terpercaya
Slot game d?i thu?ng Khuy?n mai GK88 Slot game d?i thu?ng
Jiliko app: Jiliko app – Jiliko slots
Kazino bonuslari 2025 Az?rbaycan: Pinco casino mobil t?tbiq – Yeni az?rbaycan kazino sayti
Slot jackpot terbesar Indonesia: Situs judi online terpercaya Indonesia – Slot gacor hari ini
https://1winphili.company/# jollibet casino
Jackpot togel hari ini: Jackpot togel hari ini – Jackpot togel hari ini
Situs judi resmi berlisensi: Situs judi resmi berlisensi – Bandar bola resmi
Bandar togel resmi Indonesia Bandar togel resmi Indonesia Abutogel
Swerte99 bonus: Swerte99 casino walang deposit bonus para sa Pinoy – Swerte99
maglaro ng Jiliko online sa Pilipinas: Jiliko – Jiliko bonus
Online casino Jollibet Philippines: Online gambling platform Jollibet – Online gambling platform Jollibet
Link vao GK88 m?i nh?t GK88 Dang ky GK88
Link alternatif Abutogel: Jackpot togel hari ini – Bandar togel resmi Indonesia
https://pinwinaz.pro/# Onlayn kazino Az?rbaycan
Nha cai uy tin Vi?t Nam: Link vao GK88 m?i nh?t – Nha cai uy tin Vi?t Nam
Mexican Pharmacy Hub: buying prescription drugs in mexico – medication from mexico pharmacy
MediDirect USA: MediDirect USA – MediDirect USA
MediDirect USA Prothiaden MediDirect USA
MediDirect USA: MediDirect USA – MediDirect USA
MediDirect USA: MediDirect USA – MediDirect USA
MediDirect USA: orlistat online pharmacy – MediDirect USA
Indian Meds One cheapest online pharmacy india top 10 online pharmacy in india
http://indianmedsone.com/# Indian Meds One
MediDirect USA: MediDirect USA – MediDirect USA
legit mexican pharmacy without prescription: Mexican Pharmacy Hub – buy antibiotics from mexico
mexican border pharmacies shipping to usa: Mexican Pharmacy Hub – best mexican online pharmacies
Mexican Pharmacy Hub: trusted mexican pharmacy – safe mexican online pharmacy
MediDirect USA: MediDirect USA – MediDirect USA
Indian Meds One top 10 online pharmacy in india india pharmacy mail order
Indian Meds One: mail order pharmacy india – Indian Meds One
https://mexicanpharmacyhub.com/# Mexican Pharmacy Hub
trusted mexican pharmacy: Mexican Pharmacy Hub – Mexican Pharmacy Hub
pharmacy rx one legitimate: online pharmacy store hyderabad – MediDirect USA
pantoprazole pharmacy: MediDirect USA – clozapine pharmacy directory
Mexican Pharmacy Hub Mexican Pharmacy Hub Mexican Pharmacy Hub
Mexican Pharmacy Hub: п»їmexican pharmacy – get viagra without prescription from mexico
top online pharmacy india: Indian Meds One – Indian Meds One
MediDirect USA: MediDirect USA – viagra best online pharmacy
world pharmacy india Indian Meds One Indian Meds One
http://indianmedsone.com/# Indian Meds One
revive rx pharmacy: cialis viagra pharmacy – bay rx pharmacy
gabapentin mexican pharmacy: Mexican Pharmacy Hub – mexico pharmacy
pharmacies in mexico that ship to usa: mexican rx online – mexico drug stores pharmacies
Indian Meds One: Indian Meds One – Indian Meds One
Indian Meds One online shopping pharmacy india india pharmacy
buy meds from mexican pharmacy: Mexican Pharmacy Hub – cheap cialis mexico
indian pharmacy: Indian Meds One – mail order pharmacy india
Indian Meds One: indian pharmacies safe – Indian Meds One
http://medidirectusa.com/# MediDirect USA
navarro pharmacy miami: Aebgkeymn – dutasteride online pharmacy
Indian Meds One: Indian Meds One – Online medicine order
MediDirect USA platinum rx pharmacy metronidazole uk pharmacy
indian pharmacy online: Indian Meds One – online pharmacy india
MediDirect USA: Urispas – pharmacy prices
Mexican Pharmacy Hub: mexico drug stores pharmacies – buying prescription drugs in mexico
MediDirect USA MediDirect USA MediDirect USA
Mexican Pharmacy Hub: safe place to buy semaglutide online mexico – best mexican pharmacy online
Indian Meds One: Indian Meds One – best online pharmacy india
best online pharmacies in mexico: reputable mexican pharmacies online – mexican mail order pharmacies
https://mexicanpharmacyhub.shop/# Mexican Pharmacy Hub
Affordable sildenafil citrate tablets for men: Compare Kamagra with branded alternatives – ED treatment without doctor visits
SildenaPeak: viagra pills price canada – SildenaPeak
Tadalify Tadalify tadalafil tamsulosin combination
KamaMeds: Kamagra oral jelly USA availability – ED treatment without doctor visits
india viagra generic: Wo kann ich generisches Viagra online bestellen? – buy viagra canada fast shipping
http://kamameds.com/# Fast-acting ED solution with discreet packaging
Tadalify: Tadalify – cialis india
buy viagra online in south africa: SildenaPeak – SildenaPeak
SildenaPeak SildenaPeak SildenaPeak
Tadalify: what is the cost of cialis – cialis lower blood pressure
SildenaPeak: SildenaPeak – SildenaPeak
Tadalify: Tadalify – cialis going generic
purchase viagra from india canada viagra buy SildenaPeak
order cialis online no prescription reviews: generic cialis online pharmacy – Tadalify
http://sildenapeak.com/# SildenaPeak
SildenaPeak: SildenaPeak – SildenaPeak
Kamagra oral jelly USA availability: Compare Kamagra with branded alternatives – Kamagra reviews from US customers
buy cialis online free shipping cialis 10mg what is cialis good for
sildenafil generic cost: SildenaPeak – SildenaPeak
SildenaPeak: SildenaPeak – SildenaPeak
ED treatment without doctor visits: Kamagra reviews from US customers – Online sources for Kamagra in the United States
Kamagra oral jelly USA availability Sildenafil oral jelly fast absorption effect Online sources for Kamagra in the United States
Kamagra reviews from US customers: Kamagra oral jelly USA availability – ED treatment without doctor visits
Safe access to generic ED medication: KamaMeds – Kamagra reviews from US customers
https://tadalify.com/# Tadalify
ED treatment without doctor visits: Affordable sildenafil citrate tablets for men – Sildenafil oral jelly fast absorption effect
Online sources for Kamagra in the United States: Sildenafil oral jelly fast absorption effect – Kamagra oral jelly USA availability
ED treatment without doctor visits: Kamagra oral jelly USA availability – ED treatment without doctor visits
Sildenafil oral jelly fast absorption effect Sildenafil oral jelly fast absorption effect Fast-acting ED solution with discreet packaging
Tadalify: what is cialis good for – tadalafil vs sildenafil
is tadalafil the same as cialis: Tadalify – Tadalify
SildenaPeak: where to buy viagra in canada safely – real viagra online pharmacy
https://kamameds.shop/# Compare Kamagra with branded alternatives
viagra for sale over the counter viagra tablets 50 mg online SildenaPeak
buying viagra online: SildenaPeak – chewable sildenafil
Safe access to generic ED medication: Affordable sildenafil citrate tablets for men – Men’s sexual health solutions online
SildenaPeak: how to get viagra online – where to buy sildenafil in south africa
Safe access to generic ED medication: Kamagra oral jelly USA availability – KamaMeds
how long does cialis take to work 10mg Tadalify when does cialis go generic
Tadalify: cialis 80 mg dosage – cialis back pain
http://sildenapeak.com/# SildenaPeak
Tadalify: cialis with dapoxetine – what does cialis do
Tadalify: Tadalify – cialis for bph
cialis tadalafil & dapoxetine Tadalify cialis insurance coverage
Tadalify: difference between sildenafil and tadalafil – Tadalify
Tadalify: Tadalify – Tadalify
Online sources for Kamagra in the United States: Non-prescription ED tablets discreetly shipped – ED treatment without doctor visits
Tadalify: Tadalify – how to get cialis without doctor
Tadalify where to buy tadalafil in singapore can you drink wine or liquor if you took in tadalafil
http://sildenapeak.com/# SildenaPeak
KamaMeds: Online sources for Kamagra in the United States – ED treatment without doctor visits
Tadalify: cialis free trial coupon – cialis not working
SildenaPeak: viagra activiagrs com – average price of sildenafil in usa 100mg
SildenaPeak: viagra online from canada – SildenaPeak
Tadalify cialis australia online shopping Tadalify
Fast-acting ED solution with discreet packaging: Affordable sildenafil citrate tablets for men – Compare Kamagra with branded alternatives
Kamagra reviews from US customers: Affordable sildenafil citrate tablets for men – KamaMeds
https://sildenapeak.shop/# SildenaPeak
Tadalify: Tadalify – cialis 50mg
Tadalify Tadalify cialis tadalafil & dapoxetine
Tadalify: cialis with out a prescription – Tadalify
sildenafil tablets for sale: SildenaPeak – SildenaPeak
canada cialis generic: Tadalify – Tadalify
ED treatment without doctor visits: Kamagra reviews from US customers – Online sources for Kamagra in the United States
cheap viagra 100mg uk SildenaPeak SildenaPeak
Affordable sildenafil citrate tablets for men: ED treatment without doctor visits – Fast-acting ED solution with discreet packaging
http://kamameds.com/# ED treatment without doctor visits
trusted online store to buy cialis: what is the cost of cialis – Tadalify
Men’s sexual health solutions online: Compare Kamagra with branded alternatives – Affordable sildenafil citrate tablets for men
viagra buy in australia: SildenaPeak – best over the counter female viagra
CardioMeds Express: CardioMeds Express – lasix online
FertiCare Online: FertiCare Online – FertiCare Online
where can i get cheap clomid without a prescription: where can i buy cheap clomid pill – FertiCare Online
FertiCare Online get cheap clomid without insurance where to get generic clomid without dr prescription
buy prednisone canada: prednisone 10 mg – SteroidCare Pharmacy
buy amoxicillin online uk: TrustedMeds Direct – amoxicillin for sale online
where can i get clomid without rx: FertiCare Online – how to get clomid without rx
can i purchase clomid without insurance: FertiCare Online – cost generic clomid
buy amoxicillin online cheap: TrustedMeds Direct – TrustedMeds Direct
how long before ivermectin works: petco ivermectin – push health ivermectin
https://cardiomedsexpress.shop/# CardioMeds Express
prednisone 20mg: prednisone 5mg capsules – SteroidCare Pharmacy
SteroidCare Pharmacy: SteroidCare Pharmacy – how can i get prednisone
CardioMeds Express: lasix uses – CardioMeds Express
FertiCare Online: FertiCare Online – get cheap clomid price
stromectol price us: IverGrove – ivermectin inflammation
https://trustedmedsdirect.shop/# amoxicillin without a doctors prescription
5 mg prednisone tablets: generic prednisone otc – buy prednisone canadian pharmacy
ivermectin manufacturer: how quickly does ivermectin work – how much ivermectin paste to give a dog for mange
how to buy generic clomid no prescription: FertiCare Online – FertiCare Online
TrustedMeds Direct amoxicillin without a doctors prescription TrustedMeds Direct
CardioMeds Express: CardioMeds Express – furosemide 100 mg
where can i buy clomid for sale: buy cheap clomid price – FertiCare Online
IverGrove: IverGrove – ivermectin autoimmune
buy amoxicillin 500mg online TrustedMeds Direct TrustedMeds Direct
http://cardiomedsexpress.com/# CardioMeds Express
SteroidCare Pharmacy: buying prednisone on line – SteroidCare Pharmacy
TrustedMeds Direct: TrustedMeds Direct – amoxicillin cephalexin
FertiCare Online: where to get cheap clomid for sale – how can i get cheap clomid online
pillole per erezione immediata cialis farmacia senza ricetta viagra naturale in farmacia senza ricetta
п»їFarmacia online migliore: tadalafil senza ricetta – comprare farmaci online con ricetta
http://pillolesubito.com/# comprare farmaci online con ricetta
farmacie online autorizzate elenco: tadalafil 10mg 20mg disponibile online – farmacia online più conveniente
Farmacie online sicure sildenafil generico senza ricetta Farmacie on line spedizione gratuita
Farmacia online miglior prezzo: tadalafil 10mg 20mg disponibile online – top farmacia online
viagra ordine telefonico: pillole per la disfunzione erettile in Italia – pillole per erezione in farmacia senza ricetta
migliori farmacie online 2024: sildenafil generico senza ricetta – comprare farmaci online con ricetta
https://pillolesubito.shop/# acquisto farmaci con ricetta
viagra prezzo farmacia 2023 PotenzaFacile esiste il viagra generico in farmacia
acquistare farmaci senza ricetta: consegna rapida in tutta Italia – farmaci senza ricetta elenco
top farmacia online: Forza Intima – farmaci senza ricetta elenco
farmaci senza ricetta elenco: medicinali senza prescrizione medica – farmaci senza ricetta elenco
farmaci senza ricetta elenco farmacia online Italia comprare farmaci online all’estero
alternativa al viagra senza ricetta in farmacia: acquistare viagra generico online – viagra 50 mg prezzo in farmacia
top farmacia online: farmaci senza ricetta online – Farmacia online miglior prezzo
farmacie online affidabili: acquisto discreto di medicinali in Italia – п»їFarmacia online migliore
https://forzaintima.shop/# kamagra oral jelly spedizione discreta
viagra 100 mg prezzo in farmacia: PotenzaFacile – viagra acquisto in contrassegno in italia
comprare farmaci online con ricetta tadalafil senza ricetta farmacie online autorizzate elenco
farmaci senza ricetta elenco: sildenafil generico senza ricetta – top farmacia online
acquistare farmaci senza ricetta: FarmaciDiretti – Farmacie on line spedizione gratuita
BorderMeds Express real mexican pharmacy USA shipping buy from mexico pharmacy
india pharmacy: BharatMeds Direct – BharatMeds Direct
https://bordermedsexpress.shop/# mexico drug stores pharmacies
BorderMeds Express: best mexican pharmacy online – BorderMeds Express
BharatMeds Direct: indianpharmacy com – BharatMeds Direct
online shopping pharmacy india indian pharmacies safe indian pharmacy online
BharatMeds Direct: top 10 online pharmacy in india – BharatMeds Direct
https://maplemedsdirect.com/# cialis cost pharmacy
best online pharmacy india: BharatMeds Direct – BharatMeds Direct
online shopping pharmacy india BharatMeds Direct online shopping pharmacy india
rx city pharmacy: MapleMeds Direct – diflucan online pharmacy
BorderMeds Express: BorderMeds Express – BorderMeds Express
buy propecia online pharmacy: MapleMeds Direct – buy naltrexone from trusted pharmacy
sildenafil mexico online BorderMeds Express BorderMeds Express
metronidazole singapore pharmacy: davita rx pharmacy – pharmacy supply store near me
BharatMeds Direct: п»їlegitimate online pharmacies india – BharatMeds Direct
http://bharatmedsdirect.com/# india online pharmacy
BorderMeds Express: BorderMeds Express – BorderMeds Express
MapleMeds Direct MapleMeds Direct online pharmacy tadalafil
pharmacy website india: BharatMeds Direct – BharatMeds Direct
BorderMeds Express: BorderMeds Express – finasteride mexico pharmacy
BharatMeds Direct: BharatMeds Direct – india online pharmacy
BorderMeds Express BorderMeds Express BorderMeds Express
MapleMeds Direct: MapleMeds Direct – online pharmacy no prescription lexapro
MapleMeds Direct: MapleMeds Direct – viagra in chennai pharmacy
https://bharatmedsdirect.com/# reputable indian pharmacies
indian pharmacy paypal: mail order pharmacy india – BharatMeds Direct
BharatMeds Direct best online pharmacy india BharatMeds Direct
isotretinoin from mexico: BorderMeds Express – BorderMeds Express
online apotheke versandkostenfrei Potenz Apotheke tadalafil 20mg preisvergleich
online apotheke gГјnstig: medikament ohne rezept notfall – medikament ohne rezept notfall
apotheke online MannerKraft online apotheke
Potenz Apotheke: PotenzApotheke – beste online-apotheke ohne rezept
http://potenzapothekede.com/# wirkung und dauer von tadalafil
https://potenzapothekede.com/# PotenzApotheke
medikament ohne rezept notfall: sildenafil tabletten online bestellen – internet apotheke
Sildenafil rezeptfrei in welchem Land kamagra erfahrungen deutschland preisvergleich kamagra tabletten
https://gesunddirekt24.com/# online apotheke rezept
cialis generika ohne rezept: tadalafil erfahrungen deutschland – online apotheke preisvergleich
https://gesunddirekt24.com/# europa apotheke
Viagra kaufen gГјnstig Deutschland Intim Gesund generisches sildenafil alternative
https://vitaledgepharma.shop/# VitalEdgePharma
EverTrustMeds Cheap Cialis EverTrustMeds
https://evertrustmeds.com/# Generic Cialis without a doctor prescription
Clear Meds Hub: Clear Meds Hub – ClearMedsHub
VitalEdge Pharma VitalEdgePharma VitalEdgePharma