V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
Faiz555
V2EX  ›  问与答

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

  •  
  •   Faiz555 · 2018-03-12 22:52:04 +08:00 · 1034 次点击
    这是一个创建于 2249 天前的主题,其中的信息可能已经有所发展或是发生改变。

    $ 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 条回复    2018-03-13 11:43:29 +08:00
    Faiz555
        1
    Faiz555  
    OP
       2018-03-12 23:38:08 +08:00
    在谷歌上搜索到有可能 plugins 的问题,但是没有在 config 里面找到
    XinLake
        2
    XinLake  
       2018-03-13 00:03:50 +08:00
    hexo g,hexo s,有没错误信息?
    如果电脑上运行测试,在局域网另外一台电脑上看效果,那运行测试的电脑要给 node.js 开放防火墙。
    vfiles
        3
    vfiles  
       2018-03-13 00:40:05 +08:00 via Android
    依照 github issue 那样,给出所有复现步骤和现象,大家好分析
    Faiz555
        4
    Faiz555  
    OP
       2018-03-13 11:40:52 +08:00
    成功了,能在 http://127.0.0.1:4000 上显示出页面,http://localhost:4000/不能显示出。有谁能解释下这是为什么吗?
    Faiz555
        5
    Faiz555  
    OP
       2018-03-13 11:43:29 +08:00
    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>
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   6084 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 42ms · UTC 01:38 · PVG 09:38 · LAX 18:38 · JFK 21:38
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.