我正在尝试将我的django项目部署到unix服务器。当我使用SSH运行命令创建PostgreSQL数据库时,遇到以下错误:
$ createdb elections
createdb: could not connect to database template1: 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"?
错误是否意味着在本地运行'在服务器或我的机器? 什么阻止它连接到服务器? 如何修复错误?