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

2018-03-12 22:52:04 +08:00
 Faiz555

$ 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

请问到底是哪出错了呢?

1040 次点击
所在节点    问与答
5 条回复
Faiz555
2018-03-12 23:38:08 +08:00
在谷歌上搜索到有可能 plugins 的问题,但是没有在 config 里面找到
XinLake
2018-03-13 00:03:50 +08:00
hexo g,hexo s,有没错误信息?
如果电脑上运行测试,在局域网另外一台电脑上看效果,那运行测试的电脑要给 node.js 开放防火墙。
vfiles
2018-03-13 00:40:05 +08:00
依照 github issue 那样,给出所有复现步骤和现象,大家好分析
Faiz555
2018-03-13 11:40:52 +08:00
成功了,能在 http://127.0.0.1:4000 上显示出页面,http://localhost:4000/不能显示出。有谁能解释下这是为什么吗?
Faiz555
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>

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/437444

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX