Module3_Installation Flashcards

1
Q

what is the default OS user when installing postgresql and what is it state?

A

Default postgres user is created and locked on OS level. idealy create the postgres user and change it’s password before you start.
useradd postgres
passwd postgres

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

what does this commando do:
sudo yum install -y https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm

A

Install the repository RPM:

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

what does this commando do:
sudo yum install -y postgresql13-server

A

install postgresql13

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

what does this commando:
sudo /usr/pgsql-13/bin/postgresql-13-setup initdb

A

initialise the instance

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

how to enable and start the postgresql service:

A

sudo systemctl enable postgresql-13
sudo systemctl start postgresql-13

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

what is the default postgres DB password?

A

BLANK. to change this login in the database and “alter user postgres PASSWORD ‘password_here’;

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

what is the default authentication for postgres?

A

PEER, when you are logged in in the OS you can login to DB as well (not so safe)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

where can we change Default ENVIRONMENT parameters?

A

in the BASH_PROFILE

How well did you know this?
1
Not at all
2
3
4
5
Perfectly