【问题标题】:Code server (Visual Studio Code) on Google Cloud Engine - ERR_CONNECTION_REFUSEDGoogle Cloud Engine 上的代码服务器 (Visual Studio Code) - ERR_CONNECTION_REFUSED
【发布时间】:2020-09-01 21:06:49
【问题描述】:

我想设置一个安装了 VSCode 的谷歌云引擎机器。 我已经按照这个安装:https://fireship.io/lessons/vscode-cloud-coder-tensorflow/ 1. Ubuntu 20 LTS 2. wgethttps://github.com/codercom/code-server/releases/download/{version}/code-server-{version}-linux-x64.tar.gz 3. tar -xvzf 代码服务器-{版本}-linux-x64.tar.gz 4. cd code-server-{版本}-linux-x64 5. sudo ./code-server -p 80

输出是:

防火墙规则是:

当我浏览到http://EXTERNAL_IP:80

缺少什么来确保端口在服务器端是开放和可访问的?

谢谢, 爱拉兰

【问题讨论】:

  • 防火墙规则是否应用于“server-code-bazel-1”实例?
  • 就我而言,是的,但仍然无法访问我的 vscode。

标签: visual-studio-code google-cloud-platform


【解决方案1】:

我终于找到了适合我的方法。根据这里的答案:Error > Could not connect to Cloud Shell on port 8080 > While connecting the Visual Code using code-server

你需要在--host 0.0.0.0下运行code-server

$ PASSWORD=password PORT=8443 code-server --host 0.0.0.0

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2016-09-16
    • 1970-01-01
    • 1970-01-01
    • 2017-12-08
    • 1970-01-01
    • 2020-05-12
    • 1970-01-01
    • 2011-08-14
    相关资源
    最近更新 更多