首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >启动jekyll服务器时出错

问启动jekyll服务器时出错
EN

Stack Overflow用户
提问于 2016-03-31 22:34:48
回答 1查看 455关注 0票数 0

我的云服务器是Ubuntu 14,我安装了jekyll并像sudo jekyll serve --port 80 --host 'my server ip address'一样启动它后,它显示了如下错误:

代码语言:javascript
复制
   Configuration file: /home/ubuntu/mydomain.com/_config.yml
   Deprecation: You appear to have pagination turned on, but you haven't included the `jekyll-paginate` gem. Ensure you have `gems: [jekyll-paginate]` in your configuration file.
        Source: /home/ubuntu/mydomain.com
   Destination: /home/ubuntu/mydomain.com/_site
   Incremental build: disabled. Enable with --incremental
   Generating...
                done in 1.177 seconds.
   Deprecation: You appear to have pagination turned on, but you haven't     included the `jekyll-paginate` gem. Ensure you have `gems: [jekyll-paginate]` in your configuration file.
   Auto-regeneration: enabled for '/home/ubuntu/mydomain.com'
   Configuration file: /home/ubuntu/mydomain.com/_config.yml
   jekyll 3.1.2 | Error:  Cannot assign requested address - bind(2) for 'host:port'

那么我该如何解决这个问题呢?

代码语言:javascript
复制
crontab -e 

*/2 * * * * cd ~/mydomain.com/; git pull >> /tmp/github_blog_pull_record.log 2>&1;

我不知道*/2 * * * * cd ~/mydomain.com/; git pull >> /tmp/github_blog_pull_record.log 2>&1;是什么意思?

EN

回答 1

Stack Overflow用户

发布于 2016-03-31 23:08:33

问题1:您已经有一个使用80端口的进程,请尝试更改您的jekyll serve端口sudo jekyll serve --port 81 --host 'my server ip address'。注意:为什么用sudo运行jekyll?一点都不安全!

问题2:*/2 * * * * cd ~/mydomain.com/; ...是一个cron task,它会在每天的2:00拉你的github存储库。

注意:最好一次问一个问题。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/36336434

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档