通过浏览器访问RStudio

时间:2020-07-11 15:11:36

标签: r linux browser ubuntu-18.04 rstudio-server

我在Linux服务器Ubuntu 18.04上安装了RStudio,但无法从浏览器访问它。我用了 :8787,我得到了错误

This site can’t be reached
ERR_CONNECTION_TIMED_OUT

我无法使用防火墙,但仍然存在相同的错误。当我跑步

$sudo rstudio-server verify-installation

我出错了

11 Jul 2020 14:53:12 [rsession-rstudio-server] ERROR system error 13 (Permission denied) [path: 
/home/rstudio-server/.config/rstudio/dictionaries/custom, target-dir: ]; OCCURRED AT 
rstudio::core::Error rstudio::core::FilePath::createDirectory(const string&) const 
src/cpp/shared_core/FilePath.cpp:634; LOGGED FROM: std::vector<std::__cx

我对Linux和Rstudio都是陌生的。任何帮助解决这个问题 谢谢

1 个答案:

答案 0 :(得分:0)

您使用哪个版本的RStudio服务器?

我在Ubuntu 18.04上的(1.3.959)上遇到了类似的问题。我安装了来自https://rstudio.com/products/rstudio/download-server/debian-ubuntu/的最新版本。

wget https://download2.rstudio.org/server/bionic/amd64/rstudio-server-1.3.1056-amd64.deb
sudo gdebi rstudio-server-1.3.1056-amd64.deb

之后,我还需要重新启动apache2.service:

systemctl restart apache2.service
$ rstudio-server version
1.3.1056 (Water Lily) for Ubuntu Bionic

然后工作正常。

很好的消息来源: