Ubuntu下安装PostgreSQL8.3详细过程[多图]


下面以图解的方式详细介绍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

Ubuntu下安装PostgreSQL8.3详细过程[多图]

Ubuntu下安装PostgreSQL8.3/图1

Ubuntu下安装PostgreSQL8.3详细过程[多图]

Ubuntu下安装PostgreSQL8.3/图2

Ubuntu下安装PostgreSQL8.3详细过程[多图]

Ubuntu下安装PostgreSQL8.3/图3

$ 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/ 停止服务

  • 1
  • 2
  • 3
  • 下一页

相关内容