日常记录

Rstudio-server

2019-03-08  本文已影响12人  YX_Andrew

需要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
上一篇下一篇

猜你喜欢

热点阅读