我正在尝试停止已在Ubuntu服务器上运行的Postgresql 9.3数据库,但收到以下消息:
root@myprodserver:~# sudo /etc/init.d/postgresql stop
 * No PostgreSQL clusters exist; see "man pg_createcluster"
Run Code Online (Sandbox Code Playgroud)
如果我尝试列出集群,我将得到一个空结果:
root@myprodserver:~# pg_lsclusters
Ver Cluster Port Status Owner Data directory Log file
Run Code Online (Sandbox Code Playgroud)
我试图运行一个createcluster:
root@myprodserver:~# pg_createcluster 9.3 main
Configuring already existing cluster (configuration: /etc/postgresql/9.3/main, data: /var/lib/postgresql/9.3/main, owner: 106:114)
Error: move_conffile: required configuration file /var/lib/postgresql/9.3/main/postgresql.conf does not exist
The database is up and running. The response shows that a cluster exists. I've restarted many times the service in the past without error messages.
Run Code Online (Sandbox Code Playgroud)
以下是结果sudo ps aux | …