编辑
由于没有人回答,我猜我可能没有以正确的方式陈述我的问题,所以我决定尝试一下,并将this youtube video作为问题的一部分。希望它能澄清我的问题。
大家好:
我是一个长期的R和闪亮的用户,但第一次闪亮的服务器用户,几乎没有经验。我正在尝试托管一个闪亮的应用程序,我试图遵循这个thread中的讨论,但仍然无法弄清楚,到目前为止,我按照线程中的建议将侦听端口从3838更改为80,并尝试访问线程中所示的"/etc/httpd/conf/httpd.conf“文件夹,但它不存在于我的ubuntu中。
我的应用程序在本地运行良好,我可以通过在浏览器中输入http://146.155.169.145/Example/看到它,但当我试图从其他计算机访问它时,它会显示连接超时,如下所示。如上所述,我在R和Shiny方面有很多经验,但我对托管了解不多。

我的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
如果我能给你更多信息,请告诉我
谢谢
发布于 2018-05-04 12:05:06
我不认为问题出在内存或你的电脑上,对我来说,你就像是受到路由器或防火墙的保护。如果你有一台路由器,你需要设置一个非军事区或类似的方法,并允许传入连接(如果你的计算机在你家里更直接,因为在大学里有代理和防火墙)。你有没有尝试过像迪恩·阿塔利在他的网页上提出的那样的东西?https://deanattali.com/2015/05/09/setup-rstudio-shiny-server-digital-ocean/
也许你可以尝试这样的东西,但如果你想租用一个虚拟服务器(VPS)需要知道这个服务器是否可以运行R,一些VPS只用于网页服务器。
https://stackoverflow.com/questions/49863782
复制相似问题