yum install postgresql-server postgresql-contrib -y postgresql-setup initdb systemctl enable postgresql sudo systemctl start postgresql systemctl status postgresql