Gat*_*uno 12 postgresql centos postgresql-9.3
我按照这个几乎白痴的指南在Centos 7上安装postgresql和postgis 并且使用以下命令卡住启动数据库本身:
[root@localhost cmaps]# service postgresql-9.3 initdb
The service command supports only basic LSB actions (start, stop, restart, try-restart, reload, force-reload, status). For other actions, please try to use systemctl.
Run Code Online (Sandbox Code Playgroud)
如果我从Centos存储库(版本9.2)安装postgresql软件包,该命令可以工作,但是我没有postgis,并且Centos 7没有官方的posgresql-92存储库.
对于发生了什么有什么想法吗?
谢谢!
ver*_*o31 21
我有同样的问题,并通过改变路径解决它
/usr/pgsql-9.3/bin/postgresql93-setup initdb
Run Code Online (Sandbox Code Playgroud)
请注意,路径不同
CentOS 7基于systemd.PostgreSQL包在那里对initdb使用不同的命令:
/usr/lib/pgsql-9.3/bin/postgresql93-setup initdb
Run Code Online (Sandbox Code Playgroud)
在旧版本上,直接调用initscript.
/etc/init.d/postgresql-9.3 initdb
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
10181 次 |
| 最近记录: |