Module3_Installation Flashcards
what is the default OS user when installing postgresql and what is it state?
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
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
Install the repository RPM:
what does this commando do:
sudo yum install -y postgresql13-server
install postgresql13
what does this commando:
sudo /usr/pgsql-13/bin/postgresql-13-setup initdb
initialise the instance
how to enable and start the postgresql service:
sudo systemctl enable postgresql-13
sudo systemctl start postgresql-13
what is the default postgres DB password?
BLANK. to change this login in the database and “alter user postgres PASSWORD ‘password_here’;
what is the default authentication for postgres?
PEER, when you are logged in in the OS you can login to DB as well (not so safe)
where can we change Default ENVIRONMENT parameters?
in the BASH_PROFILE