一、系统环境准备先下载Ubuntu 12.04的安装包,这里我用的是64位的系统http://mirrors.zju.edu.cn/ubuntu-releases//precise/ubuntu-12.04.3-server-amd64.iso一路Next,默认安装即可。 只是配置防火墙的时候注意吧 ssh 、postgresql勾勒!二、系统配置为了方便后面的安装配置,先把root账号启用 sudo passwd root #给root用户设置密码设置密码为123456su root #切换到root账户 root账户启用后,用ssh远程登录上去配置,这样方便些。毕竟在服务器上操作不是很方便(我们单位有20多台服务器,接在了一个该死的KVM切换器上,由于VGA线路过长(20M),显示器跳的厉害。推荐用 xshell这个软件进行远程管理 三、开始安装软件包(1)安装postgresqlapt-get install postgresql由于安装Ubuntu时,勾选了postgresql,所以系统提示已经安装了 (2)安装php运行环境apt-get install apache2 apt-get install php5 apt-get install php5-pgsql apt-get install php5-gd (3)安装phppgadminapt-get install phppgadmin 四、配置phppgadmin和apachephppgadmin安装完毕后,默认的配置文件位于 /etc/phppgadmin 目录下
(1)vi /etc/phppgadmin/apache.conf
#allow from 127.0.0.0/255.0.0.0 ::1/128
allow from all 取消这行注释,运行所有ip访问
(2)vi /etc/phppgadmin/config.inc.php
// If extra login security is true, then logins via phpPgAdmin with no
// password or certain usernames (pgsql, postgres, root, administrator)
// will be denied. Only set this false once you have read the FAQ and
// understand how to change PostgreSQL"s pg_hba.conf to enable
// passworded local connections.
$conf["extra_login_security"] = false;
(3)重新启动apache2/etc/init.d/apache2 restart 打开浏览器输入phppgadmin的网址就可以看到了
(4)配置postgresql 账户,不然phppgadmin是无法正常使用的postgresql默认安装后,配置文件在 /etc/postgresql/9.1/main 目录下
先修改pg_hba.conf 文件vi pg_hba.conf
加入: hostallall0.0.0.0 0.0.0.0 md5允许所有IP通过md5密码验证方式访问 修改postgresql.confvi postgresql.conf listen_addresses = "*"
重启数据库,让刚刚修改的配置文件生效/etc/init.d/postgresql restart
给Postgresql的管理员账号 postgres配置密码,以便远程用户可以访问
su - postgrespsqlALTER USER postgres PASSWORD "190123";qexit
更多详情见请继续阅读下一页的精彩内容: http://www.linuxidc.com/Linux/2013-11/92933p2.htm
PostgreSQL 的详细介绍:请点这里
PostgreSQL 的下载地址:请点这里PostgreSQL缓存详述 http://www.linuxidc.com/Linux/2013-07/87778.htmWindows平台编译 PostgreSQL http://www.linuxidc.com/Linux/2013-05/85114.htmUbuntu下LAPP(Linux+Apache+PostgreSQL+PHP)环境的配置与安装 http://www.linuxidc.com/Linux/2013-04/83564.htm
phpPgAdmin 的详细介绍:请点这里
phpPgAdmin 的下载地址:请点这里Ubuntu上的phppgAdmin安装及配置 http://www.linuxidc.com/Linux/2011-08/40520.htm
CentOS 6.4环境下编译安装Bandwidthd和PostgreSQL心得笔记Bandwidthd完整实战笔记相关资讯 PostgreSQL phpPgAdmin