Sta*_*ers 19 database postgresql
我正在遵循这些说明,但是我只能进入步骤 17.2。
尽管通过以下方式成功安装了 postgresql
sudo apt-get install postgresql
Run Code Online (Sandbox Code Playgroud)
命令,在运行时
initdb -D /usr/local/pgsql/data
Run Code Online (Sandbox Code Playgroud)
Ubuntu 告诉我它没有安装“initdb”。说明告诉我这个命令是由
sudo apt-get install postgresql
Run Code Online (Sandbox Code Playgroud)
发生什么了?我可以通过安装 postgres-xc 来使 initdb 可用,但我认为 postgres-xc 只是一些奇怪的第三方垃圾,并且在说明中没有详细说明。有任何想法吗?
小智 31
您会initdb
在/usr/lib/postgresql/x.y/bin/
. 另请参阅/usr/share/doc/postgresql-common/README.Debian.gz
有关 Debian 和 Ubuntu 设置的更多信息。
Bri*_*ers 16
initdb
旨在在安装期间创建的 postgres 用户帐户下运行。安装 postgresql 后,您可以执行以下操作:
sudo su - postgres
然后你应该能够运行initdb
.
归档时间: |
|
查看次数: |
60453 次 |
最近记录: |