【发布时间】:2018-11-10 07:23:18
【问题描述】:
我正在尝试在我的 Windows 10 机器上设置 Jekyll,但无法连接到由 jekyll serve(或 bundle exec jekyll serve)创建的网站 (127.0.0.1:4000)。我已按照 Julian Thilo 的 Run Jekyll on Windows 中的所有步骤操作,没有任何错误消息。当我从我的 Jekyll 网站文件夹中的 PowerShell 中运行 jekyll serve 时,一切似乎都很好:
Configuration file: C:/Users/fredr/dropbox/github/jekyll-website/_config.yml
Source: C:/Users/fredr/dropbox/github/jekyll-website
Destination: C:/Users/fredr/dropbox/github/jekyll-website/_site
Incremental build: disabled. Enable with --incremental
Generating...
done in 0.457 seconds.
Auto-regeneration: enabled for 'C:/Users/fredr/dropbox/github/jekyll-website'
Server address: http://127.0.0.1:4000/
Server running... press ctrl-c to stop.
但是当我在浏览器中打开http://127.0.0.1:4000(或http://localhost:4000)时,连接失败。
当我运行netstat -an 时,端口4000 被列为
Proto Local Address Foreign Address State
TCP 127.0.0.1:4000 0.0.0.0:0 LISTENING
我之前设法使用 IIS 设置了一个本地主机,但该网站现在已停止。
This Github issue 似乎相关,但没有包含足够的信息让我弄清楚问题是如何解决的。它只说使用“Jekyll on windows package”,但我找不到任何相关信息。
【问题讨论】:
-
你试过
localhost:4000吗? -
@JoostS 很多很多次 :(
标签: windows-10 localhost jekyll