【问题标题】:Issue while installing wiki js安装wiki js时出现问题
【发布时间】:2021-07-01 01:36:09
【问题描述】:

我一直在尝试使用 Apache 2 安装 Wiki js

在执行命令时:

curl -sSo- https://wiki.js.org/install.sh | bash

收到此错误:

bash: line 1: Redirecting: command not found

如何避免这种情况并执行命令?

【问题讨论】:

    标签: javascript wiki.js


    【解决方案1】:

    curl https://wiki.js.org/install.sh 返回一个 301 状态代码,其中 location 标头设置为 https://js.wiki/install.sh'Redirecting to https://js.wiki/install.sh' 的响应,该响应通过管道传输到 bash 导致错误。

    $ curl -I https://wiki.js.org/install.sh
    HTTP/2 301 
    cache-control: public, max-age=0, must-revalidate
    content-length: 42
    content-type: text/plain; charset=utf-8
    date: Mon, 05 Apr 2021 06:09:59 GMT
    age: 102
    server: Netlify
    location: https://js.wiki/install.sh
    x-nf-request-id: 73d12771-c0d3-4850-ace1-6abe963652e2-7616135
    

    您可以使用-L 标志指示curl 跟踪重定向。

    curl -sL https://wiki.js.org/install.sh | bash
    

    或者您可以从https://js.wiki/install.sh 获取脚本并将其通过管道传输到bash

    curl -s https://js.wiki/install.sh | bash
    

    【讨论】:

      猜你喜欢
      • 2019-01-13
      • 2021-04-05
      • 1970-01-01
      • 2017-02-24
      • 1970-01-01
      • 1970-01-01
      • 2012-03-22
      • 2021-01-14
      • 2019-01-14
      相关资源
      最近更新 更多