【发布时间】:2017-12-08 10:31:27
【问题描述】:
为什么“rstudio-server start”不起作用??
此时,即使在 stackoverflow 上,我也找不到任何有用的答案。 我从以下博客文章中反复检查了以下步骤 1-5 是否足以在 Ubuntu 上安装 Rstudio Server: https://www.r-bloggers.com/installing-rstudio-server-on-ubuntu-server/ http://www.joeroe.eu/blog/2015/08/rstudio-server-on-a-google-compute-engine-instance/ https://gist.github.com/rweald/4321052
这就是我所做的:
1.创建 Google Cloud 虚拟机
Google Cloud Compute Engine > 创建 VM 实例(在 Ubuntu 16.04 LTS 上)
2。安装 R
sudo nano /etc/sources.list
输入:
deb http://cran.rstudio.com/bin/linux/ubuntu xenial/
获取 ubuntu 的公钥:
sudo apt-key adv —keyserver keys.gnupg.net —recv-key 381BA480
sudo apt-get update
sudo apt-get install r-base libapparmor1
sudo apt-get install r-base
3.安装 Rstudio 服务器
sudo apt-get install gdebi-core
wget https://download2.rstudio.org/rstudio-server-1.0.143-amd64.deb
sudo gdebi rstudio-server-1.0.143-amd64.deb
4.在 Google Cloud 防火墙中打开 8787 端口
gcloud compute firewall-rules create allow-rstudio --allow tcp:8787
备注:我确实验证了 8787 端口是开放的: gcloud 计算防火墙规则列表 命名网络 SRC_RANGES 规则 SRC_TAGS TARGET_TAGS allow-rstudio 默认 0.0.0.0/0 tcp:8787 allow-rstudio
5.验证 Rstudio 服务器
无响应:http://:8787 >> 浏览器挂起
无响应:sudo rstudio-server verify-installation >> 命令执行,无消息
无响应:sudo rstudio-server restart >> 没有正在运行的进程重启(“rsession:找不到进程”)
无响应:sudo rstudio-server start >> 命令执行,无消息
感谢您为 RStudio Server 未运行提供任何周到的帮助。
【问题讨论】:
标签: r linux ubuntu google-compute-engine rstudio-server