Stopping PostgreSQL (in Linux)

Stop PostgreSQL service on the application server.

If PostgreSQL is installed on Amazon Linux

Execute the following command:

service pgsql-iot stop

If PostgreSQL is installed on Red Hat Enterprise Linux 7

Execute the following command:

systemctl stop pgsql-iot.service