Skip to content

Instantly share code, notes, and snippets.

@barbietunnie
Created November 10, 2022 11:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save barbietunnie/07f310c4b8cdf310e5bbec51f62bc009 to your computer and use it in GitHub Desktop.
Save barbietunnie/07f310c4b8cdf310e5bbec51f62bc009 to your computer and use it in GitHub Desktop.
Restart Postgres on Cent OS 7

Restart Postgres on Cent OS 7

  1. Get the service name

    sudo systemctl list-units | grep postgresql
    
  2. Restart the service

    service <postgres-service-name> restart
    

    Alternatively, you can restart with

    systemctl restart <postgres-service-name>
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment