试图托管我闪亮的应用程序,让每个人都能看到闪亮的服务器

时间:2018-04-16 18:14:07

标签: shiny ubuntu-16.04 web-hosting shiny-server

修改

由于没有人回答我猜我可能没有以正确的方式陈述我的问题,所以我决定试一试并添加this youtube video作为问题的一部分。希望它澄清我的问题。

大家好:

我是一个长期的R和闪亮的用户,但是第一次没有经验的闪亮服务器用户。我正在尝试主持一个闪亮的应用程序,我试图按照thread中的讨论,但仍然无法弄清楚,到目前为止,我将监听端口从3838更改为80该线程还试图访问" /etc/httpd/conf/httpd.conf"如线程中所示的文件夹,但它在我的ubuntu中不存在。

我的应用程序在本地运行良好,我可以通过在浏览器中键入http://146.155.169.145/Example/来查看它,但是当我尝试从其他计算机访问它时我不能,它表示连接超时如下所示。如上所述,我在R和Shiny方面有很多经验,但我对托管知之甚少。

enter image description here

我的shiny-server.conf如下:

# Instruct Shiny Server to run applications as the user "shiny"
run_as shiny;

# Define a server that listens on port 3838
server {
  listen 80;

  # Define a location at the base URL
  location / {

    # Host the directory of Shiny Apps stored in this directory
    site_dir /srv/shiny-server;

    # Log all Shiny output to files in this directory
    log_dir /var/log/shiny-server;

    # When a user visits the base URL rather than a particular application,
    # an index of the applications available in this directory will be shown.
    directory_index on;
  }
}

我正在使用ubuntu 16.04

如果我能为您提供更多信息,请告诉我

由于

1 个答案:

答案 0 :(得分:0)

我不认为问题是内存或计算机,因为我就像是受到路由器或防火墙的保护。如果您有路由器,则需要设置非军事区或类似方法并允许传入连接(如果您的计算机在您家中更直接,因为在大学有代理和防火墙)。您是否尝试过Dean Attali在其网页上提出的建议? https://deanattali.com/2015/05/09/setup-rstudio-shiny-server-digital-ocean/

也许你可以尝试这样的东西,但如果你想租用虚拟服务器(VPS)需要知道这个服务器是否可以运行R,一些VPS只适用于网页服务器。

相关问题