【发布时间】:2018-05-04 12:05:05
【问题描述】:
编辑
由于没有人回答,我想我可能没有正确地说明我的问题,所以我决定试一试,并在问题中添加 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
如果我可以提供更多信息,请告诉我
谢谢
【问题讨论】:
-
检查您的服务器的防火墙是否阻止了您指定的端口。上次我进行
shiny-server设置时,这是我遇到的唯一问题。 -
Tnaks @GregordeCilia 我是否需要询问我机构中的某个人,或者有什么方法可以从终端检查是否有任何防火墙阻止它?
-
TBH,我真的不是 linux 专业人士,自从我进行此设置以来已经过去了很长一段时间。也许查看here 以检查哪些端口被阻止。不过,在防火墙上打开端口肯定需要 root 权限。
-
您好,当您尝试在另一台计算机上运行您的应用程序时,您究竟看到了什么错误?是不是变灰了?
-
抱歉耽搁了@Bogaso 我现在在问题中添加了它,它说连接超时,我已经从不同的计算机上尝试过
标签: shiny ubuntu-16.04 web-hosting shiny-server