Faiz555
V2EX  ›  问与答

关于 hexo,在生成静态文件并启动 server 后怎么都进不到页面去,改了端口仍然存在。

  •  
  •   Faiz555 · Mar 12, 2018 · 1452 views
    This topic created in 2983 days ago, the information mentioned may be changed or developed.

    $ hexo -v

    hexo: 3.6.0
    hexo-cli: 1.1.0
    os: Darwin 16.7.0 darwin x64
    http_parser: 2.7.0
    node: 8.10.0
    v8: 6.2.414.50
    uv: 1.19.1
    zlib: 1.2.11
    ares: 1.10.1-DEV
    modules: 57
    nghttp2: 1.25.0
    openssl: 1.0.2n
    icu: 60.1
    unicode: 10.0
    cldr: 32.0
    tz: 2017c

    请问到底是哪出错了呢?

    5 replies    2018-03-13 11:43:29 +08:00
    Faiz555
        1
    Faiz555  
    OP
       Mar 12, 2018
    在谷歌上搜索到有可能 plugins 的问题,但是没有在 config 里面找到
    XinLake
        2
    XinLake  
       Mar 13, 2018
    hexo g,hexo s,有没错误信息?
    如果电脑上运行测试,在局域网另外一台电脑上看效果,那运行测试的电脑要给 node.js 开放防火墙。
    vfiles
        3
    vfiles  
       Mar 13, 2018 via Android
    依照 github issue 那样,给出所有复现步骤和现象,大家好分析
    Faiz555
        4
    Faiz555  
    OP
       Mar 13, 2018
    成功了,能在 http://127.0.0.1:4000 上显示出页面,http://localhost:4000/不能显示出。有谁能解释下这是为什么吗?
    Faiz555
        5
    Faiz555  
    OP
       Mar 13, 2018
    hexo g</br>
    INFO Start processing</br>
    INFO Files loaded in 135 ms</br>
    ...</br>
    INFO 28 files generated in 533 ms</br>
    hero s</br>
    INFO Start processing</br>
    INFO Hexo is running at http://localhost:4000/. Press Ctrl+C to stop.</br>
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5131 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 1041ms · UTC 09:37 · PVG 17:37 · LAX 02:37 · JFK 05:37
    ♥ Do have faith in what you're doing.