This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # createuser: error: connection to server on socket "/var/run/postgresql/.s.PGSQL.5432" failed: No such file or directory | |
| # Is the server running locally and accepting connections on that socket? | |
| # List clusters running on device | |
| pg_lsclusters | |
| # It will likely show Status down | |
| # Restart pg_ctlclusters | |
| #format is pg_ctlcluster <version> <cluster> <action> | |
| sudo pg_ctlcluster <version> main start |