我在浏览器中看到杰基尔时遇到问题。当我在 url 中键入'localhost:4000'时,什么都没有出现



我是新手,所以希望我问这个问题时能理解。

我在windows7上通过命令提示符执行此操作。

我已经安装了jekyll,但看到jekyll网页时遇到了问题。什么也没有出现。当我写"jekkyl serve"时,我看到的是:

c:usersspiridondesktopportfoliojekyll serve
Configuration file: c:users/spiridon/desktop/portfolio/_config.yml
source:  c:users/spiridon/desktop/portfolio
destination: : c:users/spiridon/desktop/portfolio/_site
generating...
c:/ruby193/lib/ruby/gems/1.9.1/gems/posix-spawn-0.3.9/lib/posix/spawn.rb:164: warning: cannot close fd before spawn
'which' is not recognized as an internal or external command, operable program or batch file.
←[31m Liquid Exception: no such file or directory - python c:/ruby193/lib/ruby/gems/1.9.1/gems/pygments/mentos.py in _posts/2014-10-23-welcome-to-jekyll.markdown←[0m
done.
Please add the following to your Gemfile to avoid polling for changes:
require 'rbconfig'
if RBConfig: :CONFIG['target_os'] =~ /mswin|mingw|cygwin/i
gem 'wdm', >= 0.1.0'
end
Auto-regeneration: enabled for 'c:/users/spiridon/desktop/portfolio'
Configuration file: c:/users/spiridon/desktop/portfolio/_config.yml
server address: http://0.0.0.0:4000/
server running... press ctrl-c to stop.

我在用卢布193杰基尔2.4.0

这是我的照片

# Site settings
title: Your awesome title
email: your-email@domain.com
description: > # this means to ignore newlines until "baseurl:"
Write an awesome description for your new site here. You can edit this
line in _config.yml. It will appear in your document head meta (for
Google search results) and in your feed.xml site description.
baseurl: "" # the subpath of your site, e.g. /blog/
url: "http://yourdomain.com" # the base hostname & protocol for your site
twitter_username: jekyllrb
github_username:  jekyll
# Build settings
markdown: kramdown

我对这种语言和大多数其他编程语言都是全新的。我也看过youtube视频,并在网上搜索解决方案,但一无所获。非常感谢。

从杰基尔主页

虽然Windows不是官方支持的平台,但它可以使用以适当的调整运行杰基尔。

请按照本页上的所有提示操作,让Jekyll在Windows上运行或尝试此Jekyll Windows项目。

一旦你遵循了上面的提示之一,你得到的错误可能会消失,但仍然是一个简短的解释:

'which' is not recognized as an internal or external command, operable program or batch file.

即windows没有被调用的程序。Windows系统上不存在。在unixoid系统上,它用于解析当您运行指定为哪个属性的命令时到底执行了什么。

来自维基百科:

在Internet协议版本4中,地址0.0.0.0是一个不可路由的元地址,用于指定无效、未知或不适用的目标。

因此,在浏览器中打开它不起作用也就不足为奇了。Jekyll无法在上启动服务器,它会遇到错误。因此,它将这个通用IP显示为服务器地址。

最新更新