nathanleeinph
V2EX  ›  问与答

ping www.google.com 正常, ping http://www.google.com 提示 unknow host

  •  
  •   nathanleeinph · Apr 7, 2023 · 1627 views
    This topic created in 1154 days ago, the information mentioned may be changed or developed.
    起因是本地一个 git 仓库突然代码无法 push 和 pull ,然后发现在命令行里只要带了 http:// 所有命令都有问题了

    macOS 13 自带终端 zsh. 最近才从 macOS12 升级上来的

    请问有人遇到过吗
    4 replies    2023-04-07 10:50:12 +08:00
    renmu
        1
    renmu  
       Apr 7, 2023 via Android
    我寻思正常 ping 命令你带了 http 也不会通,你不如试试 curl
    miyuki
        2
    miyuki  
       Apr 7, 2023
    ping 带 http:// 肯定不会通啊
    nathanleeinph
        3
    nathanleeinph  
    OP
       Apr 7, 2023
    标题描述有误 ping www.google.com 不正常

    自问自答:
    配置 zsh 代理就可以解决问题
    nathanleeinph
        4
    nathanleeinph  
    OP
       Apr 7, 2023
    @renmu
    @miyuki

    好的,谢谢,计算机基础知识不够
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   949 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 21:37 · PVG 05:37 · LAX 14:37 · JFK 17:37
    ♥ Do have faith in what you're doing.