Postgresql8.4在linux下的安装
1.二进制文件安装PostgreSQL8.4
2.源文件安装PostgreSQL8.4 2.1源文件下载 2.2安装步骤1)root权限用户或root用户下解压下载文件 # tar zxvf postgresql-8.4.3.tar.gz # cd postgresql-8.4.32)进行配置,指定PostgreSQL的安装目录 # ./configure --prefix=/app/postgres/8.43)进行编译 # make4)进入安装 # make install5)创建用户组和用户,目录 # groupadd postgres # useradd –g postgres –d /app/postgres postgres # mkdir /app/postgres/8.4/data # chown -R postgres.postgres /app/postgres/8.46)配置环境变量 # vi /etc/profile export PATH=/app/postgres/8.4/bin:$PATH export PGDATA=/app/postgres/8.4/data/7)配置数据库监听地址和端口 编辑 /app/postgres/8.4/data/postgresql.conf 生效如下2行: listen_addresses = '*' port = 54328)配置远程连接 编辑 /app/postgres/8.4/data/pg_hba.conf 添加 host all all ip/24 trust 9)初始化数据库目录: # su – postgres $ ./initdb –D $PGDATA10)启动数据库PostgreSQL # su – postgres $ ./postmaster –D $PGDATA (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |