Instructions are here: https://yum.postgresql.org/
-
From this page, copy the link for CentOS 7 and install:
$ sudo yum install https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm
$ sudo su -
# yum install postgresql13-server
$ su - postgres
$ /usr/pgsql-13/bin/initdb -A md5 -W #-W forces the user to provide a superuser (postgres) password
$ exit
# systemctl start postgresql-13
# systemctl status postgresql-13
NOTE: you do not need postgresql13-server if running postgres within a docker
container.
Install docker
and docker-compose
using instructions here:
https://docs.docker.com/engine/installation/linux/centos/
https://docs.docker.com/compose/install/
$ sudo yum install traffic_ops
- install in /opt/traffic_ops_extensions
$ sudo /opt/traffic_ops/install/bin/generateCert
$ sudo su -
# /opt/traffic_ops/install/bin/postinstall