Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在旧的公司代理服务器后面使用 Ambari,它不允许通过 Accept-Encoding 标头。因此,Ambari 无法提供 javascript 或 css 文件。我怎样才能让它支持纯编码?
Ambari 构建过程会压缩所有资源并删除原始资源,这不是一件坏事,除非您正在处理诸如此类的旧代理。要创建相关资产的原始纯编码版本,将由 Ambari 中的内容协商自动提供,只需运行
for a in /usr/lib/ambari-server/web/{javascripts,stylesheets}/*.gz; do gzip -dc $a > ${a%.gz}; done
在您的 ambari-server 上作为 root 用户。