shell小笔记

533阅读 0评论2011-08-29 prefect
分类:LINUX

1.检查db port是否OK的 shell  。

nohup echo -e "q"|telnet -e "q" 127.0.0.1 $DB_PORT >/dev/null 2>&1
if [ $? -ne 0 ]; then
echo -e "PostgreSQL not run in this node"
exit 0
fi

2. 检查db 是否ok SQL。
# select 1;

rsync

rsync -laog --progress /data/pgsql/data/ postgres@10.0.2.23:/data/pgsql/data
上一篇:pgbouncer 实测
下一篇:come from EDB postgres enterprise manager setting