嘟嘟社区

有没有大佬知道如何实现的


  1. [email protected]:~# wget https://get.casaos.io
  2. –2022-07-09 11:58:12–  https://get.casaos.io/
  3. Resolving get.casaos.io (get.casaos.io)… 52.4.179.196
  4. Connecting to get.casaos.io (get.casaos.io)|52.4.179.196|:443… connected.
  5. HTTP request sent, awaiting response… 301 Moved Permanently
  6. Location: https://raw.githubusercontent.com/IceWhaleTech/get/main/get.sh [following]
  7. –2022-07-09 11:58:12–  https://raw.githubusercontent.com/IceWhaleTech/get/main/get.sh
  8. Resolving raw.githubusercontent.com (raw.githubusercontent.com)… 2606:50c0:8000::154, 2606:50c0:8001::154, 2606:50c0:8002::154, …
  9. Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|2606:50c0:8000::154|:443… failed: No route to host.
  10. Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|2606:50c0:8001::154|:443… failed: No route to host.
  11. Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|2606:50c0:8002::154|:443… failed: No route to host.
  12. Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|2606:50c0:8003::154|:443… failed: No route to host.
  13. Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|185.199.111.133|:443… connected.
  14. HTTP request sent, awaiting response… 200 OK
  15. Length: 20546 (20K) [text/plain]
  16. Saving to: ‘index.html.1’

复制代码

有没有大佬知道这个如何实现的

这个不就是wget

wget https://get.casaos.io/ 网站地址,然后跳转到了https://raw.githubusercontent.com/IceWhaleTech/get/main/get.sh

一个301不就解决了吗

netsky 发表于 2022-7-9 12:07
wget https://get.casaos.io/ 网站地址,然后跳转到了https://raw.githubusercontent.com/IceWhaleTech/g …

301 Moved Permanently