postgres 8.2.16 install
来源:互联网 发布:免费客服软件下载 编辑:程序博客网 时间:2024/06/09 20:18
先去postgres的网站下载数据库
http://www.postgresql.org/ftp/binary/
解压后
执行命令
#mkdir /usr/local/pgsql
#mkdir /usr/local/pgsql/data
安装gcc
zlib-devel....
glibc-kernheaders.....
glibc_headers....
glibc-devel....
gcc-3.4.6.......
#rpm -ivf 上面的文件
#./configure -prefix=/usr/local/pgsql (--without-readline)
#make
#make install
在root下找到.bash_profile 或者 /etc/profile
add:
PGLIB=/usr/local/pgsql/lib
PGDATA=/usr/local/pgsql/data
PATH=$PATH:/usr/local/pgsql/bin
MANPATH=$MANPATH:/usr/local/pgsql/man
export PGLIB PGDATA PATH MANPATH
# su postgres
chown -R postgres.postgres /usr/local/pgsql
#/usr/local/pgsql/bin/
# ./initdb
在pg_hba.conf把你的ip地址加进去
启动与关闭命令
/opt/pgsql/bin/pg_ctl -D /opt/pgsql/data -l /opt/pgsql/data/logfile start
/usr/local/pgsql/bin/pg_ctl -i -D /usr/local/pgsql/data -l /usr/local/pgsql/data/logfile start
postmaster -i -D /usr/local/pgsql/data &
/opt/pgsql/bin/pg_ctl stop -D /opt/pgsql/data -l /opt/pgsql/data/logfile
/usr/local/pgsql/bin/pg_ctl stop -D /usr/local/pgsql/data -l /usr/local/pgsql/data/logfile -m fast
pg_ctl stop -m fast -D /usr/local/pgsql/data
- postgres 8.2.16 install
- postgres install
- Gem install postgres error
- brew install/uninstall postgres
- Install postgres in my old ubuntu system
- postgres
- postgres
- postgres
- postgres
- Postgres
- Postgres-XC 1.0.2 install in 8 KVM host enviroment
- How To Install and Configure Django with Postgres, Nginx, and Gunicorn
- postgres performance
- Postgres 常用命令
- Postgres触发器
- Postgres 管理
- postgres简介
- postgres commands
- c语言中volatile关键字
- UML 类图大全
- 如何向android的setting语言列表中添加一门语言
- 我开发Linux服务程序的工作环境搭配
- 项目管理学习笔记六:项目范围管理
- postgres 8.2.16 install
- 优秀程序员的十个习惯
- ADROID 2.1 架构解析 1 语言定制
- Ubuntu下evince查看中文pdf乱码解决方案
- Listener 宝典
- 用rand()和srand()产生为随机数的方法总结
- WIFI状态获取
- 正则表达式入门 Regex
- The Full Stack