Rstudio-server

作者: YX_Andrew | 来源:发表于2019-03-08 20:03 被阅读12次

    需要sudo权限

    装R

    sudo yum install -y epel-release
    sudo yum install -y R
    

    安装Rstudio

    #安装Rstudio
    wget 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 verify-installation
    $ rstudio-server status
    

    修改防火墙
    默认防火墙是关闭8787窗口,需要手动开启这个端口,RHEL 7系统采用systemctl命令来进行处理。

    systemctl enable rstudio-server.service
    systemctl start rstudio-server.service
    systemctl status rstudio-server
    firewall-cmd --permanent --add-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-all|kill-session|kill-all|offline|online|active-sessions|version}
    
    $ rstudio-server restart
    

    相关文章

      网友评论

        本文标题:Rstudio-server

        本文链接:https://www.haomeiwen.com/subject/nkudpqtx.html