[R语言 学习笔记]centos7 源码安装R和Rstudio server
本文详述了如何在centos7 docker中安装R和Rstudio server,实现随时随地管理自己的R项目并于他人共享,也适用于centos7版本裸机。
# 安装R
# 下载R并解压
wget http://mirrors.ustc.edu.cn/CRAN/src/base/R-3/R-3.6.2.tar.gz
tar -zvxf R-3.6.2.tar.gz
cd R-3.6.2
1
2
3
2
3
# 安装依赖包
yum groupinstall "Development Tools" -y
yum install -y xz-devel zlib2-devel Xt-devel pcre-devel libcurl-devel openssl-devel readline-devel java java-devel tcl-devel tk-devel
1
2
2
# 安装
./configure --enable-R-shlib make && make install
1
# 安装rstudio server
# 下载并安装
wget https://download2.rstudio.org/rstudio-server-rhel-1.1.463-x86_64.rpm
yum install rstudio-server-rhel-1.1.463-x86_64.rpm -y
1
2
2
# 设置端口为80
echo "www-port=80" >> /etc/rstudio/rserver.conf systemctl restart rstudio-server
1
# 启动rstudio server
systemctl enable rstudio-server # 开机启动
systemctl start rstudio-server # 启动服务
1
2
2
上次更新: 2024/03/11, 23:50:27