AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / user-113443

A4J's questions

Martin Hope
A4J
Asked: 2015-06-03 08:11:18 +0800 CST

在这种情况下可以使用 HAproxy 吗?

  • 0

我有一个基于 Apache 的服务器,它运行多个站点以及 Virtualmin 管理工具。我想运行 HAproxy 将一个域定向到特定端口(一个 Docker 容器),其他一切都像往常一样(端口 80),因为这台服务器上有几个站点。

这可能吗?有人有我可以解决的示例配置吗?

haproxy
  • 1 个回答
  • 292 Views
Martin Hope
A4J
Asked: 2012-09-12 11:52:59 +0800 CST

pg_dump 不工作——我需要改变 $PATH 的顺序吗?

  • 1

我正在尝试设置 $PATH 以获取最新版本的 pg_dump,因为我在 Rails 应用程序中进行迁移时遇到了不匹配错误(我最近将架构类型更改为 SQL)。

我在 /etc/profile.d 中添加了一个名为 pg_dump.sh 的新文件,并在其中放置:

PG_DUMP=/usr/pgsql-9.1
export PG_DUMP
PATH=$PATH:$PG_DUMP/bin
export PATH

在查看 echo $PATH 时,我得到:

/usr/local/rvm/gems/ruby-1.9.3-p194/bin:/usr/local/rvm/gems/ruby-1.9.3-p194@global/bin:/usr/local/rvm/rubies/ruby-1.9.3-p194/bin:/usr/local/rvm/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/pgsql-9.1/bin:/root/bin

而且我仍然收到错误。

我需要更改顺序吗?如果是这样,有什么想法吗?


“ls /usr/pgsql-9.1/bin”的输出:

clusterdb droplang pg_archivecleanup pg_ctl pg_standby psql createdb dropuser pg_basebackup pg_dump pg_test_fsync reindexdb createlang ecpg pgbench pg_dumpall pg_upgrade vacuumdb createuser initdb pg_config pg_resetxlog postgres vacuumlo dropdb oid2name pg_controldata pg_restore postmaster

以及“which pg_dump”的输出:

/usr/bin/pg_dump


关于运行 cap 'deploy:migrate' 的错误消息:

 ** [out :: 46.4.9.199] pg_dump: server version: 9.1.4; pg_dump version: 8.4.11
 ** [out :: 46.4.9.199] pg_dump: aborting because of server version mismatch
 ** [out :: 46.4.9.199] rake aborted!
 ** [out :: 46.4.9.199] Error dumping database

“pg_dump --version”的输出:

pg_dump (PostgreSQL) 8.4.11

linux
  • 2 个回答
  • 24690 Views
Martin Hope
A4J
Asked: 2012-09-08 07:30:02 +0800 CST

安装 Vips 时出错

  • 1

我正在尝试安装Vips,我已经下载了最新的文件:

wget http://www.vips.ecs.soton.ac.uk/supported/current/vips-7.30.0.tar.gz

wget http://www.vips.ecs.soton.ac.uk/supported/current/nip2-7.30.1.tar.gz

然后./configure我得到:

configure: error: Package requirements (glib-2.0 >= 2.6 gmodule-2.0 >= 2.4 libxml-2.0 gobject-2.0) were not met:

No package 'glib-2.0' found
No package 'gmodule-2.0' found
No package 'gobject-2.0' found

但是我已经尝试yum install glib2并重新运行 ./configure 但得到了同样的错误。

难道我做错了什么?

centos6
  • 1 个回答
  • 1204 Views
Martin Hope
A4J
Asked: 2012-06-03 15:46:31 +0800 CST

如何验证 PostgreSQL 9 是否已在 CentOS 服务器上正确安装?

  • 1

我正在尝试在 CentoOS 服务器上安装 PG (postgres) gem,但它一直说 Postgres 太旧,即使我已将其升级到 9.1.3(按照此处的说明http://www.davidghedini。 com/pg/entry/install_postgresql_9_on_centos)。

我正在使用 CentOS 5.8(和 Ruby 1.9.3)

这是错误消息:

Building native extensions.  This could take a while...
ERROR:  Error installing pg:
    ERROR: Failed to build gem native extension.

        /usr/local/bin/ruby extconf.rb
checking for pg_config... yes
Using config values from /usr/bin/pg_config
checking for libpq-fe.h... yes
checking for libpq/libpq-fs.h... yes
checking for pg_config_manual.h... yes
checking for PQconnectdb() in -lpq... yes
checking for PQconnectionUsedPassword()... no
Your PostgreSQL is too old. Either install an older version of this gem or upgrade your database.
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers.  Check the mkmf.log file for more
details.  You may need configuration options.

psql --version 确认我的版本:psql (PostgreSQL) 9.1.3

我可以确认安装的包:

Setting up Install Process
Package postgresql91-9.1.3-1PGDG.rhel5.x86_64 already installed and latest version
Package postgresql91-devel-9.1.3-1PGDG.rhel5.x86_64 already installed and latest version
Package postgresql91-server-9.1.3-1PGDG.rhel5.x86_64 already installed and latest version
Package postgresql91-libs-9.1.3-1PGDG.rhel5.x86_64 already installed and latest version
Package postgresql91-contrib-9.1.3-1PGDG.rhel5.x86_64 already installed and latest version
Nothing to do

关于如何解决这个问题的任何想法?提前致谢。

centos postgresql rubygems
  • 3 个回答
  • 5955 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve