Jekyll 启动网站的本地版本时出错

Jekyll 启动网站的本地版本时出错,jekyll,Jekyll,我试图在Windows7上安装Jekyll。我遵循这个指南 所以我首先下载了Ruby并添加了\;将C:\Ruby193\bin添加到路径变量。 然后我下载了DevKit并添加了\;C:\Users\jimmy\Downloads\teeheeband\bin\也下载到path变量。 然后,我打开命令并(按顺序)执行以下操作 光盘C:\Users\jimmy\Downloads\teeeband ruby dk.rb init ruby dk.rb安装 以下是我执行上述步骤时屏幕上显示的代码 Mi

我试图在Windows7上安装Jekyll。我遵循这个指南 所以我首先下载了Ruby并添加了\;将C:\Ruby193\bin添加到路径变量。 然后我下载了DevKit并添加了\;C:\Users\jimmy\Downloads\teeheeband\bin\也下载到path变量。 然后,我打开命令并(按顺序)执行以下操作 光盘C:\Users\jimmy\Downloads\teeeband ruby dk.rb init ruby dk.rb安装

以下是我执行上述步骤时屏幕上显示的代码

Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

C:\Users\jimmy>cd ;C:\Users\jimmy\Downloads\teeheeband

C:\Users\jimmy\Downloads\teeheeband>ruby dk.rb init
[INFO] found RubyInstaller v1.9.3 at C:/Ruby193

Initialization complete! Please review and modify the auto-generated
'config.yml' file to ensure it contains the root directories to all
of the installed Rubies you want enhanced by the DevKit.

C:\Users\jimmy\Downloads\teeheeband>ruby dk.rb install
[INFO] Skipping existing gem override for 'C:/Ruby193'
[WARN] Skipping existing DevKit helper library for 'C:/Ruby193'

C:\Users\jimmy\Downloads\teeheeband>gem install jekyll
Successfully installed jekyll-0.12.0
1 gem installed
Installing ri documentation for jekyll-0.12.0...
Installing RDoc documentation for jekyll-0.12.0...

C:\Users\jimmy\Downloads\teeheeband>
完成上述操作后,我下载了github并克隆了我想要处理的回购协议。然后我去了Gitshell并做了以下工作

Windows PowerShell
Copyright (C) 2009 Microsoft Corporation. All rights reserved.

C:\Users\jimmy\Documents\GitHub> cd  prog694.github.com
C:\Users\jimmy\Documents\GitHub\prog694.github.com [new-branch]> jekyll --server
 --auto
Configuration from C:/Users/jimmy/Documents/GitHub/prog694.github.com/_config.ym
l
Auto-regenerating enabled: C:/Users/jimmy/Documents/GitHub/prog694.github.com ->
 C:/Users/jimmy/Documents/GitHub/prog694.github.com/_site
[2013-02-03 20:19:00] regeneration: 402 files changed
[2013-02-03 20:19:01] INFO  WEBrick 1.3.1
[2013-02-03 20:19:01] INFO  ruby 1.9.3 (2013-01-15) [i386-mingw32]
[2013-02-03 20:19:01] INFO  WEBrick::HTTPServer#start: pid=4036 port=4000
[2013-02-03 20:20:24] ERROR no access permission to     `/'
jimmy-PC - - [03/Feb/2013:20:20:24 Atlantic Standard Time] "GET / HTTP/1.1" 403
283
- -> /
[2013-02-03 20:20:24] ERROR `/favicon.ico' not found.
jimmy-PC - - [03/Feb/2013:20:20:24 Atlantic Standard Time] "GET /favicon.ico HTT
P/1.1" 404 281
- -> /favicon.ico
最后,我打开了一个浏览器,试图通过:localhost:4000运行该网站的本地副本 我失败了,收到了这个消息

Forbidden

no access permission to `/'
WEBrick/1.3.1 (Ruby/1.9.3/2013-01-15) at 127.0.0.1:4000

so I used h**p://127.0.0.1:4000/( replace t with **)
又失败了

Forbidden

no access permission to `/'
WEBrick/1.3.1 (Ruby/1.9.3/2013-01-15) at 127.0.0.1:4000

我只想能够打开并运行这个网站的本地版本。任何帮助都将不胜感激。

检查您的端口4000是否未被其他设备使用,或者您是否有防火墙允许访问它


我非常讨厌Windows for jekyll(或任何ruby gem/应用程序),在Linux中安装和使用它会容易得多。

值得一提的是,您正在运行一个预发布版本的jekyll。使用Jekyll1.0+,您可能会看到是否有更好的错误消息(或者问题是否完全消失)。作为基本的调试步骤,请查看是否正在创建
\u站点
目录,并查看其中生成的文件是否正确。