postgresql stop server code example Example: postgres stop sudo service redis-server stop sudo service redis-server start