0

我正在尝试在亚马逊 ec2 上的微型实例上获得一个工作应用程序。

我一直在使用从http://trestletechnology.net/2013/02/deploying-shiny-server-on-amazon-ec2/的博客文章中找到的 ami (ami-e2a3358b)

我一直在学习如何使用 EC2,但这对我来说是新的。我正在使用 putty 和 winSCV 连接到机器。

现在我想我正处于想要制作配置文件并将我的应用程序放在 ShinyApps 文件夹中的阶段。我已经阅读了 /shiny-server 中的 config.html,但我在将所有部分放在一起时遇到了一些麻烦。我也看过http://rstudio.github.io/shiny-server/latest/但我还没有完全弄清楚。

我只想拥有一个 ShinyApps 文件夹,我可以将我的应用程序放入一个 shiny-server.conf 文件中,该文件将识别该文件夹的位置。

我需要在 /shiny-server 目录中放入什么配置文件?想把这个配置文件的 ShinyApps 文件夹放在哪里?我想在 url 栏中输入以访问应用程序的最终地址(和端口?)是什么?

感谢您的任何回复。如果我还没有从无知中清除它,那么请帮助我并问我一个问题是否需要详细说明。

4

1 回答 1

1

我在 /etc/shiny-server/shiny-server.conf 添加了一个 conf 文件

john@ubuntu:~$ more /etc/shiny-server/shiny-server.conf
# Define the user we should use when spawning R Shiny processes
run_as shiny;

# Define a top-level server which will listen on a port
server {
  # Instruct this server to listen on port 3838
  #listen 3838 127.0.0.1;
  listen 3838;

  location /userApps {
    user_apps;
    directory_index on;
  }
}

然后例如用户 john 只需要在他们的主目录中有一个 Shinyapps 目录。[2014-03-18 17:43:01.113] [INFO] shiny-server - Shiny Server v0.4.0.15 (Node.js v0.10.21) 现在可能不同了。

于 2014-03-19T01:38:39.650 回答