我决定尝试Jekyll,但由于我没有使用它,我遇到了一个问题。当我服务时,我得到了#34;这个网页不可用"在http://127.0.0.1:4000/。我正在使用流浪汉。
vagrant@ruby-jekyll-box:~$ jekyll new portfolio
New jekyll site installed in /home/vagrant/portfolio.
vagrant@ruby-jekyll-box:~$ cd portfolio/
vagrant@ruby-jekyll-box:~/portfolio$ jekyll serve
Configuration file: /home/vagrant/portfolio/_config.yml
Source: /home/vagrant/portfolio
Destination: /home/vagrant/portfolio/_site
Generating...
done.
Auto-regeneration: enabled for '/home/vagrant/portfolio'
Configuration file: /home/vagrant/portfolio/_config.yml
Server address: http://127.0.0.1:4000/
Server running... press ctrl-c to stop.
我做错了什么?
答案 0 :(得分:3)
尝试
jekyll serve --host=0.0.0.0
从您的主机访问它