代码: 全选
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,是否我装的包不全?除了依赖关系中的包之外,还需要装其他的包么?