【问题标题】:The error when start jekyll server启动jekyll服务器时的错误
【发布时间】:2016-07-20 02:03:41
【问题描述】:

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

   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'

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

想定时把自己的github页面拉到云服务器上,发现有人这样干的

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; 是什么意思?

【问题讨论】:

    标签: git ubuntu nginx jekyll crontab


    【解决方案1】:

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

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

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

    【讨论】:

    • 我重新启动了运行 jekyll 服务的服务器,它显示 Could not find 'jekyll' (>= 0), ... from /usr/local/bin/jekyll:22:in <main>',但我确实安装了 jekyll
    猜你喜欢
    • 1970-01-01
    • 2021-08-22
    • 1970-01-01
    • 2011-07-25
    • 2013-05-05
    • 2019-02-26
    • 2017-06-14
    • 2012-03-05
    相关资源
    最近更新 更多