जब मैं PostgreSQL प्रारंभ करने का प्रयास मैं कोई त्रुटि मिलती है:"रूट" PostgreSQL सर्वर के निष्पादन की अनुमति नहीं है
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.
तो फिर मैं अपने कॉन्फ़िग फ़ाइल सेट करने का प्रयास:
postgres -D /usr/local/var/postgres
postgres cannot access the server configuration file "/usr/local/var/postgres/postgresql.conf": Permission denied
हम्म:
और मैं निम्नलिखित त्रुटि मिलती है ठीक है। इसके बाद, मैं एक व्यवस्थापक के रूप है कि एक ही कार्रवाई करने के लिए प्रयास करें:
sudo postgres -D /usr/local/var/postgres
और मैं निम्न त्रुटि प्राप्त:
"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.
मुझे लगता है कि त्रुटि संदेश के लिए आसपास googled लेकिन एक समाधान नहीं मिल रहा।
क्या कोई इस में कुछ अंतर्दृष्टि प्रदान कर सकता है?
अगर मुझे वास्तव में डॉकर के तहत इसकी आवश्यकता है तो पोस्टग्रेस को रूट के रूप में चलाने के लिए कैसे मजबूर करें? – Odysseus
@ ओडिसीस: आप नहीं कर सकते। सर्वर प्रक्रिया ('postgres') सक्रिय रूप से' root' उपयोगकर्ता द्वारा चलाने से इंकार कर देती है। स्वच्छता के लिए। –