Ubuntu下安装PostgreSQL8.3

下载postgresql-8.3.3-2-linux.bin

root@bai-desktop:/home/bai/liuy# ls
postgresql-8.3.3-2-linux.bin
root@bai-desktop:/home/bai/liuy# chmod  u+x  postgresql-8.3.3-2-linux.bin   
root@bai-desktop:/home/bai/liuy# ./postgresql-8.3.3-2-linux.bin











root@bai-desktop:/home/bai#     su - postgres
$     bash                       切换为bash
postgres@bai-desktop:~$     /opt/PostgreSQL/8.3/bin/pg_ctl  start /opt/PostgreSQL/8.3/data/   注意加-D的参数

pg_ctl: too many command-line arguments (first is "start")
Try "pg_ctl --help" for more information.

postgres@bai-desktop:~$     /opt/PostgreSQL/8.3/bin/pg_ctl  start -D /opt/PostgreSQL/8.3/data/  开始服务

server starting
postgres@bai-desktop:~$      ./pg_ctl  stop -D  /opt/PostgreSQL/8.3/data/   停止服务