【问题标题】:Elastic beanstalk and httpd.conf file? [closed]弹性 beanstalk 和 httpd.conf 文件? [关闭]
【发布时间】:2014-03-19 04:03:56
【问题描述】:

我将一个 rails 应用程序部署到一个弹性 beanstalk 应用程序,当我尝试启动我的应用程序时,我遇到了 Phusion Passenger 超时。

The following instances have not responded in the allowed command timeout time (they might still finish eventually on their own): [i-d3fc9cf2].

我读到我可以通过修改 httpd.conf 文件来延长超时时间,但我正在疯狂地试图找到它。我已经 ssh 进入我的 ec2 实例,但我无法在任何地方找到 httpd/apache 文件夹或文件。

这是我的 /etc 文件夹,我期待一个 httpd 文件夹:

[etc]$ ls
acpi               crontab                  fstab        issue           man.config      pm           rpc           sudoers
adjtime            cron.weekly              gai.conf     issue.net       maven           popt.d       rpm           sudoers.d
aliases            csh.cshrc                gcrypt       java            mime.types      ppp          rsyslog.conf  sudo-ldap.conf
aliases.db         csh.login                gemrc        jvm             mke2fs.conf     printcap     rsyslog.d     sysconfig
alternatives       dbus-1                   ghostscript  jvm-commmon     modprobe.d      profile      rwtab         sysctl.conf
anacrontab         default                  gnupg        krb5.conf       motd            profile.d    rwtab.d       system-release
asound.conf        depmod.d                 group        kshrc           motd.rpmsave    protocols    sasl2         system-release-cpe
at.deny            dhcp                     group-       ld.so.cache     mtab            racoon       screenrc      terminfo
audisp             DIR_COLORS               grub.conf    ld.so.conf      my.cnf          rc           securetty     tmpfiles.d
audit              DIR_COLORS.256color      gshadow      ld.so.conf.d    nanorc          rc0.d        security      udev
bash_completion.d  DIR_COLORS.lightbgcolor  gshadow-     libaudit.conf   NetworkManager  rc1.d        services      update-motd.d
bashrc             dracut.conf              host.conf    libreport       networks        rc2.d        shadow        vimrc
blkid              dracut.conf.d            hosts        libuser.conf    nsswitch.conf   rc3.d        shadow-       virc
cfn                dumpdates                hosts.allow  localtime       ntp             rc4.d        shells        wgetrc
chkconfig.d        e2fsck.conf              hosts.deny   login.defs      ntp.conf        rc5.d        skel          X11
cloud              elasticbeanstalk         image-id     logrotate.conf  openldap        rc6.d        smrsh         xdg
cron.d             environment              init         logrotate.d     opt             rc.d         ssh           xinetd.d
cron.daily         ethers                   init.d       lvm             pam.d           rc.local     ssl           yum
cron.deny          exports                  inittab      magic           passwd          rc.sysinit   statetab      yum.conf
cron.hourly        filesystems              inputrc      mail            passwd-         resolv.conf  statetab.d    yum.repos.d
cron.monthly       fonts                    iproute2     mailcap         pki             rmt          sudo.conf

也试过了,但没有:

[etc]$ ps -ef | grep apache
ec2-user  3987  3543  0 02:53 pts/0    00:00:00 grep apache

我在这里做错了什么?前几天我的应用程序运行良好,但由于我推出了一些更新,我遇到了这个问题。我恢复了它们,它仍然是时间。

【问题讨论】:

  • 您能否解释一下您是如何为您的以下 Rails 应用程序 ssh 的 aws elastic beanstalk 服务器?

标签: ruby-on-rails apache amazon-web-services amazon-ec2 amazon-elastic-beanstalk


【解决方案1】:

Elastic Beanstalk Rails 堆栈运行 nginx,而不是 Apache。试试:

$ ps -ef | grep nginx

另外,你的 app 目录应该在 /var/app/current 下

希望这会有所帮助。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-08-25
    • 1970-01-01
    • 2015-05-04
    • 2016-09-05
    • 2020-08-08
    • 2020-08-16
    相关资源
    最近更新 更多