Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想标题并不完全准确。我能够登录到一个实例,但在任何目录中都看不到我的应用程序。我的感觉是我正在进入错误的目录。
有人对这个有经验么?谢谢。
当您通过 ssh 进入您的 AWS 实例时,您将进入您的主目录,就像您在运行自己的服务器一样。从终端,尝试输入:
pwd
您可能会看到如下内容:
/home/ec2-user
请注意,这是您的主目录,而不是您的应用程序目录。换句话说,您的文档根目录(Web 应用程序以 /index.php 开头的位置)可能类似于 /var/www/html,因此请尝试键入:
cd /var/www/html ls
“ls”命令显示了这个目录的内容。这里是您构建 Web 应用程序的地方。