[翻译]  R- Shiny webserver on a local server

[CHINESE]  R-本地服务器上的Shiny webserver


I have a windows machine with IIS and I can see the IIS welcome page on http://myname/. I have recently started using Shiny through its own server and I can see shiny apps on http://127.0.0.1:port

我有一台带IIS的Windows机器,我可以在http:// myname /上看到IIS欢迎页面。我最近开始通过自己的服务器使用Shiny,我可以在http://127.0.0.1:port上看到闪亮的应用程序

Now my question is how can I allow others to see my shiny apps on http://myname:port ? (since 127.0.0.1 is not accessible from other computers). Is this possible with the free version of shiny?

现在我的问题是如何让其他人在http:// myname:port上看到我的闪亮应用? (因为无法从其他计算机访问127.0.0.1)。这有可能免费版闪亮吗?

3 个解决方案

#1


4  

You should make following:

你应该做以下事情:

  1. Find your IP ("ipconfig" from cmd prompt in Windows)
  2. 找到您的IP(Windows中的cmd提示符下的“ipconfig”)
  3. Set Shiny to start from port "XXXX" and your IP (instead of 127.0.0.1)

    设置Shiny从端口“XXXX”和您的IP(而不是127.0.0.1)开始

    For example:

    例如:

    options(shiny.port = 7775)

    选项(shiny.port = 7775)

    options(shiny.host = "192.0.0.45")

    选项(shiny.host =“192.0.0.45”)

  4. Run your App

    运行你的应用程序

    runApp(app)

    runApp(APP)

Make sure the port is opened in your firewall.

确保在防火墙中打开端口。

#2


0  

The comments have already said this, but in the interest of providing an answer:

评论已经说过了,但为了提供答案:

You can use shiny server (free and pro) to host apps on your own server. I believe this will allow you to set it up on http://myname/, however shiny server should be running in a linux environment as listed by @pops.

您可以使用闪亮的服务器(免费和专业版)在您自己的服务器上托管应用程序。我相信这将允许你在http:// myname /上进行设置,但是闪亮的服务器应该在@pops列出的linux环境中运行。

https://www.rstudio.com/products/shiny/shiny-server/

https://www.rstudio.com/products/shiny/shiny-server/

Or

要么

you can use shiny.io to host them for you, with premium versions having the ability to set your own domain

您可以使用shiny.io为您托管它们,高级版本可以设置您自己的域

https://www.shinyapps.io/

https://www.shinyapps.io/

#3


0  

When using Shiny localy the library set a server in which you can access the Shiny application. If you want to make it accesible on a LAN you have to set up a Shiny server.

使用Shiny localy时,库会设置一个服务器,您可以在其中访问Shiny应用程序。如果您想在LAN上访问它,您必须设置一个Shiny服务器。

You will need a Linux server with R and Shiny instaled, in addition to all the libraries your application needs. To configure it you can follow this

除了应用程序所需的所有库之外,您还需要一个具有R和Shiny instaled的Linux服务器。要配置它,您可以按照此操作

Once the server is totally configured you can add your own applications to the server adding the the applications to the folder:

完全配置服务器后,您可以将自己的应用程序添加到服务器,将应用程序添加到该文件夹​​:

/srv/Shiny-server/myApp

/ SRV /闪亮的服务器/对myApp

And will be available inyourServerAddress:3838/myApp

并将在inyourServerAddress:3838 / myApp中提供


注意!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系我们删除。



 
© 2014-2018 ITdaan.com 粤ICP备14056181号