当我通过 SSH 连接到我的 AWS Elastic Beanstalk 实例时找不到我的 Web 应用程序 [英] I can't find my Web app when I SSH to my AWS Elastic Beanstalk instance
本文介绍了当我通过 SSH 连接到我的 AWS Elastic Beanstalk 实例时找不到我的 Web 应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已经使用
eb ssh --setup
并且可以成功通过 SSH 连接到我的环境.但是我看不到我的 Web 应用程序.当我连接时,我发现自己在一个空目录 (ec2-user
) 中,当我
and can successfully SSH to my environment. But I can't see my Web application. When I am connected I find myself in an empty directory (ec2-user
) and when I
cd /home
我刚看到
drwx------ 3 ec2-user ec2-user 4096 Jan 15 21:37 ec2-user
dr-xr-xr-x 23 root root 4096 Jan 15 21:03 ..
drwxr-xr-x 3 root root 4096 Oct 22 23:29 .
我的 Web 应用程序位于何处?
Where is my Web application located?
推荐答案
做 $ sudo find/-name
找出.
例如:
$ sudo find / -name *.php
/var/lib/tomcat8/webapps/ROOT/info.php
/var/lib/tomcat8/webapps/ROOT/index.php
/tmp/deployment/application/ROOT/info.php
/tmp/deployment/application/ROOT/index.php
或者,如你所见,在 /var/lib/tomcat8/webapps/ROOT/
您会注意到,这取决于平台.以 Python 为例:
You will notice, it depends on the platform. Python for example:
$ sudo find / -name application.py
/opt/python/bundle/2/app/application.py
这篇关于当我通过 SSH 连接到我的 AWS Elastic Beanstalk 实例时找不到我的 Web 应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文