Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/image-processing/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
R 服务器配置工作不正常_R_Shiny - Fatal编程技术网

R 服务器配置工作不正常

R 服务器配置工作不正常,r,shiny,R,Shiny,我正在尝试设置一个闪亮的服务器,在那里我想显示我闪亮的应用程序,我有一个配置文件,看起来像这样 # Instruct Shiny Server to run applications as the user "shiny" run_as shiny; # Define a server that listens on port 3838 server { listen 3838; # Define a location at the base URL location / {

我正在尝试设置一个闪亮的服务器,在那里我想显示我闪亮的应用程序,我有一个配置文件,看起来像这样

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

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

  # 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;
  }

  location /app {

    app_dir /srv/shiny-server/role-mining-app;

 }
}
我的想法是,最初我希望在url
{url}:{port}/app
下为我的应用程序提供服务,但使用这些配置无法加载

我已经检查了目录路径是否同时服务于
server.r
ui.r
文件,并且我已经检查了项目是否可以在r-studio中正确运行