Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/ruby/24.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby 我无法在浏览器中看到杰基尔。键入';本地主机:4000';进入url_Ruby_Rubygems_Jekyll - Fatal编程技术网

Ruby 我无法在浏览器中看到杰基尔。键入';本地主机:4000';进入url

Ruby 我无法在浏览器中看到杰基尔。键入';本地主机:4000';进入url,ruby,rubygems,jekyll,Ruby,Rubygems,Jekyll,我是新来的,所以希望我问这个问题时有意义 我在Windows7上通过命令提示符执行此操作 我已经安装了jekyll,但我在查看jekyll网页时遇到问题。什么也没有出现。当我写“jekkyl serve”时,我看到的是: c:\users\spiridon\desktop\portfolio\jekyll serve Configuration file: c:users/spiridon/desktop/portfolio/_config.yml source: c:users/spirid

我是新来的,所以希望我问这个问题时有意义

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

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

c:\users\spiridon\desktop\portfolio\jekyll 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.
我正在使用ruby193 杰基尔2.4.0

这是我的_config.yml:

# 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视频,并在网上搜索解决方案,但什么也找不到。谢谢。

来自Jekyll主页

虽然Windows不是官方支持的平台,但可以使用它 通过适当的调整运行Jekyll

请按照上的所有说明操作,或尝试此操作

一旦您遵循了上述提示之一,您可能会发现错误,但仍有一个简短的解释:

“它”不被识别为内部或外部命令、可操作程序或批处理文件。

i、 e.windows没有名为which的程序。 它在Windows系统上不存在。在unixoid系统上,它用于解析在运行作为属性指定的命令时执行的确切内容

来自维基百科:

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

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