开源地址:https://github.com/cloudflare/cloudflared
找到并下载合适你系统的程序,例如我的是处理器是arm的 就找到arm版本
直接启动(直接获得一个随机域名):
cloudflared tunnel --url localhost:80
如果需要自定义域名(准备一个cloudflare账号并开通tunnel 绑定好域名)
①首先是登录:
cloudflared tunnel login②创建隧道名:
cloudflared tunnel create 隧道名③在隧道内创建域名:
cloudflared tunnel route dns 隧道名 域名前缀④启动隧道:
cloudflared tunnel --url localhost:80 run 隧道名 本文来自投稿,不代表本站立场,如若转载,请注明出处:https://www.uak.cc/5.html