Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/google-cloud-platform/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在谷歌云虚拟机上登录R Studio时出错:无法连接到服务_R_Google Cloud Platform_Virtual Machine - Fatal编程技术网

在谷歌云虚拟机上登录R Studio时出错:无法连接到服务

在谷歌云虚拟机上登录R Studio时出错:无法连接到服务,r,google-cloud-platform,virtual-machine,R,Google Cloud Platform,Virtual Machine,我想通过谷歌云平台在虚拟机上运行Rstudio。一切似乎都正常,但当我登录到RStudio时,我收到一个“RStudio初始化错误”:“无法连接到服务”。我的用户名和密码是正确的,就好像它们错了一样,这告诉我是这样的 我在笔记本电脑上使用RStudio创建了这个实例。我曾尝试在谷歌云平台中添加一条规则,允许所有人访问IP地址,但没有成功 #My Code library(googleComputeEngineR) #Setup ------------ project <- "r-be

我想通过谷歌云平台在虚拟机上运行Rstudio。一切似乎都正常,但当我登录到RStudio时,我收到一个“RStudio初始化错误”:“无法连接到服务”。我的用户名和密码是正确的,就好像它们错了一样,这告诉我是这样的

我在笔记本电脑上使用RStudio创建了这个实例。我曾尝试在谷歌云平台中添加一条规则,允许所有人访问IP地址,但没有成功

#My Code

library(googleComputeEngineR)

#Setup ------------
project <- "r-bench"
zone <- "europe-west1-b"
account_key <- "gcs-key.json"

Sys.setenv(GCE_AUTH_FILE = account_key,
           GCE_DEFAULT_PROJECT_ID = project,
           GCE_DEFAULT_ZONE = zone)

gce_auth()

#Set our default global project
gce_global_project(project)
gce_global_zone(zone)

default_project <- gce_get_project("r-bench")
default_project$name

#Deploy instance
vm <- gce_vm(template = "rstudio",
             name = "rstudio-demo",
             username = "rstudio",
             password = "xxxxxxxx",
             predefined_type = "n1-standard-1")
#我的代码
图书馆(谷歌计算引擎)
#设置------------

项目如果我没有弄错,则使用rstudio是保留名称,不允许作为用户名。

如果我没有弄错,则使用rstudio是保留名称,不允许作为用户名