gpt4 book ai didi

linux - 如何通过 FileZilla 谷歌计算引擎上传文件

转载 作者:塔克拉玛干 更新时间:2023-11-03 00:58:15 26 4
gpt4 key购买 nike

我是 Google Compute Engine 的新手。我已经安装了 Apache 和 MySQL,但我一直无法在 FileZilla 中找到连接服务器的方法。我怎么做?另外,我怎样才能访问 phpMyAdmin?

最佳答案

对于 FileZilla,您应该按照 FileZilla wiki 中的说明使用 sftp .另见 related question关于将文件上传到您的实例的替代方法,并确保端口 22 在您的防火墙中打开,如 this answer 中所述.

对于 phpMyAdmin,考虑使用 ssh tunnel .要创建隧道,您只需通过 gcutil 将正确的参数传递给 ssh,其中 $A 是本地端口(必须未使用在你的本地机器上)并且 $B 是远程端口(即 phpMyAdmin 在远程主机上监听的端口):

gcutil --project=[...] ssh --ssh_arg -L$A:localhost:$B <instance-name>

然后,您可以连接到 localhost:$A,它将正常工作。

关于linux - 如何通过 FileZilla 谷歌计算引擎上传文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23495021/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com