简体   繁体   English

在AWS EC2实例上安装RStudio

[英]Install RStudio on AWS EC2 instance

I managed to create an EC2 instance Amazon Linux AMI 2017.09.1 (randomly chosen) on Amazon Web Services ( AWS ). 我设法在Amazon Web ServicesAWS )上创建了EC2实例Amazon Linux AMI 2017.09.1 (随机选择)。 I can send and receive files from my local desktop to AWS properly. 我可以将文件从本地桌面正确发送到AWS

Now I would like to install R ( RStudio Server ) on AWS . 现在,我想在AWS上安装RRStudio服务器 )。 When searching for an answer, I found the script below that is to be written into Putty : 在寻找答案时,我发现下面的脚本要写入Putty中

# install R base
$ sudo yum install r-base

#install RStudio-Server 1.1.442
$ sudo yum install gdebi-core
$ wget https://download2.rstudio.org/rstudio-server-1.1.442-amd64.deb
$ sudo gdebi rstudio-server-1.1.442-amd64.deb

#add user(s)
useradd username
echo username:password | passwordtest

But the answer I get each time is: "No package r-base available" or also "No package gdebi-core available". 但是我每次得到的答案是:“没有可用的软件包r-base”或“没有可用的软件包gdebi-core”。

Are they some prerequisite steps that I am missing? 他们是我缺少的一些必要步骤吗? Thanks. 谢谢。 M 中号

Amazon Linux AMI 2017.09.1 is based on Centos 6 and the step you got is for Ubuntu(gdebi is an Ubuntu installer), Here are the steps from the official documentation. Amazon Linux AMI 2017.09.1基于Centos 6,您获得的步骤适用于Ubuntu(gdebi是Ubuntu安装程序),以下是官方文档中的步骤

$ sudo yum install R
$ wget https://download2.rstudio.org/rstudio-server-rhel-1.1.442-x86_64.rpm
$ sudo yum install rstudio-server-rhel-1.1.442-x86_64.rpm

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM