stop psql code example Example: how to stop psql in linux sudo service postgresql stop # To stop the postgresql service