我已按照本教程:Link在EC2 AWS实例上设置了一个闪亮的应用程序。
对于我的第一次尝试,我使用的是一个简单的闪亮应用。代码如下:
library(shiny)
# Global variables can go here
n <- 200
# Define the UI
ui <- bootstrapPage(
numericInput('n', 'Number of obs', n),
plotOutput('plot')
)
# Define the server code
server <- function(input, output) {
output$plot <- renderPlot({
hist(runif(input$n))
})
}
# Return a Shiny app object
shinyApp(ui = ui, server = server)
我已将脚本保存为app.R,并将密钥对放在与脚本相同的目录中。
一旦我运行ramazon功能,我得到:
WELL DONE!
YOU CAN FIND YOUR SHINY APP AT THE FOLLOWING URL:
35.177.231.89:3838/aws_shiny
Warning messages:
1: running command 'chmod 400 C:/Users/Bobi/Documents/aws_shiny/myname.pem' had status 127
2: running command 'chmod 700 bash_script.sh' had status 127
3: running command 'ssh -o StrictHostKeyChecking=no -v -i C:/Users/Bobi/Documents/aws_shiny/myname.pem ubuntu@35.177.231.89 'bash -s' < bash_script.sh' had status 127
4: running command 'exit' had status 127
5: running command 'scp -v -i C:/Users/Bobi/Documents/aws_shiny/myname.pem -r C:/Users/Bobi/Documents/aws_shiny ubuntu@35.177.231.89:/srv/shiny-server/' had status 127
任何想法状态127意味着什么?
答案 0 :(得分:0)
亚马逊大数据博客中提供了一个全面的博客文章Running R on AWS,它将指导您在AWS上安装和运行R,RStudio Server和Shiny Server。