0

我部署了一个rails应用程序到一个弹性beanstalk应用程序,并且当我试图启动我的应用程序时,我遇到了Phusion Passenger超时。Elastic beanstalk和httpd.conf文件?

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'd到我的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 

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

+0

你能解释一下你如何ssh你的aws弹性beanstalk服务器为您的以下rails应用程序? –

回答

2

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

$ ps -ef | grep nginx 

而且,你的应用程序目录应该是在/ var /应用/电流

希望这有助于。