Quando provo ad avviare PostgreSQL ottengo un errore:esecuzione "root" del server PostgreSQL non è consentito
postgres
postgres does not know where to find the server configuration file.
You must specify the --config-file or -D invocation option or set the PGDATA environment variable.
Allora provo a impostare il mio file di configurazione:
postgres -D /usr/local/var/postgres
e ottengo il seguente errore:
postgres cannot access the server configuration file "/usr/local/var/postgres/postgresql.conf": Permission denied
Hmm va bene. Avanti, cerco di svolgere la stessa azione come amministratore:
sudo postgres -D /usr/local/var/postgres
e ricevo il seguente errore:
"root" execution of the PostgreSQL server is not permitted.
The server must be started under an unprivileged user ID to prevent possible system security compromise. See the documentation for more information on how to properly start the server.
Ho cercato su google in giro per questo messaggio di errore, ma non riesce a trovare una soluzione.
Qualcuno può dare qualche idea in questo?
Come forzare Postgres a girare come root se ho davvero bisogno di questo sotto la finestra mobile? – Odysseus
@Odysseus: non puoi. Il processo del server ('postgres') rifiuta attivamente di essere eseguito dall'utente' root'. Per sanità mentale. –