Postgres无法启动

时间:2016-08-25 08:23:37

标签: postgresql

我遇到了postgres无法启动的问题:

 * Starting PostgreSQL 9.5 database server                                                                              * The PostgreSQL server failed to start. Please check the log output:
2016-08-25 04:20:53 EDT [1763-1] FATAL:  could not map anonymous shared memory: Cannot allocate memory
2016-08-25 04:20:53 EDT [1763-2] HINT:  This error usually means that PostgreSQL's request for a shared memory segment exceeded available memory, swap space, or huge pages. To reduce the request size (currently 1124007936 bytes), reduce PostgreSQL's shared memory usage, perhaps by reducing shared_buffers or max_connections.

这是我得到的回应。我检查了tail -f /var/log/postgresql/postgresql-9.5-main.log中的登录,我可以看到相同的响应。

有人可以建议可能出现的问题吗?

我使用以下命令使用postgres 9.5在Ubuntu 14.04上停止/启动postgres服务器:

sudo service postgresql stop
sudo service postgresql start

1 个答案:

答案 0 :(得分:0)

正如其他人所说,错误只是记忆。我增加了数字海洋上的液滴记忆并修复了它。