Ben*_*Ben 5 linux postgresql ubuntu
我只是根据官方文档安装了postgresql :但是由于某种原因,它不起作用。它确实使用sudo apt-get postgres ...等进行安装。但是启动服务器似乎不起作用。
我尝试根据他们的文档启动服务器,但是先生。输入此命令时,计算机向我抛出以下错误:
命令:
user@user-noobcomputer:/usr/lib/postgresql/9.4$ bin/postgres -D /usr/local/pgsql/data/
Run Code Online (Sandbox Code Playgroud)
错误:
postgres cannot access the server configuration file "/usr/local/pgsql/data/postgresql.conf": No such file or directory"
Run Code Online (Sandbox Code Playgroud)
我不知道为什么这个文件不存在。谁能帮助我找出如何摆脱此错误消息并启动并运行我的postgres服务器?
首先确保未安装该文件。作为超级用户更新 mlocate 数据库,然后对文件运行 mlocate 查询。
$updatedb
$locate postgresql.conf
Run Code Online (Sandbox Code Playgroud)
这将返回系统中具有该名称的任何文件。如果文件位于错误的文件夹中,则它将显示在该查询中。
如果没有,可以尝试访问PostgreSQL 文档,他们有一个关于此文件外观的基本示例。尝试使用该设置制作文件的副本。
| 归档时间: |
|
| 查看次数: |
9953 次 |
| 最近记录: |