同时会有错误:
1.could not locate gemfile
2.Unicorn is not running
最后发现是postgresql没有启动起,看样子是:如果服务器突然断电,postgresql可能不会在下次开机时启动。
解决方法:sudo service postgresql start。
本文介绍了当遇到 Unicorn 未运行及找不到 Gemfile 的错误时,如何排查并发现 PostgreSQL 服务未正常启动的问题。通常情况下,若服务器意外断电可能会导致 PostgreSQL 在重启时无法自动启动。文中提供了一个简单的解决方案:通过终端使用 sudo service postgresql start 命令来手动启动 PostgreSQL 服务。
同时会有错误:
1.could not locate gemfile
2.Unicorn is not running
最后发现是postgresql没有启动起,看样子是:如果服务器突然断电,postgresql可能不会在下次开机时启动。
解决方法:sudo service postgresql start。
6127

被折叠的 条评论
为什么被折叠?