我有一个在云上部署的Web应用程序。 现在,这个Web应用程序需要访问3个Postgres数据库,位于3个不同的位置(让我们称之为客户端系统)。 所以有一天,我遇到了这个非常有经验,也很高级的人。 他给了我以下的解决scheme。 在Raspberry Pi上安装OpenVPN 把这个Raspberry Pi放到networking中(在防火墙后面,他说)安装Postgres数据库服务器的地方。 通过云中的VPN访问Postgres数据库。 现在我想知道为什么我需要这样做,当我可以通过从客户端系统进行端口转发来访问所有3个数据库。 我错过了什么吗?
在停电后,在Ubuntu 9.10服务器上启动PostgreSQL 8.4有问题。 当我尝试连接到数据库时,它说: psql: server closed the connection unexpectedly This probably means the server terminated abnormally before or while processing the request. 当我尝试使用命令启动它 sudo -u postgres /etc/init.d/postgresql-8.4 start * Starting PostgreSQL 8.4 database server [ OK ] Netstat输出 netstat -tulp (No info could be read for "-p": geteuid()=1000 but you should be root.) Active […]
我正在试图从一台机器打包postgres到另一台机器。 源代码是IP V6的Windows 7,目标是带有IPv4的Windows XP。 在Windows XP上启动postgres会出错 2010-11-01 12:01:07 IST LOG: invalid IP address "::1": Unknown host 2010-11-01 12:01:07 IST CONTEXT: line 76 of configuration file "C:/postgres/data/pg_hba.conf" 2010-11-01 12:01:07 IST FATAL: could not load pg_hba.conf – postgres – 在IpV4系统和IpV6系统之间共享相同的pg_hba.conf 这是我的pg_hba.conf的样子 # TYPE DATABASE USER CIDR-ADDRESS METHOD # IPv4 local connections: host all all 127.0.0.1/32 trust […]
我正在尝试从一台服务器执行pg_dump,并同时在另一台服务器上进行恢复。 源服务器上的命令(192.168.3.94): pg_dumpall -v | nc 192.168.3.95 4000 目标服务器上的命令(192.168.3.95): nc -l 4000 | psql mydb 现在我通过Putty从PC上运行这个程序。 由于这个过程需要大约5个小时,所以我想为后台作业和closuresterminal窗口。 但我无法弄清楚如何后台两个命令,也退出shell。 帮帮我!
在Ubuntu服务器上,已经安装了PostgreSQL Server 8.4。 我必须在同一台服务器上安装8.2。 我宁愿从.DEB安装,而不是从源代码编译。
我正在使用CentOS 6.我需要configuration我的YUM才能访问PostgreSQL存储库,但是出现错误。 我按照这个指南: http : //www.postgresonline.com/journal/index.php?/archives/45-An-Almost-Idiots-Guide-to-PostgreSQL-YUM.html 当我做: yum install postgresql 我得到这个错误: [root@andre yum.repos.d]# yum install postgresql Loaded plugins: fastestmirror, refresh-packagekit, rpm-warm-cache Loading mirror speeds from cached hostfile * base: ftp.di.fc.ul.pt * extras: ftp.di.fc.ul.pt * updates: ftp.di.fc.ul.pt http://yum.pgsqlrpms.org/9.0/redhat/rhel-6-x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 – "The requested URL returned error: 404" Trying other mirror. Error: Cannot retrieve […]
我search了高和低,并没有发现任何东西。 也许我不知道要search什么。 环境是Ubuntu的Lucid(10.4)与PHP 5.2.4和PostgreSQL 9.2。 PHP是“持有”在5.2.4与dpkg –set-selections 。 我只能findphp5-pgsql的5.2.6版本,当我尝试使用dpkg进行安装时,它抱怨PHP是5.2.4。 试用aptitude install php5-pgsql运行aptitude install php5-pgsql告诉我它要升级到PHP 5.3。 编辑:升级PHP目前不是一个选项。 我应该补充:我尝试使用–with-pgsql –with-pdo-pgsql从源代码构buildPHP 5.2.4。 没有得到任何扩展。 libpq和libpq-dev都已安装。
我目前有两个数据库在生产中运行。 一个是主人,另一个是奴隶。 我使用stream式复制。 我正在考虑使用pg_dump并将文件发送到亚马逊S3。 我已经知道如何执行所有这些物stream了。 但是,我似乎无法运行pg_dump。 当我运行这个命令时: pgdump -U django_login django_db -Fc > db.backup 我收到以下回复: No command 'pgdump' found, did you mean: Command 'pg_dump' from package 'postgresql-client-common' (main) 所以我查了一下,看看我是否安装了postgresql-client-common。 为了检查,我跑了: ~$ sudo apt-get install postgresql-client-common Reading package lists… Done Building dependency tree Reading state information… Done postgresql-client-common is already the newest version. postgresql-client-common set to […]
我试图find一个替代回购与Postfix的中心6支持pgsql的支持。 我以前使用CentAlt,但自从那以后似乎已经死了,我试图寻找替代品。 如果可能,我宁愿不从源码编译postfix。 我已经在网上查看和在这里的其他职位,但无法find一个有效的答案。 有谁知道任何与Postfix / W pgsql支持或repo包含postfix-pgsql回购吗?
我想build立一个远程数据库连接到运行postgresql的服务器。 我已经使用LE证书在远程服务器上运行nginx。 我的问题是,如果postgresql证书需要由我们encryption或者如果一个自签名证书就足够的CA签名。 我正在尝试了解在为数据库连接使用自签名证书时的安全风险。