在CentOS 6中,我可以将service用于postgresql-9.3的initdb:
service postgresql-9.3 initdb但是,在CentOS7中,我尝试了一下,发现我可以阻止它:
# service postgresql-11 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.
[root@www data]# systemctl initdb postgresql-11
Unknown operation 'initdb'.
[root@www data]# systemctl postgresql-11 initdb
Unknown operation 'postgresql-11'.我怎样才能解决这个问题?
发布于 2018-08-23 08:15:08
不幸的是,您必须直接使用inidb二进制:
/usr/pgsql-11/bin/initdb /var/lib/pgsql/11https://unix.stackexchange.com/questions/464331
复制相似问题