我遵循这个几乎白痴向导在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.如果我从Centos存储库(版本9.2)安装postgresql包,那么命令可以工作,但是它们没有postgis,也没有Centos 7的官方posgresql-92存储库。
知道发生了什么吗?
谢谢!
发布于 2014-08-09 13:43:22
我有同样的问题,并通过改变路径来解决。
/usr/pgsql-9.3/bin/postgresql93-setup initdb注意路径是不同的。
发布于 2014-08-06 00:21:10
CentOS 7是基于systemd的。PostgreSQL包对initdb使用不同的命令:
/usr/lib/pgsql-9.3/bin/postgresql93-setup initdb在旧版本中,直接调用initscript。
/etc/init.d/postgresql-9.3 initdb发布于 2019-03-06 13:45:27
对于安装在MS Azure平台上的CentOS7.3,脚本位于
/usr/bin/postgresql-setup initdb版本号也不在它们的名称中:
/var/lib/pgsql/data//sbin/service postgresql status或systemctl status postgresql.servicehttps://stackoverflow.com/questions/25142442
复制相似问题