便宜VPS主机精选
提供服务器主机评测信息

CentOS 7系统如何安装Rstudio-server

       不知道如何配置,下面介绍一下CentOS 7系统如何安装Rstudio-server:

  安装R

  Ubuntu系统中安装R比较麻烦相反在RHEL 7中安装要容易很多,并且Ubuntu安装r-base并不是最新版本的,但在RHEL 7中,只需添加epel的源并通过yum即可安装最新版的。

  yum install-y epel-release

  yum install-y R

  安装Rstudio

  选择安装免费版的R-server,同时选择使用CentOS系统64位版本。

  Our https://download2。.rstudio.org/rstudio-server-rhel-1.1.463-x86_64.rpm

  sudo yum install rstudio-server-rhel-1.1.463-x86_64.rpm

  校验安装是否成功

  $rstudio server verification installation

  $rstudio-server status

  修改防火墙

  默认防火墙是关闭8787窗口,需要手动开启这个端口,采用systemctl进行处理。

  SYSTEMCTL enables rstudio-server.service

  Systemctl starts the research server.service

  systemctl status rstudio-server

  Firewall-cmd–Permanently add a port=8787/TCP

  Firewall CMD–permanent–add port=8787/UDP

  firewall-cmd–reload

  重启Rstudio-server

  $rstudio-server

  Usage:Rstudio-server{status|start|stop|restart|test-config|verify-installation|suspend-session|suspend-all|force-suspend-session|force-suspend-session|all|-kill|session-all|offline|active-sessions|version|}

  $rstudio-server restart

  通过浏览器登录Rstudio

  不能使用管理员账户登录Rstudio,这是我们因为root账户读写权限太大,会把信息系统目录写的很乱,因此对于很多工作程序禁止使用网络管理员账户使用,如配置不成功可以提交华纳云工单或者联系在线客服。

未经允许不得转载:便宜VPS测评 » CentOS 7系统如何安装Rstudio-server