我已经使用 SSH 设置到我的 AWS Elastic Beanstalk 实例
eb ssh --setup
并且可以成功通过 SSH 连接到我的环境。但是我看不到我的 Web 应用程序。当我连接时,我发现自己在一个空目录(
ec2-user
)中,当我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 应用程序位于何处?
最佳答案
做 $ sudo find / -name <insert main file name here>
找出答案。
例如:
$ 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 为例:
$ sudo find / -name application.py
/opt/python/bundle/2/app/application.py
关于amazon-web-services - 当我通过 SSH 连接到我的 AWS Elastic Beanstalk 实例时,我找不到我的 Web 应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27973619/