1. yum install postgresql-server postgresql-contrib
2. su postgresql
3. postgresql-setup initdb
4. vi /var/lib/pgsql/data/pg_hba.conf
5. Find the lines that look like this near the end of the file and change them from ident to md5: host all all 127.0.0.1/32 ident host all all ::1/128 ident
6. systemctl start postgresql
7. systemctl enable postgresql
8. sudo –i –u postgres
9. createuser –d –P sonarqube
10. Enter a password for the user. You will need it in the next section.
11. createdb sonarqube
12. exit