[PostgreSQL] 无“pg_ctl” | "pg_ctlclusters"错误
发表于 : 2006-09-02 1:27
从源中安装的PostgreSQL 8.1.4,发现不能执行Stop等操作,提示如下:
psql及sql操作都是好用的,只是找不到pg_ctl。
翻过8.1的文档,pg_ctl没有被取消啊;而且,pg_ctlclusters的man里也写到,pg_ctlclusters是根据实际情况优化使用pg_ctl,是否我装的包不全?除了依赖关系中的包之外,还需要装其他的包么?
代码: 全选
postgres@...$ pg_lsclusters
Version Cluster Port Status Owner Data directory Log file
8.1 main 5432 online postgres /var/lib/postgresql/8.1/main /var/log/postgresql/postgresql-8.1-main.log
postgres@...$ pg_ctlcluster 8.1 main stop
Insecure directory in $ENV{PATH} while running with -T switch at /usr/bin/pg_ctlcluster line 342.
Insecure directory in $ENV{PATH} while running with -T switch at /usr/bin/pg_ctlcluster line 350.
(does not shutdown gracefully, now stopping immediately)
翻过8.1的文档,pg_ctl没有被取消啊;而且,pg_ctlclusters的man里也写到,pg_ctlclusters是根据实际情况优化使用pg_ctl,是否我装的包不全?除了依赖关系中的包之外,还需要装其他的包么?