PostgreSQL启动脚本_精简for linux

我觉得这个写得有点复杂了,最简单就是这样
start

su postgres -c “/usr/bin/pg_ctl start -D /var/lib/pgsql/data -l /var/lib/pgsql/data/logfile”

stop

su postgres -c “/usr/bin/pg_ctl stop -D /var/lib/pgsql/data”

restart

su postgres -c “/usr/bin/pg_ctl restart -D /var/lib/pgsql/data -l /var/lib/pgsql/data/logfile”



发表评论

您的电子邮箱地址不会被公开。

+ 71 = 79