我正在運行Debian服務器並使用SSH來管理它。今天,我試圖安裝的Postgres,並按照這個步驟做:Postgres無法連接到服務器:沒有這樣的文件或目錄
apt-get install postgresql
su - postgres
psql
的最後一個命令我後:
psql: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
我發現在Web幾種解決方案,但他們都沒有爲我工作。作爲例子,我發現,我需要在這裏刪除「postmaster.pid」:
但是我沒有這樣的目錄中,在我的「變種」文件夾「的Postgres」 ......
請,幫助...... :(
安裝後,您是否還初始化並啓動數據庫服務? –
不,我只是用這三個命令,那是我在那篇文章的開頭寫的。你能告訴我初始化命令嗎?而我需要使用那個命令 - root或者postgres? –
有人?.... :( –