I installed mirth connect and Postgres in the ec2 instance for CentOS 7. I use puTTy to connect. Mirth connect and Postgres are both running.
$ sudo su - postgres