Openerp 安装之数据安装
- 
fedora 17 安裝 postgresql 9.1.成功 
 废话不多说了,折腾了半年多,总算能留下点东西了。在这里记下一笔,日后好查。
 步骤:
 第一步、mkdir data&&cd data 在一个地方建立一个目录,并进入。意义免谈。
 第二步、 wget -c http://ftp.postgresql.org/pub/source/v9.1.4/postgresql-9.1.4.tar.gz 到postgresql官方下在9.1的源码包。
 第三步、tar vfx postgresql-9.1.4.tar.gz 将包解压出来
 第四步、cd 解壓的目錄(cd post後面按兩個table鍵自動補全) 进入 解压的目录
 第五步、yum install zlib-devel 将这个包装上,不然出毛病的,编译时。
 第六步、./configure --prefix=/usr/local/pgsql --without-readline (安裝的時候如果不知道怎麼裝可以看以下help:./confiure --help查看安裝參數) 注意:without-readline一定要加上了,应该是版本问题。加上这个选项就可以了。
 第七步、 make&&make install 编译&&安装
 上面的安装步骤基本上完成,下面就是配置工作了
 很重要!!!!
 1、创建用户组和用户:
 groupadd postgres
 useradd -g postgres postgres
 2、创建数据库库文件存储目录、给postgres赋予权限:
 mkdir /usr/local/pgsql/data
 cd /usr/local/pgsql
 chown postgres.postgres data
 3、初始化数据库目录:
 切换用户
 su - postgres
 初始化数据
 /usr/local/pgsql/bin/initdb -D /usr/local/pgsql/data
 启动数据库
 /usr/local/pgsql/bin/postmaster -D /usr/local/pgsql/data
 4、配置监听地址和端口:
 vi /usr/local/pgsql/data/postgresql.conf
 取消以下两行的注释
 listen_addresses = '*'
 port = 5432
 5、让postgresql数据库随系统启动而启动:
 将启动脚本拷贝到/etc/init.d/目录下,具体执行如下命令:
 cd /etc/rc.d/init.d
 cp (第一步解压的安装文件目录)/postgresql-9.1.4/contrib/start-scripts/linux postgresql
 chmod +x postgresql
 vi postgresql
 prefix=/usr/local/pgsql
 PGDATA="/usr/local/pgsql/data"
 PGUSER=postgres
 PGLOG="/var/log/pgsql.log"
 6、執行 chkconfig --add postgresql
 7、启动数据库:
 service postgresql start
 創建數據庫省略不計!
 故事講玩了!
- 
接受,当时那个readline编译不进去。所以就with-out了