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-213315

remudada's questions

Martin Hope
remudada
Asked: 2019-01-02 01:22:10 +0800 CST

将 Elastic Beanstalk 服务器移至其他区域,并且无法再访问 s3 存储桶

  • 0

我最近将我的 Elastic Beanstalk 实例从east1 移到了east2。但是east1里还有一堆私有的bucket。现在我的代码抛出错误并拒绝连接到整个区域的存储桶。我收到这个错误

s3.list_objects(bucket:'mp3list') *** Aws::S3::Errors::PermanentRedirect Exception

有没有办法让位于不同区域中的 VPC 后面的 Elastic Beanstalks 访问不同区域中的私有存储桶?

amazon-web-services
  • 1 个回答
  • 98 Views
Martin Hope
remudada
Asked: 2016-06-01 02:34:59 +0800 CST

如何使用 find exec 命令将错误定向到日志文件

  • 0

嗨,我有以下命令可以进行 yui 优化并作为 cron 作业运行。我想将命令的输出记录到日志文件中。

find . -type d -exec bash -c "cd '{}' && pwd && java -jar /opt/yui/yui.jar -o '.css$:.css' *.css" \; > log

此命令记录 find 的输出,但不记录 yui.jar 的输出。记录到控制台。有什么办法可以将它记录到同一个文件中?

logging bash find exec
  • 2 个回答
  • 372 Views
Martin Hope
remudada
Asked: 2016-02-04 22:56:20 +0800 CST

在同一台服务器上运行 Hudson、Sonar 和 HA 代理

  • 0

我在同一台服务器上运行 Hudson、Sonar 和 HA 代理(这样做是为了 POC,因此无法访问多个服务器。

我正在使用 HAProxy 为两台服务器启用 SSL。

我可以使用来自主机的以下 URL 127.0.0.1:9000/sonar 和 127.0.0.1:8088/hudson 在本地访问这些服务器中的每一个

但是当我尝试使用 https:/52.XXX/sonar 或 https:/52.XXX/hudson 远程访问服务器时,我得到了

No data received
ERR_EMPTY_RESPONSE

如果我将 a 添加default_backend sonar到 HAProxy 配置中,我可以运行声纳但不能运行 hudson,反之亦然。

我的 HAProxy 配置是这样的

global
    log 127.0.0.1 local2
    tune.ssl.default-dh-param 2048

defaults
    mode tcp
    # Set timeouts to your needs
    timeout client  1h
    timeout connect 1h
    timeout server  1h
    option http-server-close

frontend http
    mode http
    bind *:80
    compression algo gzip
    redirect scheme https if !{ ssl_fc }

frontend https
    mode tcp
    bind *:443 ssl crt /etc/haproxy/buildserver.pem
    compression algo gzip

    use_backend sonar if { path_beg /sonar }
    use_backend hudson if { path_beg /hudson }

backend sonar
    server srv_sonar localhost:9000

backend hudson
    server srv_hudson localhost:8088

任何有关让声纳/哈德逊运行的帮助将不胜感激。

编辑有效的最终配置文件

global
    log 127.0.0.1 local2
    tune.ssl.default-dh-param 2048

defaults
    mode http
    # Set timeouts to your needs
    timeout client  1h
    timeout connect 1h
    timeout server  1h
    option http-server-close

frontend http
    bind *:80
    compression algo gzip
    redirect scheme https if !{ ssl_fc }

frontend https
    bind *:443 ssl crt /etc/haproxy/buildserver.pem
    compression algo gzip

    use_backend sonar if { path_beg /sonar }
    use_backend hudson if { path_beg /hudson }

backend sonar
    server srv_sonar localhost:9000

backend hudson
    server srv_hudson localhost:8088
ssl
  • 1 个回答
  • 498 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