官方下载地址:https://posit.co/download/rstudio-server/
root账号安装:
wget https://download2.rstudio.org/server/rhel9/x86_64/rstudio-server-rhel-2024.09.1-394-x86_64.rpm
yum install rstudio-server-rhel-2024.09.1-394-x86_64.rpm
安装openssl11库
dnf install compat-openssl11
开通8787端口
sudo firewall-cmd --query-port=8787/tcp
sudo firewall-cmd --zone=public --add-port=8787/tcp --permanent
sudo firewall-cmd --reload
sudo firewall-cmd --zone=public --list-ports
#selinux设置
sudo setenforce 0
设置使用的R版本:
vi /etc/rstudio/rserver.conf
#设置内容如下:
# Server Configuration File
rsession-which-r=/share/biosoft/R/latest/bin/R
启动R 服务:
rstudio-server start #启动RStudio
rstudio-server status #查看RStudio状态
sudo systemctl status rstudio-server.service #查看状态 sudo systemctl start rstudio-server.service #启动服务 sudo systemctl enable rstudio-server.service #开机启动
如果觉得我的文章对您有用,请随意打赏。你的支持将鼓励我继续创作!