linux ph开发环境配置.docVIP

  • 9
  • 0
  • 约 66页
  • 2016-10-23 发布于贵州
  • 举报
linux ph开发环境配置

======================================================================pgsql的配置 tar -zxvf postgresql-8.0.3.tar.gz cd postgresql-8.0.3 ./configure --prefix=/usr/local/pgsql 注意:有的系统并没有默认安装readline*2。可能会报出缺乏readline支持,但是不要紧,可以用命令行避免使用Readline库,但是这样会关闭 psql 里的命令行编辑和历史。 ./configure --without-readline 当然还可以安装readline-devel和readline来支持。 make make install 最后的安装文件会安装在/usr/local/pgsql下,然后添加postgres用户: adduser postgres 把安装路径的所有文件都改变成postgres组和用户拥有。 chown -R postgres /usr/local/pgsql chgrp -R postgres /usr/local/pgsql su postgres (切换到postgres用户身份执行程序) /usr/local/pgsql/bin/initdb -D /usr/local/pgsql/data

文档评论(0)

1亿VIP精品文档

相关文档