用Gitlab官方包 Omnibus GitLab RPM包安装后 Postgres 数据库无法启动,

通过sudo gitlab-ctl reconfigure启动时, 提示 [execute] pgsql:could not connect to server:

通过sudo gitlab-ctl start启动时, 提示 timeout:down:postgresql:ls, normally up, want up

查看/var/log/gitlab/postgres/current日志发现,

 FATAL:  could not create shared memory segment: Cannot allocate memory

是由于共享内存无法分配造成的

修改gitlab配置文件 /etc/gitlab/gitlab.rb, 例如

postgresql['shared_buffers'] = "100MB"

重新执行sudo gitlab-ctl reconfigure gitlab可以正常启动了

 

 


 
                    
            
                

相关文章:

  • 2022-02-19
  • 2021-09-04
  • 2021-11-11
  • 2022-12-23
  • 2021-08-05
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-09-15
  • 2022-12-23
  • 2021-12-02
  • 2022-01-04
  • 2021-11-10
相关资源
相似解决方案