无法访问 Red Hat Linux Server 中的 UI 组件

Posted

技术标签:

【中文标题】无法访问 Red Hat Linux Server 中的 UI 组件【英文标题】:Unable to access UI components in Red Hat Linux Server 【发布时间】:2021-03-18 06:12:53 【问题描述】:

我无法访问 gramex 中的 UI 组件。我尝试了所有我知道的东西。我正在使用 Red Hat Linux 服务器。 我在日志中收到以下警告:

禁止“/home/gramex/.local/lib/python3.7/site-packages/gramex/apps/ui/node_modules/bootstrap-select/dist/css/bootstrap-select.min.css”。它匹配“.*”

【问题讨论】:

【参考方案1】:

这是因为 Gramex 安装在 /home/gramex/.local/lib/python3.7/site-packages/gramex 下。

请注意 `/.local/" 中的点 (.)。FileHandler ignores paths beginning with dot。

解决方案 #1:请将 Anaconda / Python 安装在没有. 的路径中。

解决方案 #2:将此添加到 gramex.yaml

# This is the default Gramex configuration.
# Copy it to your gramex.yaml and comment out the line mentioned below:
handlers:
  FileHandler:
    ignore:
      # Comment out or remove the next line
      # - ".*"                    # Hide dotfiles
      - gramex*.yaml              # Always ignore gramex config files
      - "*.py*"                   # Hide Python scripts

【讨论】:

以上是关于无法访问 Red Hat Linux Server 中的 UI 组件的主要内容,如果未能解决你的问题,请参考以下文章